:root {
  --ink: #171717;
  --ink-soft: #595959;
  --paper: #f4f4f1;
  --paper-deep: #e8e8e4;
  --cream: #fbfbf8;
  --green: #252525;
  --green-dark: #111111;
  --mint: #d7d7d2;
  --coral: #92928d;
  --line: rgba(23, 23, 23, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .13);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--cream); background: var(--ink); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nav {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  height: 68px;
  padding: 0 14px 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  background: rgba(255,253,247,.84);
  box-shadow: 0 12px 40px rgba(27,45,38,.1);
  backdrop-filter: blur(16px);
}
.nav-logo, .footer-logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.nav-logo { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { position: relative; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--coral); transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { color: white; background: var(--green); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-primary:hover { transform: translateY(-3px); background: var(--green-dark); box-shadow: 0 15px 30px rgba(0,0,0,.26); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.36); }
.btn-ghost:hover { transform: translateY(-3px); background: white; }
.nav-cta { min-height: 42px; padding-inline: 18px; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); place-content: center; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; background: white; transition: transform .25s ease; }
.nav-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 860px;
  padding: 170px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(0,0,0,.09) 0, rgba(0,0,0,0) 29%),
    radial-gradient(circle at 8% 75%, rgba(0,0,0,.05) 0, transparent 25%), var(--paper);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: 250px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(0,0,0,.025), 0 0 0 140px rgba(0,0,0,.02); }
.hero-inner { position: relative; width: min(1180px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1.06fr .75fr; gap: 90px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-content > * { animation: heroRise .85s cubic-bezier(.16,1,.3,1) both; }
.hero-content > h1 { animation-delay: .08s; }
.hero-content > .hero-sub { animation-delay: .16s; }
.hero-content > .hero-actions { animation-delay: .24s; }
.hero-content > .hero-stats { animation-delay: .32s; }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-badge { padding: 10px 14px; border: 1px solid rgba(0,0,0,.22); border-radius: 100px; background: rgba(255,255,255,.46); }
.hero-badge::before, .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; line-height: .99; }
h1 { max-width: 760px; margin: 26px 0 26px; font-size: clamp(58px, 6.5vw, 96px); }
.hero-sub { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.hero-stats { display: flex; align-items: stretch; gap: 24px; margin-top: 52px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1; }
.stat-label { margin-top: 8px; color: var(--ink-soft); font-size: 12px; }
.stat-div { width: 1px; background: var(--line); }

.hero-visual { position: relative; z-index: 2; transform: rotate(2.5deg); animation: visualEnter 1.1s .18s cubic-bezier(.16,1,.3,1) both; transform-style: preserve-3d; transition: transform .25s ease-out; }
.hero-visual::before { content: ""; position: absolute; inset: -24px 38px 24px -28px; border-radius: 32px; background: var(--coral); transform: rotate(-7deg); opacity: .8; }
.chat-widget { position: relative; min-height: 525px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 8px solid rgba(255,255,255,.65); border-radius: 32px; background: var(--cream); box-shadow: 0 35px 80px rgba(0,0,0,.24); }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 22px 24px; color: white; background: var(--green-dark); }
.chat-avatar, .alex-avatar { display: grid; flex: none; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--green-dark); background: var(--mint); font-family: var(--display); font-size: 22px; font-weight: 700; }
.chat-info { display: flex; flex-direction: column; }
.chat-name { font-weight: 700; }
.chat-status { color: rgba(255,255,255,.68); font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #c8c8c4; }
.chat-messages { padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; background: linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px); background-size: 24px 24px; }
.msg { max-width: 85%; padding: 13px 16px; border-radius: 17px; font-size: 13px; line-height: 1.5; animation: pop .3s ease both; }
.msg-alex { align-self: flex-start; border-bottom-left-radius: 4px; background: white; box-shadow: 0 7px 25px rgba(0,0,0,.08); }
.msg-user { align-self: flex-end; color: white; border-bottom-right-radius: 4px; background: var(--green); }
.chat-input-row { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: white; }
.chat-input { min-width: 0; flex: 1; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--paper); }
.chat-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.chat-send { width: 46px; height: 46px; border: 0; border-radius: 13px; color: white; background: var(--green); cursor: pointer; transition: transform .2s; }
.chat-send:hover { transform: scale(1.06); }
.typing-indicator { align-self: flex-start; display: flex; gap: 4px; padding: 16px; border-radius: 17px; background: white; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: bounce 1s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }.typing-indicator span:nth-child(3) { animation-delay: .3s; }

