:root {
  --ink: #3b1259;
  --plum: #2a0b40;
  --deep: #1b0730;
  --gold: #e8a13d;
  --gold-light: #f5c15c;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --lavender: #eadff3;
  --text: #211b27;
  --muted: #68616e;
  --line: rgba(59, 18, 89, 0.14);
  --success: #18794e;
  --danger: #b42318;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(42, 11, 64, 0.12);
  --display: "Bricolage Grotesque", "Avenir Next", Avenir, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 161, 61, 0.13), transparent 23rem),
    radial-gradient(circle at 88% 26%, rgba(59, 18, 89, 0.09), transparent 28rem),
    var(--cream);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(251, 247, 240, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.brand img { width: 34px; height: 34px; }
.brand span span { color: var(--gold); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(59, 18, 89, 0.2); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.compact { min-height: 40px; padding-inline: 16px; font-size: 14px; }
.button.gold { color: var(--deep); background: var(--gold-light); border-color: var(--gold-light); }

:focus-visible { outline: 3px solid rgba(232, 161, 61, 0.55); outline-offset: 3px; }

.hero { padding: clamp(64px, 9vw, 128px) 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: clamp(50px, 7vw, 110px); }
.eyebrow { margin: 0 0 18px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }

h1, h2, h3 { font-family: var(--display); color: var(--deep); }
h1 { max-width: 760px; margin: 0; font-size: clamp(55px, 7.7vw, 104px); line-height: 0.91; letter-spacing: -0.065em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(24, 121, 78, 0.1); }

.weave-stage { position: relative; min-height: 610px; display: grid; place-items: center; }
.weave-orbit { position: absolute; inset: 3%; border: 1px solid var(--line); border-radius: 48% 52% 53% 47% / 54% 43% 57% 46%; animation: orbit 26s linear infinite; }
.weave-orbit:nth-child(2) { inset: 12%; animation-direction: reverse; animation-duration: 19s; opacity: 0.65; }

.woven-mark {
  position: relative;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  border-radius: 42%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.woven-mark img { width: 67%; filter: drop-shadow(0 18px 20px rgba(59, 18, 89, 0.1)); }
.thread-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: 0 10px 30px rgba(42, 11, 64, 0.08); }
.thread-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.thread-label.money { left: -20px; top: 18%; }
.thread-label.chat { right: -28px; top: 34%; }
.thread-label.call { left: 9%; bottom: -19px; }
.thread-label.private { right: 2%; bottom: 8%; }

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

.proof-strip { border-block: 1px solid var(--line); background: rgba(255, 253, 249, 0.45); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 30px clamp(16px, 3vw, 34px); border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; }
.proof-item strong { display: block; color: var(--ink); font-family: var(--display); font-size: 18px; }
.proof-item span { color: var(--muted); font-size: 13px; }

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section.flush-top { padding-top: 0; }
.section.shallow-top { padding-top: 20px; }
.plum-bg { background: var(--plum); }
.eyebrow.light { color: rgba(255, 255, 255, 0.72); }
.gold-link { color: var(--gold-light); }
.privacy-action { margin-top: 30px; }
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.not-found img { width: 90px; margin: 0 auto 24px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }

.story-stack { display: grid; gap: 22px; }
.story-card { display: grid; grid-template-columns: 1fr 1.06fr; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--paper); box-shadow: 0 20px 70px rgba(42, 11, 64, 0.07); }
.story-card:nth-child(even) .story-copy { order: 2; }
.story-copy { padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.story-copy .kicker { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.story-copy h3 { margin: 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.045em; }
.story-copy p { max-width: 520px; color: var(--muted); font-size: 17px; }
.story-copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.story-copy li { position: relative; padding-left: 24px; font-weight: 650; }
.story-copy li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 11px; height: 2px; background: var(--gold); }

.product-canvas { min-height: 460px; display: grid; place-items: center; padding: 44px; background: var(--lavender); }
.product-canvas.dark { background: var(--plum); }
.phone-demo { width: min(330px, 92%); overflow: hidden; border: 9px solid var(--deep); border-radius: 42px; background: var(--cream); box-shadow: 0 28px 60px rgba(27, 7, 48, 0.28); transform: rotate(-2.2deg); }
.story-card:nth-child(even) .phone-demo { transform: rotate(2.2deg); }
.phone-top { height: 27px; display: grid; place-items: center; }
.phone-top::after { content: ""; width: 68px; height: 16px; border-radius: 999px; background: var(--deep); }
.demo-head { padding: 18px 20px 20px; }
.demo-head small { color: var(--muted); }
.demo-head strong { display: block; margin-top: 2px; color: var(--deep); font-family: var(--display); font-size: 26px; }
.demo-list { padding: 0 12px 18px; display: grid; gap: 9px; }
.demo-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.demo-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: var(--lavender); color: var(--ink); font-weight: 850; }
.demo-row b, .demo-row span { display: block; line-height: 1.25; }
.demo-row span { color: var(--muted); font-size: 12px; }
.demo-amount { color: var(--danger); font-weight: 850; }
.demo-amount.positive { color: var(--success); }
.message { max-width: 83%; padding: 12px 14px; border-radius: 18px 18px 18px 5px; background: white; box-shadow: 0 8px 24px rgba(42, 11, 64, 0.08); }
.message.me { justify-self: end; border-radius: 18px 18px 5px 18px; background: var(--ink); color: white; }
.message small { display: block; margin-top: 3px; opacity: 0.64; }
.call-face { display: grid; place-items: center; gap: 15px; padding: 42px 30px 50px; color: white; text-align: center; }
.call-face .avatar-big { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 34px; background: var(--gold); color: var(--deep); font-family: var(--display); font-size: 32px; font-weight: 850; }
.call-face h4 { margin: 0; font-family: var(--display); font-size: 25px; }
.call-controls { display: flex; gap: 16px; margin-top: 34px; }
.call-controls i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-style: normal; }
.call-controls i:last-child { background: #d92d20; }

.privacy-panel { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 86px); border-radius: 38px; background: var(--deep); color: white; }
.privacy-panel::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -210px; border: 1px solid rgba(245, 193, 92, 0.26); border-radius: 46% 54% 55% 45%; transform: rotate(22deg); }
.privacy-panel h2 { max-width: 740px; margin: 0; color: white; font-size: clamp(42px, 6vw, 74px); line-height: 0.98; letter-spacing: -0.05em; }
.privacy-panel > p { max-width: 710px; color: #d9cdea; font-size: 18px; }
.privacy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.privacy-item { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.06); }
.privacy-item strong { display: block; color: var(--gold-light); font-family: var(--display); font-size: 20px; }
.privacy-item span { color: #d9cdea; font-size: 14px; }

.quote { padding: 100px 0; text-align: center; }
.quote blockquote { max-width: 930px; margin: 0 auto; color: var(--ink); font-family: var(--display); font-size: clamp(36px, 5.5vw, 68px); font-weight: 750; line-height: 1.04; letter-spacing: -0.045em; }
.quote p { color: var(--muted); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(34px, 6vw, 70px); border-radius: 36px; background: var(--gold); }
.cta-panel h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 0.98; letter-spacing: -0.05em; }
.cta-panel p { max-width: 630px; margin-bottom: 0; color: rgba(27,7,48,.72); }

