/* ===== FONTS ===== */
@font-face {
  font-family: 'OpenRunde';
  src: url('fonts/OpenRunde-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('fonts/OpenRunde-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('fonts/OpenRunde-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpenRunde';
  src: url('fonts/OpenRunde-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('fonts/Exposure-VAR.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('fonts/Exposure-VAR-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --blue: #147EFB;
  --blue-hover: #1070E0;
  --blue-glow: rgba(20, 126, 251, 0.25);
  --body-text: rgb(26, 31, 43);
  --black: #000000;
  --gray-200: rgb(238, 237, 235);
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: rgb(78, 89, 105);
  --bg: #FFFFFF;
  --radius: 20px;
  --selection: #147EFB40;
}

::selection {
  background: var(--selection);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'OpenRunde', sans-serif;
  color: var(--body-text);
  background: var(--bg);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  padding-bottom: 56px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== PAGE-LOAD STAGGER ANIMATIONS (framer-motion style) ===== */
.fade-in {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(12px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}

.fade-in.visible {
  opacity: 1;
  filter: blur(0px);
  transform: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 16px 0 16px;
  display: flex;
  justify-content: center;
}

.nav-outer {
  display: flex;
  width: 100%;
  max-width: 600px;
  flex-direction: column;
}

.nav-glass {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(248, 248, 248, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
}

.nav-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-icon-wrap {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9.22px;
  overflow: hidden;
}

.nav-logo-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -20;
  font-size: 22px;
  color: var(--black);
  user-select: none;
  letter-spacing: normal;
}

.nav-logo-light {
  color: rgba(0, 0, 0, 0.45);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 48px;
}

.nav-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  padding: 0;
  transition: color 0.15s ease-out;
}

.nav-links button:hover {
  color: rgba(0, 0, 0, 0.65);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* "Get Started" nav button - dark gradient pill */
.nav-get-started {
  display: none;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  border-radius: 9999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 38.33%),
    linear-gradient(180deg, rgba(0,0,0,0) 52.94%, rgba(0,0,0,0.75) 100%),
    #1B1B1B;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.75),
    0px 2px 5.6px 0px rgba(0, 0, 0, 0.08),
    inset 0px 0px 3px 0px rgba(255, 255, 255, 0.75);
  transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

.nav-get-started:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.10) 38.33%),
    linear-gradient(180deg, rgba(0,0,0,0) 52.94%, rgba(0,0,0,0.75) 100%),
    #1B1B1B;
}

.nav-get-started:active {
  transform: scale(0.98);
}

/* ===== CTA BUTTON ===== */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding-left: 96px;
  padding-right: 96px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  border: 1px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 6px 3px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 1;
}

.btn-cta:hover {
  box-shadow: inset 0 0 8px 4px rgba(255, 255, 255, 0.55);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta .imessage-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Glow behind CTA button */
.cta-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(20, 126, 251, 0.25) 0%, rgba(16, 112, 235, 0.15) 50%, transparent 100%);
  filter: blur(10px);
  transform: scale(1.2);
  border-radius: 20px;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cta-wrapper:hover::before {
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  padding-top: 120px;
  text-align: center;
  width: 100%;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Social proof + h1 group */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Subtitle + CTA + badge group */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

/* CTA button + badge underneath */
.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Social proof pill */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.avatar + .avatar {
  margin-left: -6px;
}

.social-proof-text {
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
}

/* Hero heading */
.hero-title {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
  padding: 6px 20px 10px 20px;
  margin-top: 0;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 400;
  text-wrap: balance;
  text-align: center;
}

/* Hero badge */
.hero-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
  margin-top: 12px;
}

/* Hero phone mockup */
.hero-mockup {
  position: relative;
  margin-top: 32px;
  width: 268px;
  aspect-ratio: 830 / 671;
}

.hero-mockup-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease;
  -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
  mask-image: linear-gradient(to top, black 85%, transparent 100%);
}

.hero-mockup-img.active {
  opacity: 1;
}

.hero-mockup-img:not(.active) {
  opacity: 0;
}

/* Glow under phone mockup */
.hero-mockup::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(20, 126, 251, 0.2) 0%, transparent 70%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

/* ===== FEATURES ===== */
.features {
  scroll-margin-top: 120px;
  width: 100%;
}

.features .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.features-heading {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 296px;
}

.feature-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
}

