/* =========================================================================
   VITMA design system
   Ink navy + vermillion (Oracle nod) + cyan. Sora display / Inter body.
   ========================================================================= */

:root {
    --ink:        #0B1524;
    --ink-2:      #14233b;
    --ink-3:      #24374f;
    --muted:      #5b6b80;
    --line:       #e5eaf1;
    --surface:    #ffffff;
    --surface-2:  #f5f7fb;
    --surface-3:  #eef2f8;

    --brand:      #e4462e;
    --brand-2:    #ff6a3d;
    --brand-deep: #b4231c;
    --cyan:       #16b6c4;

    --grad-brand: linear-gradient(120deg, #ff6a3d 0%, #e4462e 55%, #b4231c 100%);
    --grad-ink:   radial-gradient(1200px 600px at 80% -10%, #1b2f4d 0%, #0b1524 60%);

    --radius:   16px;
    --radius-sm: 10px;
    --shadow:   0 1px 2px rgba(11,21,36,.06), 0 12px 30px -12px rgba(11,21,36,.18);
    --shadow-lg: 0 30px 60px -24px rgba(11,21,36,.35);

    --container: 1140px;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: 'Sora', var(--font-body);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--grad-brand); color: #fff;
    box-shadow: 0 10px 24px -10px rgba(228,70,46,.7);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(228,70,46,.75); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-ghost {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: none; }
.btn-light:hover { background: #fff; opacity: .92; }
.ico { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 38px; height: 38px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
    font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
    letter-spacing: .06em; color: var(--ink);
}
.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu a {
    display: inline-block; padding: .5rem .8rem; border-radius: 8px;
    color: var(--ink-2); font-weight: 500; font-size: .97rem;
    transition: background .15s ease, color .15s ease;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: .4rem; }
.nav-cta .btn { color: #fff; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 40px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------- section scaffolding ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .78rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--grad-ink); color: #fff;
    padding: 96px 0 108px;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 520px at 88% 12%, rgba(255,106,61,.30), transparent 60%),
        radial-gradient(420px 420px at 10% 90%, rgba(22,182,196,.18), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 {
    color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800;
    line-height: 1.04; letter-spacing: -0.02em;
}
.hero h1 .accent {
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #c6d2e2; font-size: 1.18rem; margin-top: 1.35rem; max-width: 34ch; }
.hero-actions { display: flex; gap: .9rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-eyebrow { color: #ff9a7d; }
.hero-eyebrow::before { background: #ff9a7d; }
.hero-stats { display: flex; gap: 30px; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat strong {
    display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff;
}
.hero-stats .stat span { color: #9fb0c6; font-size: .92rem; }

/* hero visual: floating "data stack" card */
.hero-visual { position: relative; }
.code-card {
    background: rgba(9,17,30,.72); border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px); overflow: hidden;
}
.code-card .bar {
    display: flex; align-items: center; gap: 7px; padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #33455f; }
.code-card .bar i:nth-child(1) { background: #ff5f57; }
.code-card .bar i:nth-child(2) { background: #febc2e; }
.code-card .bar i:nth-child(3) { background: #28c840; }
.code-card .bar span { margin-left: auto; color: #6f8199; font-size: .78rem; font-family: var(--font-head); }
.code-card pre {
    margin: 0; padding: 20px 20px 24px; overflow-x: auto;
    font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .86rem; line-height: 1.75; color: #cdd9ea;
}
.code-card .k { color: #ff8a6a; }
.code-card .s { color: #7fe0d2; }
.code-card .c { color: #5f7690; font-style: italic; }
.code-card .n { color: #9db4ff; }

/* ---------- marquee / trust strip ---------- */
.strip { background: var(--surface-2); border-block: 1px solid var(--line); padding: 26px 0; }
.strip-inner {
    display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center;
}
.strip-inner span {
    font-family: var(--font-head); font-weight: 600; color: var(--ink-3);
    letter-spacing: .04em; font-size: .95rem; opacity: .8;
}
.strip-inner .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .6; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow); position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7deea; }
.card .card-ico {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px;
    background: linear-gradient(135deg, #fff2ee, #ffe1d6); color: var(--brand); margin-bottom: 18px;
}
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 16px;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand);
}
.card .card-link .ico { transition: transform .18s ease; }
.card:hover .card-link .ico { transform: translateX(4px); }
.card-link-full { position: absolute; inset: 0; border-radius: var(--radius); }

/* feature list */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feature-list .ico { color: var(--brand); margin-top: 3px; }
.feature-list strong { display: block; font-family: var(--font-head); color: var(--ink); }

/* split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
    border-radius: var(--radius); background: var(--grad-ink); color: #fff;
    padding: 40px; box-shadow: var(--shadow-lg); min-height: 320px;
    display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.split .media h3 { color: #fff; font-size: 1.5rem; }
.split .media p { color: #c6d2e2; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    color: #e7eefb; padding: .5rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
}

/* page hero (interior pages) */
.page-hero { background: var(--grad-ink); color: #fff; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(480px 380px at 85% 0%, rgba(255,106,61,.24), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-hero p { color: #c6d2e2; font-size: 1.15rem; margin-top: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; color: #9fb0c6; font-size: .88rem; margin-bottom: 1.1rem; }
.breadcrumb a { color: #c6d2e2; }
.breadcrumb a:hover { color: #fff; }

/* stats band */
.stat-band { background: var(--ink); color: #fff; }
.stat-band .grid-4 { gap: 0; }
.stat-band .stat {
    text-align: center; padding: 46px 20px; border-right: 1px solid rgba(255,255,255,.08);
}
.stat-band .stat:last-child { border-right: 0; }
.stat-band .stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; }
.stat-band .stat span { color: #9fb0c6; font-size: .95rem; }

/* CTA band */
.cta {
    background: var(--grad-brand); color: #fff; border-radius: 24px;
    padding: 56px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 50% -40%, rgba(255,255,255,.25), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-top: .8rem; max-width: 52ch; margin-inline: auto; }
.cta .btn { margin-top: 1.8rem; }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step .num {
    counter-increment: step; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--brand);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin-top: .3rem; }

/* prose */
.prose { max-width: 720px; }
.prose p { color: var(--ink-2); margin-bottom: 1.1rem; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 .8rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink-2); }
.field input, .field textarea, .field select {
    width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(228,70,46,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: #e7f8ef; color: #16603a; border: 1px solid #bfead0; }
.alert-err { background: #fdeeec; color: #a12318; border: 1px solid #f6ccc5; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .info-item .ico-wrap {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg,#fff2ee,#ffe1d6); color: var(--brand); flex: none;
}
.contact-info .info-item strong { font-family: var(--font-head); display: block; }
.contact-info .info-item span, .contact-info .info-item a { color: var(--muted); }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: clamp(4rem, 12vw, 8rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b7c4d6; padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand-word { color: #fff; }
.footer-tag { margin-top: 14px; color: #8a9bb2; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #b7c4d6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #b7c4d6; }
.footer-contact .ico { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; color: #7d8ea6; font-size: .88rem; flex-wrap: wrap; gap: 10px; }
.footer-badge { color: #8a9bb2; letter-spacing: .06em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-band .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 20px;
        box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a { padding: .7rem .4rem; }
    .nav-cta { margin: .4rem 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .cta { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
