/* =====================================================================
   OZYN — Public Landing
   Aesthetic: "Swiss Precision Fintech"
   Paper ground · strict grid · hairline rules · mono numerals ·
   extreme weight contrast · single electric-cyan accent.
   Self-contained (NOT the admin Bootstrap theme).
   ===================================================================== */

:root {
    --paper:      #f3f2ed;   /* warm paper ground */
    --paper-2:    #eceae3;   /* slightly deeper panel */
    --ink:        #0b0c0e;   /* near-black */
    --ink-2:      #3a3d42;   /* secondary text */
    --ink-3:      #8b8f96;   /* tertiary / captions */
    --line:       #d4d2c8;   /* hairline rule */
    --line-strong:#bdbbb0;
    --accent:     #0e7c7b;   /* OZYN teal */
    --accent-2:   #c7752a;   /* OZYN amber (secondary highlight) */
    --accent-ink: #0a2e36;   /* deep cyan-black for text on accent */
    --white:      #ffffff;

    --f-display: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
    --f-body:    'Inter', system-ui, -apple-system, sans-serif;
    --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

    --maxw: 1320px;
    --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle paper grain — atmosphere, never flat white */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #ffffff; }

/* ---------- Layout primitives ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 1;
}

.section { padding-block: clamp(72px, 11vh, 150px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(48px, 7vh, 96px); }

.hairline { height: 1px; background: var(--line); border: 0; width: 100%; }

/* Typographic scale — extreme contrast */
.kicker {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.kicker::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--accent);
    display: inline-block;
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -0.02em; }

.display {
    font-weight: 300;
    font-size: clamp(2.7rem, 8.5vw, 7.2rem);
}
.display b, .display strong { font-weight: 800; }

.h2 {
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
}
.h2 b { font-weight: 800; }

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    color: var(--ink-2);
    font-weight: 300;
    max-width: 56ch;
}

.eyebrow-num {
    font-family: var(--f-mono);
    font-weight: 600;
    color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--ink);
    --fg: var(--paper);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 16px 26px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
    position: relative;
    will-change: transform;
}
.btn .arr { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .arr { transform: translateX(5px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--accent { --bg: var(--accent); --fg: #ffffff; border-color: var(--accent); }
.btn--ghost  { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }

/* ---------- Top bar ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand .dot { width: 9px; height: 9px; background: var(--accent); display: inline-block; transform: translateY(-2px); }
.brand small { font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 34px; }
.topnav a {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    position: relative;
    padding-bottom: 4px;
}
.topnav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: var(--accent);
    transition: width .3s cubic-bezier(.2,.7,.2,1);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { width: 100%; }
.topnav .nav-cta { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- HERO (asymmetric, off-center) ---------- */
.hero { padding-top: clamp(130px, 20vh, 220px); padding-bottom: clamp(60px, 9vh, 120px); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: end;
}
.hero__tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-2);
    border: 1px solid var(--line-strong);
    padding: 8px 14px; margin-bottom: 30px;
}
.hero__tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero__tag .pulse::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent); animation: ping 2s ease-out infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.9} 100%{transform:scale(1.9);opacity:0} }

