:root {
  --body:"Hanken Grotesk","Helvetica Neue",Arial,sans-serif;
  --primary-dark: #292929;
  --primary-blue: #309bd4;
  --primary-blue-light: #8fcce9;
  --muted-foreground: #6b7280;
  --surface: #ffffff;
  --surface-soft: #f4fbfe;
  --border: #dceff7;
  --shadow: 0 24px 70px rgba(41, 41, 41, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  /* store buttons always dark regardless of theme */
  --store-bg: #292929;
  --store-color: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--primary-dark);
  background: var(--surface);
  font-family: var(--body);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 239, 247, 0.8);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-blue), #2587bd);
  box-shadow: 0 8px 20px rgba(48, 155, 212, .24);
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted-foreground);
  font-size: .92rem;
  font-weight: 650;
}

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

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 750;
  font-size: .9rem;
  white-space: nowrap;
}

/* icon-only variant used on very small screens */
.nav-cta-icon {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 204, 233, .52), transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(48, 155, 212, .11), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f7fcfe 55%, #edf9fd 100%);
  padding: 82px 0 74px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(48, 155, 212, .08);
  right: -230px;
  top: -230px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  background: rgba(143, 204, 233, .22);
  border: 1px solid rgba(48, 155, 212, .15);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1, h2 {
  font-weight: 600;
}

h1 {
  margin: 20px 0 18px;
  max-width: 680px;
  font-size: clamp(2rem, 8vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.065em;
}

h1 span { color: var(--primary-blue); }

.hero-copy {
  max-width: 560px;
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding: 12px 18px;
  border-radius: 15px;
  background: var(--store-bg);
  color: var(--store-color);
  box-shadow: 0 12px 24px rgba(41,41,41,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(41,41,41,.18);
}

.store-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.store-label {
  display: block;
  font-size: .65rem;
  line-height: 1.1;
  opacity: .78;
}

.store-name {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 750;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: .8rem;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(48,155,212,.15);
  filter: blur(4px);
}

.hero-phone {
  position: relative;
  width: 280px;
  border-radius: 36px;
  padding: 9px;
  background: #161616;
  box-shadow: 0 35px 80px rgba(41,41,41,.25);
  transform: rotate(4deg);
  z-index: 2;
  overflow: hidden;
}

.hero-phone-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
}

.hero-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-phone video.is-ready {
  opacity: 1;
}

.hero-video-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #111827;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1;
}

.hero-video-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-video-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: heroSpin 0.8s linear infinite;
}

@keyframes heroSpin {
  to { transform: rotate(360deg); }
}

.hero-sound-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.hero-sound-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-sound-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.9);
}

.hero-sound-btn:active {
  transform: scale(0.95);
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  font-size: .8rem;
  font-weight: 750;
}

.floating-card small {
  display: block;
  color: var(--muted-foreground);
  font-weight: 550;
  margin-top: 2px;
}

.float-one { top: 90px; left: 2%; }
.float-two { right: 0; bottom: 96px; }

section { padding: 96px 0; }

.section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 12px 0;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.section-heading p {
  margin: 0;
  color: var(--muted-foreground);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 35px rgba(41,41,41,.05);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--primary-blue);
  margin-bottom: 20px;
}
.feature-icon svg { display: block; }

.feature h3 { margin: 0 0 8px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted-foreground); font-size: .9rem; }

.showcase {
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}

.showcase .section-heading p { color: #b9bec5; }

.screens {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: end;
}

.screen {
  padding: 6px;
  background: #111;
  border-radius: 25px;
  box-shadow: 0 20px 45px rgba(0,0,0,.28);
  transition: transform .25s ease;
}

.screen:hover { transform: translateY(-8px); }

.screen img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
}

.ai-section {
  background: var(--surface-soft);
}

.ai-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.ai-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.ai-copy > p {
  color: var(--muted-foreground);
  max-width: 520px;
}

.ai-list {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.ai-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid var(--border);
}

.check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(48,155,212,.13);
  color: var(--primary-blue);
  font-weight: 900;
}

.ai-visual {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--primary-blue), #2387ba);
  box-shadow: 0 30px 70px rgba(48,155,212,.23);
}

.ai-visual img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: auto;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

/* Reviews Section */
.reviews-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
}

.reviews-header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.reviews-stars-summary {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  font-size: 1.15rem;
}

.reviews-rating-text {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--primary-dark);
}

.reviews-masonry {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.reviews-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.review-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 24px 22px;
  box-shadow: 0 10px 30px rgba(41, 41, 41, 0.04);
  transition: transform 0.3s cubic-bezier(.22, 1, .36, 1),
              box-shadow 0.3s cubic-bezier(.22, 1, .36, 1),
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}