.marquee { overflow: hidden; padding: 20px 0; color: rgba(255,255,255,.48); background: var(--ink); transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item { display: flex; align-items: center; font-family: var(--display); font-size: 19px; white-space: nowrap; }
.marquee-item::after { content: "✦"; margin: 0 28px; color: var(--coral); font-size: 11px; }
.marquee-item.is-bright { color: white; }

section:not(.hero):not(.section-cta) { padding: 120px 0; }
.eyebrow { margin: 0 0 22px; }
h2 { max-width: 870px; margin: 0; font-size: clamp(44px, 5.2vw, 72px); }
.section-sub { max-width: 720px; margin: 26px 0 0; color: var(--ink-soft); font-size: 18px; }
.section-problems { background: var(--cream); }
.list-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.list-item { position: relative; min-height: 230px; padding: 38px 42px 38px 0; border-bottom: 1px solid var(--line); }
.list-item:nth-child(odd) { border-right: 1px solid var(--line); }
.list-item:nth-child(even) { padding-left: 42px; }
.list-item h3, .list-item h4 { margin: 0 0 14px; font-family: var(--display); font-size: 27px; line-height: 1.1; }
.list-item p { max-width: 470px; margin: 0; color: var(--ink-soft); }
.section-problems .list-item { counter-increment: issue; }
.section-problems .list-grid { counter-reset: issue; }
.section-problems .list-item::before { content: "0" counter(issue); position: absolute; right: 28px; top: 34px; color: var(--coral); font-family: var(--display); font-style: italic; }

.section-solution { background: var(--paper-deep); }
.alex-card { margin-top: 60px; padding: 44px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: rgba(255,253,247,.72); box-shadow: var(--shadow); }
.alex-header { display: flex; align-items: flex-start; gap: 20px; }
.alex-header h3 { margin: 0 0 8px; font-size: 32px; }
.alex-header p { max-width: 800px; margin: 0; color: var(--ink-soft); }
.alex-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px; }
.alex-col { padding: 28px; border-radius: 20px; background: var(--cream); }
.alex-col:last-child { background: #e7e7e3; }
.alex-col h4 { margin: 0 0 18px; font-family: var(--display); font-size: 22px; }
.alex-col ul { margin: 0; padding: 0; list-style: none; }
.alex-col li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); }
.alex-col li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.alex-col:last-child li::before { content: "—"; color: var(--coral); }
.alex-escalade { margin-top: 20px; padding: 22px 26px; border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; background: rgba(0,0,0,.055); }

.section-features { color: white; background: var(--ink); }
.section-features .eyebrow { color: var(--mint); }
.section-features .list-grid { border-color: rgba(255,255,255,.14); }
.section-features .list-item { min-height: 260px; border-color: rgba(255,255,255,.14); transition: background .25s, padding .25s, transform .25s; }
.section-features .list-item:hover { padding-left: 25px; background: rgba(255,255,255,.06); transform: translateY(-4px); }
.section-features .list-item:nth-child(even):hover { padding-left: 62px; }
.section-features .list-item p { color: rgba(255,255,255,.58); }
.section-features .list-item h4 { color: var(--mint); }

.section-how { background: var(--cream); }
.steps { margin-top: 64px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 12px; }
.step { padding-top: 8px; }
.step-num { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 22px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-family: var(--display); font-size: 20px; }
.step h4 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.step-arrow { padding-top: 19px; color: var(--coral); }

