/* ============================================================================
   Modulus Technologies — REDO design system (light-dominant, Apple-clean)
   White/off-white canvas, near-black text, navy anchors key sections,
   gold = precise accent. Radical whitespace. No decorative icons.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-2: #F6F5F0;     /* warm off-white section */
  --ink: #0B0B0F;
  --ink-2: #5A6473;
  --ink-3: #8A92A0;
  --navy: #0C1B2E;
  --navy-2: #0F2336;
  --gold: #C8A75B;
  --gold-bright: #DBBE78;
  --gold-deep: #9C7D3C;   /* gold text on light (AA-safe) */
  --cream: #F4EDD8;
  --line: rgba(11,11,15,0.09);
  --line-on-navy: rgba(244,237,216,0.14);

  --maxw: 1180px;
  --pill: 9999px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--navy); }

/* accessibility: skip-to-content link (visible only on keyboard focus) */
.skip { position: fixed; left: 12px; top: -56px; z-index: 200; background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -12px rgba(11,11,15,.5); transition: top .2s var(--ease); }
.skip:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 44px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.on-navy .eyebrow { color: var(--gold-bright); }

/* ---- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: var(--pill); cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--spring), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(200,167,91,.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(11,11,15,.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(11,11,15,.32); transform: translateY(-2px); }
.on-navy .btn-ghost { color: var(--cream); border-color: var(--line-on-navy); }
.on-navy .btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.textlink { font-weight: 600; font-size: 15px; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.on-navy .textlink { color: var(--gold-bright); }
.textlink svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---- Nav ----------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand-mark span { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-img { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.footer .brand-img { box-shadow: 0 0 0 1px var(--line-on-navy); }
.brand .sub { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .login { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-right .login:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-drawer { display: none; }

/* ---- Sections ------------------------------------------------------------ */
section { padding: clamp(88px, 13vh, 160px) 0; }
.sec-paper { background: var(--paper); }
.sec-soft { background: var(--paper-2); }
.sec-navy { background: var(--navy); color: var(--cream); }
.sec-navy h1, .sec-navy h2, .sec-navy h3 { color: #fff; }

/* Hero (light) */
.hero { text-align: center; padding: clamp(96px, 15vh, 180px) 0 clamp(72px, 10vh, 130px); }
.hero .eyebrow { margin-bottom: 26px; display: inline-block; }
.hero h1 { font-size: clamp(46px, 7.5vw, 92px); max-width: 16ch; margin: 0 auto; }
.hero h1 .acc { font-style: italic; color: var(--gold-deep); }
.hero .sub { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2); max-width: 56ch; margin: 28px auto 0; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

/* big calm statement */
.statement { text-align: center; }
.statement p { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.6vw, 54px); line-height: 1.16; letter-spacing: -.02em; max-width: 20ch; margin: 0 auto; }
.statement .muted { color: var(--ink-3); }
.sec-navy .statement .muted { color: rgba(244,237,216,.5); }

/* section head */
.sec-head { max-width: 58ch; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 5vw, 58px); margin-top: 16px; }
.sec-head .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: 18px; max-width: 56ch; }
.sec-navy .sec-head .lead { color: rgba(244,237,216,.78); }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* clean 3-up (no icon tiles) */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 64px; }
.col .k { font-family: var(--font-display); font-size: 30px; color: var(--gold-deep); }
.sec-navy .col .k { color: var(--gold-bright); }
.col h3 { font-size: 22px; margin: 16px 0 10px; }
.col p { color: var(--ink-2); font-size: 15.5px; }
.sec-navy .col p { color: rgba(244,237,216,.74); }
.col + .col { position: relative; }