.site-footer { margin-top: 100px; padding: 68px 0 32px; background: var(--plum); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 0.6fr); gap: 48px; }
.footer-brand p { max-width: 360px; color: #d9cdea; }
.footer-col h2 { margin: 0 0 14px; color: var(--gold-light); font-family: var(--body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 9px 0; color: #eee6f5; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #c7bad4; font-size: 12px; }

.page-hero { padding: 90px 0 64px; }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; align-items: start; padding-bottom: 100px; }
.legal-nav { position: sticky; top: 105px; display: grid; gap: 8px; }
.legal-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.legal-nav a:hover { color: var(--ink); }
.legal-content { padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); }
.legal-content h2 { margin: 42px 0 10px; font-size: 28px; letter-spacing: -0.03em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 28px 0 6px; font-size: 19px; }
.legal-content p, .legal-content li { color: #49424f; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal-content th, .legal-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { color: var(--ink); }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); background: rgba(232,161,61,.09); border-radius: 4px 16px 16px 4px; }

.support-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 100px; }
.support-card { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.support-card h2 { margin: 0; font-size: 27px; }
.support-card p { color: var(--muted); }
.support-card a { color: var(--ink); font-weight: 750; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--lavender); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.steps { counter-reset: steps; display: grid; gap: 14px; margin: 28px 0; }
.step { position: relative; padding: 20px 20px 20px 64px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .hero-grid, .section-heading, .story-card, .cta-panel { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .weave-stage { min-height: 490px; }
  .story-card:nth-child(even) .story-copy { order: initial; }
  .product-canvas { min-height: 420px; }
  .proof-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .support-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 26px, 1180px); }
  .nav { min-height: 66px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .nav .button { min-height: 38px; padding-inline: 14px; font-size: 12px; }
  .hero { padding-top: 54px; }
  h1 { font-size: clamp(50px, 16vw, 72px); }
  .weave-stage { min-height: 410px; }
  .woven-mark { width: 78vw; }
  .thread-label { font-size: 10px; padding: 7px 10px; }
  .thread-label.money { left: -4px; }
  .thread-label.chat { right: -5px; }
  .proof-grid, .privacy-grid, .footer-grid, .support-grid, .resource-grid { grid-template-columns: 1fr; }
  .proof-item { border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: 0; }
  .story-copy, .product-canvas { padding: 28px; }
  .phone-demo { width: 100%; }
  .privacy-panel { border-radius: 28px; }
  .cta-panel { text-align: center; }
  .cta-panel .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .legal-content { padding: 24px 20px; border-radius: 22px; }
  .legal-content table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
