:root {
  --ink: #141320;
  --muted: #676579;
  --paper: #f5f3ed;
  --surface: #fffef9;
  --line: #d9d5ca;
  --violet: #5d3fd3;
  --violet-dark: #3d289b;
  --lime: #c9f75f;
  --peach: #ffb787;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(32, 27, 57, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(20,19,32,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,19,32,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: var(--ink); color: white; padding: .7rem 1rem; z-index: 50; }
.skip-link:focus { top: 1rem; }
.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,243,237,.91);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(20,19,32,.1);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; letter-spacing: -.03em; font-size: 1.18rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--lime); font: 700 1rem ui-monospace, monospace; transform: rotate(-3deg); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible, .footer-links a:hover { color: var(--violet); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); padding: .65rem .8rem; cursor: pointer; }

.hero { padding: 82px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.eyebrow, .micro-label { margin: 0 0 1rem; font: 760 .75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; color: var(--violet); }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(3.7rem, 8vw, 7.35rem); max-width: 8.5ch; }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.65rem); max-width: 12ch; }
h3 { font-size: 1.45rem; }
.hero h1 em { font-style: normal; color: var(--violet); }
.lede { font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.55; max-width: 620px; color: #494658; }
.hero-actions, .loading-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 50px; padding: .8rem 1.12rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 760; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.button-primary { background: var(--ink); color: white; }
.button-primary span { color: var(--lime); }
.button-secondary { background: transparent; color: var(--ink); }
.button-full { width: 100%; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: .88rem; }

.code-window { position: relative; background: #1a1828; color: #f8f7f3; border: 1px solid #1a1828; box-shadow: 18px 18px 0 var(--lime), var(--shadow); transform: rotate(1.4deg); }
.code-window::after { content: "PDF"; position: absolute; right: -14px; top: 54px; padding: 6px 10px; background: var(--peach); color: var(--ink); font: 800 .7rem ui-monospace, monospace; letter-spacing: .12em; transform: rotate(5deg); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.15); font: .72rem ui-monospace, monospace; color: #aaa6bb; }
.dots { display: flex; gap: 7px; }
.dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #777486; }
.code-body { padding: 28px 28px 34px; font: 500 clamp(.82rem, 1.5vw, 1rem)/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; }
.code-line { white-space: nowrap; }
.indent-1 { padding-left: 1.4rem; }
.indent-2 { padding-left: 2.8rem; }
.syntax-key { color: #e8a8ff; }
.syntax-fn { color: #c9f75f; }
.syntax-str { color: #ffbd8d; }
.syntax-muted { color: #858195; }
.cursor { display: inline-block; width: .65em; height: 1.1em; vertical-align: -.2em; background: var(--lime); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mission { padding: 78px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.mission-copy { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.65; margin: 0; }

.catalogue { padding: 100px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 45px; }
.section-heading p:last-child { max-width: 520px; color: var(--muted); margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.product-card { position: relative; min-height: 430px; padding: 34px; background: rgba(255,254,249,.7); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.product-card:nth-child(4n+2), .product-card:nth-child(4n+3) { background: rgba(237,231,255,.55); }
.product-card .card-index { position: absolute; right: 18px; top: -20px; font: 800 7rem/1 ui-monospace, monospace; letter-spacing: -.09em; color: rgba(20,19,32,.07); }
.product-card h3 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); max-width: 13ch; }
.product-card > p:not(.eyebrow) { max-width: 55ch; color: var(--muted); }
.code-list { padding: 0; margin: 16px 0 28px; list-style: none; font: .86rem/1.55 ui-monospace, monospace; }
.code-list li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px dashed var(--line); }
.code-list li::before { content: ">"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.card-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.card-footer strong { font-size: 1.25rem; }
.text-link { text-decoration: none; font-weight: 760; color: var(--violet-dark); }
.text-link:hover span { display: inline-block; transform: translate(2px,-2px); }

.benefits { padding: 90px 0; background: var(--ink); color: white; }
.benefits h2 { color: white; }
.benefit-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { padding: 28px; border-left: 1px solid rgba(255,255,255,.23); }
.benefit:first-child { border-left: 0; }
.benefit-number { font: 780 .8rem ui-monospace, monospace; color: var(--lime); }
.benefit h3 { margin-top: 28px; font-size: 1.18rem; letter-spacing: -.02em; }
.benefit p { color: #c9c6d4; font-size: .92rem; }

.faq { padding: 100px 0; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 760; cursor: pointer; }
.faq-item button span:last-child { font-size: 1.4rem; transition: transform .25s ease; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 44px 22px 0; color: var(--muted); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open button span:last-child { transform: rotate(45deg); }

.site-footer { padding: 64px 0 30px; background: #0d0c14; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-grid .brand { margin-bottom: 20px; }
.footer-grid p { color: #aaa7b7; max-width: 420px; }
.footer-label { font: 720 .72rem ui-monospace, monospace; color: var(--lime); letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #d6d4dd; text-decoration: none; font-size: .9rem; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 20px; color: #8d8999; font-size: .8rem; }

.page-hero { padding: 92px 0 64px; }
.page-hero h1 { font-size: clamp(3.4rem, 7vw, 6.5rem); max-width: 10ch; }
.page-hero .lede { margin-top: 24px; }
.prose-shell { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 30px 0 110px; }
.prose-shell h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); margin: 56px 0 18px; max-width: none; }
.prose-shell h3 { margin: 34px 0 10px; }
.prose-shell p, .prose-shell li { color: #4e4b5c; }
.prose-shell a { color: var(--violet-dark); }
.legal-meta { border-left: 4px solid var(--lime); padding: 14px 18px; background: var(--surface); }

.product-hero { padding: 45px 0 84px; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 48px; color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: var(--violet-dark); }
.product-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 8vw, 110px); align-items: end; }
.product-copy h1 { font-size: clamp(3.8rem, 8vw, 7.5rem); max-width: 9ch; }
.product-copy > p:last-child { max-width: 680px; color: var(--muted); }
.purchase-panel { background: var(--surface); border: 1px solid var(--ink); padding: 28px; box-shadow: 12px 12px 0 var(--lime); }
.purchase-price { margin: 0 0 24px; font-size: 3rem; font-weight: 800; letter-spacing: -.06em; }
.delivery-row { display: flex; justify-content: space-between; gap: 22px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.delivery-row span { color: var(--muted); }
.delivery-row strong { text-align: right; }
.purchase-panel .button { margin-top: 22px; }
.fine-print { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.content-section { padding: 80px 0 110px; border-top: 1px solid var(--line); }
.split-content { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(55px, 9vw, 120px); align-items: start; }
.module-list { margin: 42px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.module-list li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.module-list span { font: 760 .76rem ui-monospace, monospace; color: var(--violet); padding-top: 5px; }
.module-list p { margin: 0; font-weight: 680; }
.side-note { position: sticky; top: 110px; padding: 28px; border: 1px solid var(--ink); background: #ece7ff; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid rgba(20,19,32,.15); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--violet-dark); font-weight: 900; }
.note { margin: 25px 0 0; color: var(--muted); font-size: .82rem; }

.loading-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 50px 20px; }
.loading-panel { width: min(100%, 610px); border: 1px solid var(--ink); background: var(--surface); padding: clamp(32px, 7vw, 70px); text-align: center; box-shadow: 14px 14px 0 var(--lime); }
.loading-panel h1 { max-width: none; font-size: clamp(2.3rem, 6vw, 4rem); }
.spinner { width: 54px; height: 54px; margin: 0 auto 30px; border: 5px solid var(--line); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-actions { justify-content: center; }
.state-message { padding: 110px 20px; text-align: center; }
.state-message h1, .state-message h3 { max-width: none; }
.state-message .button { margin-top: 20px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 30px 0 100px; }
.about-grid article { border-top: 1px solid var(--ink); padding-top: 24px; }
.about-grid article:nth-child(2) { transform: translateY(60px); }
.about-grid p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding: 25px 0 110px; }
.contact-card { border-top: 1px solid var(--ink); padding-top: 24px; }
.contact-card a { color: var(--violet-dark); font-weight: 720; }
.contact-form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--ink); padding: clamp(24px, 5vw, 44px); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 720; font-size: .86rem; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: .9rem 1rem; border-radius: 0; }
.field textarea { min-height: 155px; resize: vertical; }

.reveal { animation: reveal .55s ease both; animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .hero-grid, .mission-grid, .faq-layout, .product-hero-grid, .split-content, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 70px; }
  .code-window { max-width: 620px; }
  .mission-grid, .faq-layout, .contact-grid { gap: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.23); }
  .benefit:nth-child(4) { border-top: 1px solid rgba(255,255,255,.23); }
  .side-note { position: static; }
}

@media (max-width: 700px) {
  .section-shell, .prose-shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 66px; }
  .menu-button { display: block; }
  .nav-links { position: absolute; inset: 66px 0 auto; display: none; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .hero { padding: 60px 0 55px; }
  h1 { font-size: clamp(3.2rem, 18vw, 5.2rem); }
  .code-body { padding: 24px 17px 28px; font-size: .72rem; }
  .section-heading { display: grid; align-items: start; }
  .product-card { min-height: 390px; padding: 26px; }
  .benefit-grid, .footer-grid, .about-grid { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child { border-left: 0; border-top: 1px solid rgba(255,255,255,.23); }
  .footer-bottom { flex-direction: column; }
  .about-grid article:nth-child(2) { transform: none; }
  .delivery-row { align-items: start; }
  .purchase-panel { box-shadow: 7px 7px 0 var(--lime); }
}