.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero__rule { margin: 34px 0 26px; max-width: 420px; }
.hero__side { padding-bottom: 8px; }
.hero__side .lead { margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
    margin-top: clamp(48px, 8vh, 96px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}
.stat { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.9rem); letter-spacing: -.03em; line-height: 1; }
.stat .num .unit { color: var(--accent); }
.stat .lbl { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Section header block ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head .lead { justify-self: start; }
@media (max-width: 820px){ .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Mandate / why now ---------- */
.mandate__grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: clamp(28px,5vw,72px); }
.timeline { border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-item .yr { font-family: var(--f-mono); font-weight: 600; color: var(--accent); font-size: 1.05rem; padding-top: 2px; }
.tl-item h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.tl-item p { margin: 0; color: var(--ink-2); font-weight: 300; font-size: .98rem; }
.mandate__aside {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(28px, 4vw, 44px);
    align-self: start;
    position: sticky; top: 100px;
}
.mandate__aside .kicker { color: #9aa0a6; }
.mandate__aside .kicker::before { background: var(--accent); }
.mandate__aside h3 { color: var(--white); font-weight: 300; font-size: clamp(1.5rem,2.6vw,2.1rem); margin: 18px 0 16px; }
.mandate__aside h3 b { font-weight: 800; }
.mandate__aside p { color: #b9bdc2; font-weight: 300; }
.mandate__aside .note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: #7d8288; margin-top: 22px; border-top: 1px solid #25282c; padding-top: 16px; }

/* ---------- How it works — 5 corner flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.flow__step { padding: 28px 22px; border-right: 1px solid var(--line); position: relative; min-height: 230px; display: flex; flex-direction: column; }
.flow__step:last-child { border-right: 0; }
.flow__step .idx { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .12em; }
.flow__step .corner { font-family: var(--f-mono); font-weight: 700; color: var(--accent); font-size: 13px; margin-top: 4px; }
.flow__step h3 { font-size: 1.18rem; font-weight: 700; margin: 18px 0 10px; }
.flow__step p { font-size: .9rem; color: var(--ink-2); font-weight: 300; margin: 0; }
.flow__step .ico { margin-top: auto; padding-top: 18px; }
.flow__step .ico svg { width: 30px; height: 30px; stroke: var(--ink); }
.flow__arrow { position: absolute; right: -9px; top: 40px; z-index: 3; width: 18px; height: 18px; background: var(--paper); display: grid; place-items: center; }
.flow__arrow svg { width: 14px; height: 14px; stroke: var(--accent); }

/* ---------- Standards & compliance ---------- */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.std {
    padding: 30px 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transition: background .3s, transform .3s;
}
.std:hover { background: var(--paper-2); }
.std .tag { font-family: var(--f-mono); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.std .tag::before { content:""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.std p { margin: 12px 0 0; font-size: .92rem; color: var(--ink-2); font-weight: 300; }

/* ---------- Why OZYN ---------- */
.why { background: var(--ink); color: var(--paper); }
.why .kicker { color: #9aa0a6; }
.why .h2 { color: var(--white); }
.why .lead { color: #b9bdc2; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #25282c; }
.value {
    padding: 34px 30px 30px;
    border-right: 1px solid #25282c;
    border-bottom: 1px solid #25282c;
    position: relative;
}
.value:nth-child(3n) { border-right: 0; }
.value .vnum { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.value h3 { color: var(--white); font-size: 1.32rem; font-weight: 700; margin: 20px 0 12px; }
.value p { color: #aeb2b8; font-weight: 300; font-size: .95rem; margin: 0; }
@media (max-width: 820px){ .value:nth-child(n) { border-right: 0; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: clamp(28px,5vw,72px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    display: flex; align-items: center; gap: 18px;
    padding: 24px 0; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; color: var(--ink);
}
.faq__q .qn { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); font-weight: 600; flex: none; width: 34px; }
.faq__q .sign { margin-left: auto; flex: none; position: relative; width: 16px; height: 16px; }
.faq__q .sign::before, .faq__q .sign::after { content:""; position:absolute; background: var(--ink); transition: transform .3s; }
.faq__q .sign::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__q .sign::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item.open .sign::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.7,.2,1); }
.faq__a p { margin: 0 0 24px 52px; color: var(--ink-2); font-weight: 300; max-width: 62ch; }
.faq__aside { align-self: start; position: sticky; top: 110px; }

/* ---------- Contact CTA ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(32px,5vw,80px); align-items: start; }
.contact__copy h2 { margin-bottom: 22px; }
.contact__points { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.contact__points li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-2); font-weight: 300; }
.contact__points li b { color: var(--ink); font-weight: 600; }
.contact__points .ck { color: var(--accent); flex: none; font-family: var(--f-mono); }

.form-card { background: var(--white); border: 1px solid var(--ink); padding: clamp(26px, 3.5vw, 44px); }
.field { margin-bottom: 22px; }
.field label {
    display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;
}
.field label .req { color: var(--accent); }
.field input, .field textarea {
    width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line-strong);
    padding: 14px 15px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px){ .form-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); margin-top: 16px; line-height: 1.6; letter-spacing: .02em; }
.field.err input, .field.err textarea { border-color: #d64545; }
.field .err-msg { display: none; color: #d64545; font-size: 12px; margin-top: 6px; font-family: var(--f-mono); }
.field.err .err-msg { display: block; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .badge-ok { width: 64px; height: 64px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent); }
.form-success h3 { font-weight: 300; font-size: 1.8rem; margin-bottom: 12px; }
.form-success h3 b { font-weight: 800; }
.form-success p { color: var(--ink-2); font-weight: 300; max-width: 38ch; margin: 0 auto; }
.form-card.sent .contact-form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { font-size: 1.6rem; margin-bottom: 16px; }
.footer__brand p { color: var(--ink-2); font-weight: 300; max-width: 38ch; font-size: .95rem; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: var(--ink-2); font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer__bottom p { margin: 0; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.footer__disclaimer { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); line-height: 1.7; margin-top: 26px; max-width: 80ch; }

/* ---------- Entrance / scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
.reveal[data-d="5"]{ transition-delay:.40s }

/* hairline draw-in */
.rule-draw { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rule-draw.in { transform: scaleX(1); }

/* hero word mask reveal */
.line > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hero.loaded .line > span { transform: translateY(0); }
.hero .line:nth-child(2) > span { transition-delay: .08s; }
.hero .line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
    .hero__grid { grid-template-columns: 1fr; }
    .hero__side { padding-bottom: 0; }
    .mandate__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
    .mandate__aside, .faq__aside { position: static; }
    .flow { grid-template-columns: 1fr 1fr; }
    .flow__step { border-bottom: 1px solid var(--line); }
    .flow__arrow { display: none; }
    .std-grid, .value-grid { grid-template-columns: 1fr 1fr; }
    .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
    .topnav { display: none; }
    .topnav.open {
        display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 28px var(--gutter);
    }
    .menu-toggle { display: block; }
    .hero__stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2n) { border-right: 0; }
    .stat { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px){
    .flow, .std-grid, .value-grid, .footer__top { grid-template-columns: 1fr; }
    .std-grid { border-left: 0; }
    .std, .value { border-right: 0; }
    .hero__stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .rule-draw { transform: none !important; }
    .line > span { transform: none !important; }
    .hero__tag .pulse::after { display: none; }
}