/* split feature (product) */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature.flip { grid-template-columns: 1.1fr 1fr; }
.feature .copy .eyebrow { margin-bottom: 18px; display: inline-block; }
.feature h2 { font-size: clamp(30px, 4vw, 48px); }
.feature p { color: var(--ink-2); font-size: 17px; margin-top: 16px; max-width: 46ch; }
.sec-navy .feature p { color: rgba(244,237,216,.78); }
.feature .cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* product "window" visual (placeholder for real screenshots) */
.window { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -50px rgba(11,11,15,.55); border: 1px solid var(--line); background: var(--paper); }
.sec-navy .window { border-color: var(--line-on-navy); box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); }
.window .bar { height: 38px; background: var(--paper-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.sec-navy .window .bar { background: var(--navy-2); border-color: var(--line-on-navy); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8d2; display: block; }
.window .body { padding: 26px; display: grid; gap: 14px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); min-height: 280px; }
.sec-navy .window .body { background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.window .line { height: 12px; border-radius: 6px; background: rgba(11,11,15,.07); }
.sec-navy .window .line { background: rgba(244,237,216,.09); }
.window .line.g { background: linear-gradient(90deg, var(--gold), transparent); width: 42%; }
.window .line.w1 { width: 86%; } .window .line.w2 { width: 70%; } .window .line.w3 { width: 78%; } .window .line.w4 { width: 54%; }
.window .chipbar { display: flex; gap: 10px; margin-top: 6px; }
.window .chipbar b { height: 26px; border-radius: var(--pill); background: rgba(11,11,15,.06); flex: 1; }
.sec-navy .window .chipbar b { background: rgba(244,237,216,.08); }
.window .chipbar b.on { background: var(--gold); flex: .6; }

/* CTA closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(34px, 5vw, 62px); max-width: 18ch; margin: 0 auto; }
.closing p { color: var(--ink-2); font-size: 19px; margin: 18px auto 32px; max-width: 48ch; }
.sec-navy .closing p { color: rgba(244,237,216,.76); }
.closing .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(244,237,216,.62); padding: 72px 0 38px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-navy); }
.footer .brand { color: #fff; }
.footer .brand-mark { background: var(--navy-2); }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--gold-bright); margin-top: 16px; max-width: 28ch; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { color: rgba(244,237,216,.45); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 15px; }
.footer-col a { display: block; color: rgba(244,237,216,.7); font-size: 14px; margin-bottom: 11px; transition: color .18s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(244,237,216,.4); }
.footer-bottom a { color: rgba(244,237,216,.62); transition: color .18s; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---- Persuasive components ----------------------------------------------- */
/* trust line under hero */
.trustline { text-align: center; color: var(--ink-3); font-size: 13.5px; letter-spacing: .02em; margin-top: 26px; }
.trustline b { color: var(--ink-2); font-weight: 600; }

/* problem framing */
.problem { text-align: center; }
.problem p { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 4.2vw, 48px); line-height: 1.2; max-width: 22ch; margin: 0 auto; }
.problem .muted { color: var(--ink-3); }

/* founder section */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.portrait { aspect-ratio: 1; border-radius: 26px; background: radial-gradient(120% 120% at 30% 20%, var(--navy-2), var(--navy)); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(11,11,15,.5); }
.portrait::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 70% 90%, rgba(200,167,91,.22), transparent 70%); }
.portrait .mono { font-family: var(--font-display); font-size: 76px; color: var(--gold-bright); position: relative; }
.founder .ftext .eyebrow { display: inline-block; margin-bottom: 16px; }
.founder .quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 3vw, 34px); line-height: 1.3; color: var(--ink); letter-spacing: -.02em; }
.founder .quote .acc { color: var(--gold-deep); font-style: italic; }
.founder .sig { margin-top: 24px; color: var(--ink-2); font-size: 15px; }
.founder .sig b { color: var(--ink); display: block; font-size: 16px; }
.founder .ftext .textlink { margin-top: 22px; }

/* manifesto band (big centered statement) */
.manifesto { text-align: center; }
.manifesto p { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -.02em; max-width: 19ch; margin: 0 auto; }
.sec-navy .manifesto p { color: #fff; }
.manifesto .row { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 22px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 24px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { color: var(--ink-2); font-size: 15.5px; padding: 0 0 22px; max-width: 64ch; }

/* simple form */
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 15px; padding: 13px 15px; border-radius: var(--radius-input, 12px); border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,167,91,.22); }
.field textarea { min-height: 130px; resize: vertical; }
.form { display: grid; gap: 18px; }

