/* ================================
   CSS Variables & Reset
   ================================ */
:root {
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-soft: #eef4f7;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #dbe4ee;
  --line-2: #c9d6e2;
  --accent: #0ea5a4;
  --accent-2: #14b8a6;
  --accent-soft: rgba(14, 165, 164, 0.1);
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08), 0 24px 64px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12), 0 48px 120px rgba(15, 23, 42, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(20,184,166,0.08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(14,165,164,0.08), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.6;
}

h1,h2,h3,h4,h5 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ================================
   Layout
   ================================ */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 112px 0; }
.section--no-top { padding-top: 0; }

/* ================================
   Shared UI
   ================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(14,165,164,0.18);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(14,165,164,0.10);
}

.section-head {
  max-width: 720px;
}

.section-head--wide {
  max-width: none;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 18px;
  color: var(--ink);
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* ================================
   Navigation
   ================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid #e2e8f0;
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #14213d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 6px 18px rgba(15,23,42,.12);
  flex-shrink: 0;
}

.brand-icon {
  width: 25px;
  height: 25px;
  color: #ffffff;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-top: 2px;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.brand-name span {
  color: #19b7b2;
}

.brand-sub {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #64748b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #0f172a;
}

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

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe4ee;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-primary {
  background: #14213d;
  color: #ffffff;
  border: 1px solid #14213d;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}

.btn-primary:hover {
  background: #0f172a;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px rgba(14,165,164,.24);
}

.btn-accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

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

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  padding: 54px 0 60px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, 0.97fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  color: var(--ink);
  max-width: 760px;
}

.hero-copy h1 .accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 10px;
  background: rgba(20,184,166,0.16);
  z-index: -1;
  border-radius: 999px;
}

.hero-copy p {
  margin-top: 24px;
  max-width: 650px;
  font-size: 19px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 38px;
  max-width: 720px;
}

.hero-stat {
  padding: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.hero-stat span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.hero-card {
  position: relative;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: auto 0 -30px 0;
  height: 220px;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(20,184,166,0.24) 0%, rgba(20,184,166,0.10) 26%, rgba(20,184,166,0) 70%);
  z-index: -1;
}

/* ================================
   App Shell (demo widget)
   ================================ */
.app-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
  border: 1px solid rgba(219,228,238,0.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,252,0.92) 100%);
}

.app-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(22,163,74,0.10);
}

.app-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.app-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.app-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(14,165,164,0.16);
}

.app-body {
  padding: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f7fa 100%);
}

.app-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

/* ================================
   Chat Bubbles
   ================================ */
.chat-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.bubble.user {
  align-self: flex-end;
  background: linear-gradient(180deg, #d7fbdc 0%, #c4f6cf 100%);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  align-self: flex-start;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

/* ================================
   Order Panel
   ================================ */
.order-panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.order-top {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.order-top strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.order-top span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status.ok {
  background: rgba(22,163,74,0.12);
  color: var(--success);
}

.order-main {
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.order-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.mini-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mini-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.mini-timeline {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.mini-timeline div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.mini-timeline div b {
  color: var(--ink);
  font-weight: 700;
}

/* ================================
   Dark Section
   ================================ */
.dark-section {
  background: linear-gradient(180deg, #101a31 0%, #0b1325 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.dark-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,164,0.18) 0%, rgba(14,165,164,0.00) 66%);
  pointer-events: none;
}

.dark-section .section-head h2,
.dark-section .section-head p { color: white; }

.dark-section .section-head p {
  color: rgba(255,255,255,0.70);
}

/* ================================
   Pain Cards
   ================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 42px;
}

.pain-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.pain-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(14,165,164,0.10);
  border: 1px solid rgba(14,165,164,0.18);
  font-size: 24px;
}

.pain-card h3 {
  margin-top: 18px;
  font-size: 21px;
  color: white;
}

.pain-card p {
  margin-top: 12px;
  color: rgba(255,255,255,0.70);
  font-size: 15px;
  line-height: 1.75;
}

/* ================================
   Benefit Cards
   ================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin-top: 44px;
}

.benefit-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.benefit-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.benefit-card h3 {
  margin-top: 18px;
  font-size: 20px;
  color: var(--ink);
}

.benefit-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ================================
   Trust / Architecture Section
   ================================ */
.trust-shell {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.trust-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 16px;
}

.trust-head p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}

.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.trust-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ================================
   Flow Cards
   ================================ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 44px;
}

.flow-card {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .2s ease;
}

.flow-card:hover::before { opacity: 1; }

.flow-step {
  font-size: 50px;
  font-weight: 900;
  color: rgba(14,165,164,0.12);
  line-height: 1;
}

.flow-card h3 {
  margin-top: 10px;
  font-size: 24px;
  color: var(--ink);
}

.flow-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ================================
   Pricing
   ================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 42px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-card--popular {
  background: linear-gradient(180deg, rgba(14,165,164,0.06) 0%, rgba(255,255,255,0.95) 52%);
  border-color: rgba(14,165,164,0.34);
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.price-title {
  margin-top: 8px;
  font-size: 30px;
  color: var(--ink);
}

.price-copy {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  min-height: 82px;
}

.price-install {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.price-install strong {
  color: var(--ink);
  font-size: 20px;
}

.price-main {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.price-main strong {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.price-main span {
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 8px;
}

.price-inline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.6;
}

.price-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  flex: 1;
}

.price-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.pricing-meta {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.pricing-meta strong {
  color: var(--ink);
}

/* ================================
   FAQ
   ================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.faq-item {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 20px;
  color: var(--ink);
}

.faq-item p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ================================
   CTA Section
   ================================ */
.cta-shell {
  padding: 46px;
  border-radius: 34px;
  background: linear-gradient(180deg, #101a31 0%, #0b1325 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-copy h2 {
  font-size: clamp(34px, 5vw, 60px);
  color: white;
  max-width: 780px;
}

.cta-copy p {
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 680px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

/* ================================
   Footer
   ================================ */
footer {
  padding: 30px 0 50px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ================================
   Reveal Animation
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Media Queries
   ================================ */
@media (max-width: 1100px) {
  .hero-shell,
  .app-grid,
  .pain-grid,
  .benefits-grid,
  .flow-grid,
  .trust-shell,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cta-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .section { padding: 88px 0; }
  .hero { padding-top: 34px; }
  .hero-copy p,
  .section-head p { font-size: 16px; }
  .order-kpi { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-shell {
    min-height: 74px;
    gap: 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-icon {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: .14em;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .nav { min-height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { width: 100%; }
  .pain-card,
  .benefit-card { padding: 22px; }
  .cta-shell { padding: 28px; }
  .cta-actions { min-width: 0; }
}
