/* ========== Reset & Variables ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6B73FF;
  --primary-dark: #555BDF;
  --primary-light: #8B91FF;
  --accent: #FF6B8A;
  --accent-light: #FF8FA8;
  --bg: #FAFBFF;
  --bg-dark: #0D0F1C;
  --surface: #FFFFFF;
  --surface-alt: #F3F4FF;
  --text: #1A1D3B;
  --text-secondary: #6B7094;
  --text-light: #9DA2C2;
  --border: #E4E7F5;
  --gradient: linear-gradient(135deg, #6B73FF 0%, #FF6B8A 100%);
  --gradient-soft: linear-gradient(135deg, rgba(107, 115, 255, 0.08) 0%, rgba(255, 107, 138, 0.08) 100%);
  --shadow-sm: 0 1px 3px rgba(13, 15, 28, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 15, 28, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 15, 28, 0.12);
  --shadow-glow: 0 8px 32px rgba(107, 115, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.938rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 115, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-alt);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== Gradient Text ========== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Section Common ========== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--surface-alt);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(107, 115, 255, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255, 107, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--bg);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.phone-mockup {
  width: 320px;
  background: var(--bg-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  background: #1a1d2e;
  border-radius: 26px;
  overflow: hidden;
  padding: 20px 16px 24px;
  min-height: 380px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B73FF, #FF6B8A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mock-name {
  color: #fff;
  font-size: 0.938rem;
  font-weight: 600;
}

.mock-status {
  color: #4ECDC4;
  font-size: 0.75rem;
}

.mock-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.813rem;
  line-height: 1.5;
}

.mock-msg-ai {
  background: rgba(107, 115, 255, 0.15);
  color: #C8CBFF;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}

.mock-msg-user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}

/* ========== Features ========== */
.features {
  padding: 120px 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.938rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== How It Works ========== */
.how-it-works {
  padding: 120px 0;
  background: var(--bg);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.step-connector {
  width: 2px;
  height: 48px;
  background: var(--border);
  margin-left: 27px;
}

/* ========== Pricing ========== */
.pricing {
  padding: 120px 0;
  background: var(--surface);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.billing-label {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(78, 205, 196, 0.12);
  color: #2BA89C;
  padding: 3px 10px;
  border-radius: 100px;
}

.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle.active {
  background: var(--primary);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle.active .toggle-thumb {
  left: 27px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  background: var(--bg-dark);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 60px rgba(13, 15, 28, 0.3);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.period {
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.pricing-card-featured .period {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-card-featured .pricing-desc {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.938rem;
  color: var(--text-secondary);
}

.pricing-card-featured .pricing-features li {
  color: rgba(255, 255, 255, 0.75);
}

.pricing-features li svg {
  flex-shrink: 0;
  stroke: var(--primary);
}

.pricing-card-featured .pricing-features li svg {
  stroke: var(--primary-light);
}

/* ========== CTA ========== */
.cta {
  padding: 120px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(107, 115, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 107, 138, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand .logo-text {
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.813rem;
}

/* ========== Animations ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card-featured {
    order: -1;
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
    max-width: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phone-mockup {
    width: 280px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .phone-mockup {
    width: 260px;
  }
}