.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 400;
  text-wrap: balance;
}

/* Chat bubble container */
.chat-container {
  width: 296px;
  height: 220px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: inset 0 0 6px 3px rgba(0, 0, 0, 0.03);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  gap: 8px;
  overflow: hidden;
}

.chat-bubble {
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 17px;
  line-height: 22px;
  max-width: 85%;
}

.chat-bubble.received {
  background: #E9E9EB;
  color: var(--black);
  align-self: flex-start;
}

.chat-bubble.sent {
  background: #0098FF;
  color: #fff;
  align-self: flex-end;
}

/* Mobile: show mobile order, hide desktop order */
.feature-content-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 296px;
}

.feature-content-desktop {
  display: none;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  scroll-margin-top: 120px;
  width: 100%;
}

.how-it-works .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.section-title {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 240px;
}

.step-icon {
  color: var(--gray-500);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.step-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 400;
}

/* ===== CTA SECTION (pre-footer) ===== */
.cta-section {
  text-align: center;
  scroll-margin-top: 120px;
  width: 100%;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-section .cta-title-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.cta-title {
  font-family: 'Exposure', Georgia, serif;
  font-variation-settings: "EXPO" -10;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
}

/* Pre-footer badge uses gray-600 and larger text */
.cta-section .hero-badge {
  color: var(--gray-600);
  font-size: 14px;
  gap: 10px;
  margin-top: 0;
}

/* ===== FAQ ===== */
.faq-section {
  scroll-margin-top: 120px;
  width: 100%;
}

.faq-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.faq-section .section-title {
  margin-bottom: 0;
}

.faq-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.5;
  max-width: 600px;
}

.faq-subtitle a {
  color: var(--gray-600);
  text-decoration: underline;
}

.faq-card {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  padding: 8px 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  gap: 16px;
  transition: color 0.15s ease-out;
}

.faq-question:hover {
  color: rgba(0, 0, 0, 0.5);
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--gray-400);
  width: 20px;
  height: 20px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  opacity: 1;
}

.faq-answer p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.625;
  padding-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  padding: 32px 24px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015px;
  color: rgba(0, 0, 0, 0.5);
}

.footer-center {
  color: rgba(0, 0, 0, 0.5);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease-out;
}

.footer-right a:hover {
  color: var(--black);
}

/* ===== FLOATING CTA (mobile) ===== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
}

.btn-floating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--blue);
  text-decoration: none;
  box-shadow: inset 0 0 6px 3px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.btn-floating .imessage-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 768px) {
  .main {
    gap: 140px;
    padding-bottom: 124px;
  }

  .hero {
    padding-top: 152px;
  }

  .hero .container {
    gap: 20px;
  }

  .hero-header {
    gap: 0;
  }

  .hero-content {
    gap: 32px;
    width: auto;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-mockup {
    margin-top: 58px;
    width: 486px;
  }

  .cta-section .container {
    gap: 32px;
  }

  .cta-section .hero-badge {
    font-size: 16px;
  }

  /* Feature cards: row layout on desktop */
  .feature-card {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .feature-content {
    width: 324px;
  }

  .feature-content-mobile {
    display: none;
  }

  .feature-content-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 324px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-desc {
    font-size: 16px;
  }

  .chat-container {
    width: 324px;
    height: 324px;
  }

  .features-heading {
    font-size: 30px;
  }

  .section-title {
    font-size: 30px;
  }

  .steps {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
  }

  .step-title {
    font-size: 18px;
  }

  .step-desc {
    font-size: 16px;
  }

  .navbar {
    padding-top: 28px;
  }

  .nav-glass {
    border-radius: 9999px;
  }

  .nav-links {
    display: flex;
  }

  .nav-get-started {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .faq-card {
    max-width: 720px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 16px;
  }

  .how-it-works .container {
    gap: 52px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 767px) {
  .floating-cta {
    display: block;
  }

  .footer-content {
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
  }

  .footer-right { order: 1; }
  .footer-center { order: 2; }
  .footer-left { order: 3; }

  .btn-cta {
    padding-left: 64px;
    padding-right: 64px;
    height: 52px;
    font-size: 16px;
  }

  .btn-cta .imessage-icon {
    width: 28px;
    height: 28px;
  }
}