.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.01em;
}

.review-source-tag svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

.review-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: -0.015em;
}

.review-body {
  margin: 0 0 20px;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), #2387ba);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-author-name {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--primary-dark);
  line-height: 1.2;
}

.review-meta {
  font-size: 0.74rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}


.cta {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(48, 155, 212, 0.14), transparent 75%),
    linear-gradient(180deg,
      var(--surface) 0%,
      var(--surface) 20%,
      #f7fcfe 45%,
      #eaf6fc 75%,
      #ddf1fa 100%
    );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.cta p {
  margin: 0 auto 32px;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Redesigned Clean Natural Footer */
.footer {
  padding: 64px 0 36px;
  background: #090c0e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0f6fc;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

.footer-brand-side {
  max-width: 340px;
}

.footer-logo {
  color: #ffffff;
}

.footer-about {
  margin: 14px 0 22px;
  color: #8b949e;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1c2128;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-appstore-btn:hover {
  background: #242b35;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.footer-apple-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-appstore-label {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.footer-appstore-title {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.footer-columns {
  display: flex;
  gap: 60px;
}

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

.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-col a {
  color: #8b949e;
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #58a6ff;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #8b949e;
  flex-wrap: wrap;
  gap: 12px;
}

.author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.author-link:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-note .author-link strong {
  color: var(--primary-dark);
  font-weight: 650;
}

.footer-author-text strong {
  color: #f0f6fc;
  font-weight: 650;
}

/* Screenshot zoom cursor */
.screen img.zoomable {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-height: 90vh;
  max-width: min(420px, 100%);
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  animation: lightboxIn .25s cubic-bezier(.22, 1, .36, 1) both;
}

.lightbox-close {
  position: fixed;
  z-index: 10;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgb(255, 255, 255);
  color: #292929;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.656);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Chatbot FAB */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-blue), #2387ba);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(48, 155, 212, .40);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
}

.chat-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 36px rgba(48, 155, 212, .52);
}

.chat-fab:active {
  transform: scale(.95);
}

.chat-fab-tooltip {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 150;
  background: var(--primary-dark);
  color: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.chat-fab-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--primary-dark);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.chat-fab:hover + .chat-fab-tooltip,
.chat-fab:focus + .chat-fab-tooltip {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .chat-fab-tooltip {
  background: #f5f7f8;
  color: #1a1a1a;
}

html[data-theme="dark"] .chat-fab-tooltip::after {
  background: #f5f7f8;
}

/* Chatbot Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 160;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.chat-widget.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-blue), #2387ba);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.chat-status {
  font-size: 0.72rem;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-soft);
  scroll-behavior: smooth;
}

/* Message bubbles */
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: msgIn .25s cubic-bezier(.22, 1, .36, 1) both;
}

.chat-msg.bot {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--primary-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Options/choices directly on the messages stream */
.chat-msg-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
  align-self: flex-start;
  margin-top: 4px;
  margin-bottom: 8px;
  animation: msgIn .25s cubic-bezier(.22, 1, .36, 1) both;
}

.chat-option-btn {
  background: var(--surface);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-family: var(--body);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chat-option-btn:hover {
  background: var(--primary-blue);
  color: #fff;
}

.chat-option-btn::after {
  content: "→";
  font-weight: bold;
  opacity: 0.7;
  transition: transform 0.2s;
}

.chat-option-btn:hover::after {
  transform: translateX(4px);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--muted-foreground);
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Mobile overrides */
@media (max-width: 480px) {
  .chat-widget {
    right: 16px;
    bottom: 96px;
    width: calc(100vw - 32px);
    height: calc(100vh - 140px);
    max-height: 520px;
  }
}

/* Coming soon modal */
.coming-soon-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.coming-soon-modal.is-open { display: flex; }

.coming-soon-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,.22);
  animation: lightboxIn .25s cubic-bezier(.22,1,.36,1) both;
  position: relative;
}

.coming-soon-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--primary-blue), #2387ba);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

.coming-soon-box h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--primary-dark);
}

.coming-soon-box p {
  margin: 0 0 24px;
  color: var(--muted-foreground);
  font-size: .95rem;
  line-height: 1.55;
}

.coming-soon-close {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: opacity .2s ease;
}

.coming-soon-close:hover { opacity: .85; }

html[data-theme="dark"] .coming-soon-box {
  background: #1c2225;
  border-color: var(--border);
}

html[data-theme="dark"] .coming-soon-close {
  background: #f5f7f8;
  color: #292929;
}