/* pricing tiers (light) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(11,11,15,.04), 0 18px 44px -30px rgba(11,11,15,.28); }
.tier.feat { border-color: transparent; box-shadow: 0 30px 64px -30px rgba(200,167,91,.5); position: relative; }
.tier.feat::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: 22px; background: var(--gold); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tier .pop { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--gold); border-radius: var(--pill); padding: 5px 12px; margin-bottom: 14px; }
.tier .tk { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tier h3 { font-size: 19px; margin-top: 8px; }
.tier .price { margin: 18px 0 4px; }
.tier .amt { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--ink); }
.tier .per { color: var(--ink-3); font-size: 15px; }
.tier .credits { color: var(--gold-deep); font-weight: 600; font-size: 14.5px; margin-bottom: 22px; }
.tier ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.tier li { font-size: 14px; padding-left: 24px; position: relative; color: var(--ink-2); }
.tier li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 4px; background: var(--gold); }
.tier .btn { width: 100%; }
.ent { margin-top: 22px; background: var(--navy); color: var(--cream); border-radius: 20px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ent h3 { color: #fff; font-size: 22px; } .ent p { color: rgba(244,237,216,.74); font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* product visual: real app icon in a clean frame (replaces the old fake "window") */
.appshot { border-radius: 22px; aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(360px 200px at 70% 25%, rgba(200,167,91,.10), transparent 70%), var(--paper-2); border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(11,11,15,.42); }
.appshot img { width: clamp(120px, 20vw, 168px); height: auto; border-radius: 26px; box-shadow: 0 28px 56px -24px rgba(11,11,15,.55); }
.appshot .cap { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }

/* --- micro-interactions (subtle, premium — no gimmicks) --- */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; }
.btn-gold:hover::after { left: 150%; }
.appshot img { transition: transform .45s var(--spring); }
.appshot:hover img { transform: translateY(-6px) scale(1.02); }
.col { transition: transform .25s var(--ease); }
.col:hover { transform: translateY(-3px); }
/* staggered entrance for card rows (3- and 4-up) so sections animate in, not pop */
.cols-3 .col:nth-child(1) { transition-delay: .04s; }
.cols-3 .col:nth-child(2) { transition-delay: .12s; }
.cols-3 .col:nth-child(3) { transition-delay: .20s; }
.cols-3 .col:nth-child(4) { transition-delay: .28s; }
.cols-3 .col:hover { transition-delay: 0s; }

/* value / feature icon tile (purposeful, not decorative) */
.vicon { width: 46px; height: 46px; border-radius: 13px; background: rgba(200,167,91,.13); display: grid; place-items: center; color: var(--gold-deep); margin-bottom: 18px; transition: transform .25s var(--spring), background .25s; }
.vicon svg { width: 23px; height: 23px; }
.col:hover .vicon { transform: translateY(-3px); background: rgba(200,167,91,.2); }
.sec-navy .vicon { color: var(--gold-bright); background: rgba(200,167,91,.16); }
@media (prefers-reduced-motion: reduce) { .btn-gold::after { display: none; } .appshot:hover img, .col:hover, .col:hover .vicon { transform: none; } }

/* one continuous constellation background — spans hero -> founder as a single field */
.bg-field { position: relative; background: var(--paper); }
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-field > section { position: relative; z-index: 1; }
/* light sections turn transparent so the one field shows through; the navy
   product panel keeps its fill and reads as a band sitting on the constellation */
.bg-field > .sec-paper, .bg-field > .sec-soft { background: transparent; }
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .field-canvas { display: none; } }

/* ---- Reveal -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* above-the-fold: animate in on load (never wait for scroll, never flash blank) */
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .75s var(--ease) forwards; }
.fade-up.d1 { animation-delay: .08s; } .fade-up.d2 { animation-delay: .16s; }
.fade-up.d3 { animation-delay: .26s; } .fade-up.d4 { animation-delay: .38s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; animation: none; } }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer.open { display: flex; flex-direction: column; padding: 10px 0 18px; border-top: 1px solid var(--line); }
  .nav-drawer.open a { padding: 12px clamp(22px,5vw,44px); color: var(--ink); font-weight: 500; }
  .cols-3 { grid-template-columns: 1fr; gap: 40px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature .vis { order: 2; }
}
/* On small phones, drop the "Technologies" wordmark so the top bar never crowds */
@media (max-width: 600px) { .nav .brand .sub { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