.section-integration { background: var(--paper); }
.access-table, .compare-table { margin-top: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.44); }
.access-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.access-row:last-child { border: 0; }
.access-badge { flex: none; padding: 7px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.access-badge.read { color: var(--green-dark); background: var(--mint); }
.access-badge.off { color: #444; background: #d5d5d1; }

.section-compare { background: var(--cream); }
.compare-header, .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-col-label { padding: 20px 26px; font-weight: 700; background: var(--paper-deep); }
.compare-col-label.after { color: white; background: var(--green); }
.compare-row > div { padding: 19px 26px; border-top: 1px solid var(--line); }
.compare-row > div + div { border-left: 1px solid var(--line); }
.col-before { color: #808080; }
.col-after { position: relative; padding-left: 55px !important; font-weight: 600; }
.col-after::before { content: "✓"; position: absolute; left: 27px; color: var(--green); }

.section-why { background: var(--paper-deep); }
.section-why .alex-avatar { color: white; background: var(--coral); }
.section-why .alex-escalade { display: flex; justify-content: flex-end; border: 0; background: transparent; padding: 0; margin-top: 26px; }
.section-faq { background: var(--cream); }
.faq-list { max-width: 920px; margin: 58px 0 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0; border: 0; text-align: left; font-family: var(--display); font-size: 22px; background: transparent; cursor: pointer; }
.faq-q span { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-family: var(--body); font-size: 22px; }
.faq-a { max-height: 0; overflow: hidden; color: var(--ink-soft); transition: max-height .35s ease, padding .35s ease; }
.faq-a.open { max-height: 240px; padding: 0 60px 26px 0; }

.section-cta { position: relative; padding: 110px 0; overflow: hidden; color: white; text-align: center; background: var(--green-dark); }
.section-cta::before, .section-cta::after { content: ""; position: absolute; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.section-cta::before { left: -110px; top: -180px; }.section-cta::after { right: -100px; bottom: -210px; }
.section-cta h2 { margin-inline: auto; }
.section-cta p { margin: 22px 0 30px; color: rgba(255,255,255,.7); }
.section-cta .btn-primary { color: var(--ink); background: var(--mint); }
.section-cta .cta-email { margin-bottom: 0; font-size: 13px; }
.btn-large { min-height: 58px; padding-inline: 30px; }

.footer { padding: 70px 0 24px; color: rgba(255,255,255,.68); background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 60px; }
.footer-logo { color: white; }
.footer-brand p { max-width: 340px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h5 { margin: 0 0 8px; color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { width: min(1180px, calc(100% - 48px)); margin: 50px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

.email-copy-status { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px; color: var(--cream); background: var(--ink); box-shadow: var(--shadow); font-size: 14px; opacity: 0; visibility: hidden; }
.email-copy-status.is-visible { opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(42px) rotate(.7deg); filter: blur(5px); transition: opacity .85s ease, transform .85s cubic-bezier(.16,1,.3,1), filter .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.in-view { opacity: 1; transform: none; filter: blur(0); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes pop { from { opacity: 0; transform: translateY(7px) scale(.98); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(34px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes visualEnter { from { opacity: 0; transform: translateX(70px) rotate(8deg) scale(.9); } to { opacity: 1; transform: rotate(2.5deg) scale(1); } }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .mobile-menu { position: fixed; z-index: 45; top: 96px; left: 18px; right: 18px; padding: 20px; flex-direction: column; gap: 4px; border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); }
  .mobile-menu.open { display: flex; animation: pop .25s ease; }
  .mobile-menu > a:not(.btn-primary) { padding: 11px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
  .mobile-menu .btn-primary { margin-top: 10px; }
  .hero { padding-top: 150px; }
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-content { max-width: 780px; }
  .hero-visual { width: min(520px, 90%); margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 35px; }
  .step-arrow { display: none; }
}

@media (max-width: 680px) {
  .container, .hero-inner { width: min(100% - 32px, 1180px); }
  .nav { top: 10px; width: calc(100% - 20px); height: 62px; padding-left: 18px; border-radius: 16px; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  h1 { font-size: clamp(48px, 14vw, 68px); }
  h2 { font-size: 42px; }
  .hero-sub, .section-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 13px; justify-content: space-between; }
  .stat-num { font-size: 22px; }.stat-label { max-width: 86px; }
  .hero-visual { width: calc(100% - 18px); transform: rotate(1deg); }
  .hero-visual::before { inset: -14px 24px 18px -15px; }
  .chat-widget { min-height: 470px; border-width: 5px; border-radius: 24px; }
  section:not(.hero):not(.section-cta) { padding: 82px 0; }
  .list-grid, .alex-caps, .footer-inner { grid-template-columns: 1fr; }
  .list-item, .list-item:nth-child(even) { min-height: 0; padding: 30px 0; border-right: 0; }
  .section-features .list-item:nth-child(even):hover, .section-features .list-item:hover { padding-left: 15px; }
  .alex-card { margin-top: 42px; padding: 23px; border-radius: 22px; }
  .alex-header { flex-direction: column; }
  .alex-col { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .step-num { grid-row: span 2; margin: 0; }
  .access-row { align-items: flex-start; flex-direction: column; padding: 20px; }
  .compare-row > div, .compare-col-label { padding: 16px; font-size: 13px; }
  .col-after { padding-left: 40px !important; }.col-after::before { left: 16px; }
  .faq-list { margin-top: 42px; }.faq-q { font-size: 19px; }
  .section-cta { padding: 80px 0; }
  .footer-inner { gap: 35px; }.footer-bottom { width: calc(100% - 32px); }
}

.legal-page {
  max-width: 760px;
  margin-inline: auto;
  padding: 48px 20px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.legal-page h1 { font-size: clamp(40px, 8vw, 64px); }
.legal-page h2 { margin: 0 0 18px; font-size: clamp(28px, 5vw, 36px); }
.legal-page section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-page p { margin: 0 0 20px; }
.legal-page .legal-page-meta { color: var(--ink-soft); }
.legal-page a { text-decoration: underline; text-underline-offset: 4px; }
.legal-page a:hover { color: var(--ink-soft); }
.legal-page a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
