/* ========================================
   CLIQLINT LANDING PAGE STYLES
   Mobile-first • Modern • Performant
   ======================================== */

:root {
  /* Colors */
  --bg-main: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  
  /* Brand */
  --primary: #000000;
  --primary-hover: #374151;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  
  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* UI */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  word-break: keep-all;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark p { color: #9ca3af; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-light);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.mockup-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
  max-width: 420px;
  margin: 0 auto;
}

.mockup-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots .red { background: #ef4444; }
.dots .yellow { background: #f59e0b; }
.dots .green { background: #10b981; }

.url-bar {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-family: monospace;
}

.mockup-body {
  padding: 24px;
}

.mockup-title {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.time-slot {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.time-slot:hover:not(.disabled) {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
}

.time-slot.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.time-slot.disabled {
  background: var(--bg-light);
  color: #d1d5db;
  text-decoration: line-through;
  cursor: not-allowed;
}

.mockup-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.mockup-btn:hover {
  background: var(--primary-hover);
}

/* Value Prop / Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 2px solid var(--border-color);
}

.compare-card.bad {
  background: var(--bg-light);
}

.compare-card.bad h3 {
  color: var(--text-muted);
}

.compare-card.bad ul li {
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}

.compare-card.bad ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--error);
  font-weight: 700;
}

.compare-card.good {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.compare-card.good h3 {
  color: var(--primary);
}

.compare-card.good ul li {
  font-weight: 500;
  padding-left: 24px;
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.compare-card.good ul li .icon {
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-item h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card.premium {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.price-header h3 {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-features {
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 64px 0 24px;
}

.footer h2 {
  color: #fff;
  margin-bottom: 16px;
}

.footer p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.footer .btn {
  background: #fff;
  color: var(--primary);
}

.footer .btn:hover {
  background: var(--bg-light);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #9ca3af;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--error);
}

.modal-box h3 {
  text-align: center;
  margin-bottom: 24px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.switch-text a {
  font-weight: 600;
  cursor: pointer;
}

/* Utilities */
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 32px;
  }
  
  .hero-cta {
    align-items: center;
  }
  
  .mockup-card {
    max-width: 100%;
  }
  
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  
  .hero {
    padding: 80px 0 64px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .nav-actions .nav-link {
    display: none;
  }
  
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .price-card {
    text-align: center;
  }
  
  .price-features li {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-container {
    padding: 12px 16px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .mockup-body {
    padding: 16px;
  }
  
  .time-grid {
    grid-template-columns: 1fr;
  }
  
  .time-slot {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .modal-box {
    padding: 24px 20px;
    margin: 0 12px;
  }
}

/* Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: high) {
  :root {
    --border-color: #000;
    --text-muted: #333;
  }
  .btn { border-width: 2px; }
}