/* Dark mode */
html[data-theme="dark"] {
  --surface: #111416;
  --surface-soft: #171d20;
  --primary-dark: #f5f7f8;
  --muted-foreground: #aab4ba;
  --border: #29383f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  /* keep store buttons dark in dark mode */
  --store-bg: #1a1a1a;
  --store-color: #ffffff;
}

html[data-theme="dark"] body {
  background: var(--surface);
  color: var(--primary-dark);
}

html[data-theme="dark"] .nav {
  background: rgba(17, 20, 22, 0.86);
  border-bottom-color: rgba(41, 56, 63, 0.8);
}

html[data-theme="dark"] .nav-cta {
  background: #f5f7f8;
  color: #292929;
}

html[data-theme="dark"] .nav-cta-icon {
  background: #2a3a42;
  color: #f5f7f8;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(48, 155, 212, .22), transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(48, 155, 212, .12), transparent 28%),
    linear-gradient(135deg, #111416 0%, #141b1e 55%, #10242c 100%);
}

html[data-theme="dark"] .floating-card,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .ai-item,
html[data-theme="dark"] .review-card {
  background: rgba(28, 34, 37, .92);
  border-color: var(--border);
}


html[data-theme="dark"] .showcase {
  background: #090c0e;
}

html[data-theme="dark"] .ai-section {
  background: var(--surface-soft);
}

html[data-theme="dark"] .cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(48, 155, 212, 0.14), transparent 70%),
    radial-gradient(circle at 15% 95%, rgba(48, 155, 212, 0.10), transparent 45%),
    radial-gradient(circle at 85% 95%, rgba(48, 155, 212, 0.09), transparent 45%),
    linear-gradient(180deg,
      #111416 0%,
      #121618 15%,
      #131a1f 35%,
      #142129 65%,
      #132833 100%
    );
}

html[data-theme="dark"] .footer {
  background: #06080a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Promotional scroll animations */
.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1),
              transform 1s cubic-bezier(.22, 1, .36, 1),
              filter 1s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.hero-content {
  animation: heroContentIn .9s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-visual {
  animation: heroVisualIn 1s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-phone {
  animation: phoneFloat 5s ease-in-out infinite;
}

.floating-card {
  animation: floatingCard 4s ease-in-out infinite;
}

.float-two {
  animation-delay: -1.5s;
}

.hero-glow {
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(28px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes phoneFloat {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@keyframes floatingCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.06); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-grid, .ai-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  h1 { text-align: center; margin-inline: auto; }
  .hero-visual { min-height: 510px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(3, 1fr); }
  .reviews-masonry {
    gap: 16px;
  }
  .reviews-col {
    gap: 16px;
  }
  .nav-links { display: none; }
  .ai-copy { text-align: center; }
  .ai-copy > p { margin-inline: auto; }
  .ai-list { text-align: left; }
  .footer-main {
    flex-direction: column;
    gap: 48px;
  }
  .footer-brand-side {
    max-width: 100%;
  }
  .footer-columns {
    width: 100%;
    justify-content: flex-start;
    gap: 48px;
    flex-wrap: wrap;
  }
}

/* Tablet - screens grid tightens before phones */
@media (max-width: 640px) {
  .screens { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-visual { min-height: 460px; }
  .float-one { left: 0; top: 60px; }
  .float-two { right: 0; bottom: 60px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-inner { height: 64px; }
  /* hide text CTA, show icon CTA */
  .nav-cta { display: none; }
  .nav-cta-icon { display: flex; }
  .theme-toggle { width: 36px; height: 36px; font-size: .9rem; }
  .hero { padding: 44px 0 32px; }
  .hero-visual { min-height: 380px; }
  .hero-phone { width: 220px; }
  .float-one { left: -4px; top: 44px; font-size: .75rem; padding: 10px 13px; }
  .float-two { right: -4px; bottom: 44px; font-size: .75rem; padding: 10px 13px; }
  section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reviews-masonry {
    flex-direction: column;
    gap: 14px;
  }
  .reviews-col {
    width: 100%;
    gap: 14px;
  }
  .ai-grid { gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .store-button { justify-content: center; min-width: unset; width: 100%; }
  .cta h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .footer { padding: 48px 0 28px; }
  .footer-shell { gap: 36px; }
  .footer-main {
    gap: 36px;
  }
  .footer-brand-side {
    max-width: 100%;
  }
  .footer-about {
    font-size: 0.85rem;
  }
  .footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    width: 100%;
  }
  .footer-col:last-child {
    grid-column: span 2;
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 20px;
  }
}

@media (max-width: 380px) {
  .hero-phone { width: 190px; }
  .float-one, .float-two { display: none; }
  .floating-card { display: none; }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-col:last-child {
    grid-column: span 1;
  }
  .footer-appstore-btn {
    width: 100%;
    justify-content: center;
  }
}
