/* ==================================================================
   VideoAii — Stylesheet
   A clean, editorial design system. Light UI, dark hero.
   ================================================================== */

/* ---- Design tokens ---------------------------------------------- */
:root {
    --ink:        #11161f;   /* primary text            */
    --ink-soft:   #45506180; /* (unused alias)          */
    --muted:      #5a6472;   /* secondary text          */
    --line:       #e6e8ee;   /* hairline borders        */
    --bg:         #ffffff;
    --bg-alt:     #f6f7fb;   /* alternating section bg  */
    --navy:       #0b1224;   /* dark hero / footer      */
    --navy-2:     #131c33;
    --blue:       #1f6bff;   /* brand blue              */
    --blue-dark:  #155bdb;
    --violet:     #6d4aff;   /* accent, used sparingly  */
    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(16,22,31,.04), 0 8px 24px rgba(16,22,31,.06);
    --shadow-lg:  0 24px 60px rgba(11,18,36,.16);
    --wrap:       1180px;
    --ease:       cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul  { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ---- Layout helpers --------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Eyebrow + section heads ------------------------------------ */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p  { color: var(--muted); font-size: 18px; }

/* ---- Buttons ---------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 16px;
    padding: 13px 24px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31,107,255,.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9cdd8; color: var(--ink); background: #fff; }

.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ==================================================================
   Header
   ================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,22,31,.07); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }

.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.nav-link {
    display: block; padding: 9px 14px;
    color: var(--ink); font-weight: 500; font-size: 15.5px;
    border-radius: 8px; transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover  { background: var(--bg-alt); color: var(--ink); }
.nav-link.active { color: var(--blue); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
    display: none; width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--line); border-radius: 9px;
    cursor: pointer; padding: 0;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; margin: 3px auto;
    background: var(--ink); border-radius: 2px; transition: .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==================================================================
   Hero
   ================================================================== */
.hero {
    position: relative; overflow: hidden;
    background: var(--navy);
    color: #eef1f8;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
    opacity: .34;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,18,36,.55) 0%, rgba(11,18,36,.82) 70%, var(--navy) 100%);
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 760px; margin: 0 auto; text-align: center;
    padding: 116px 24px 120px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    color: #cdd6ea; font-size: 13.5px; font-weight: 500;
    padding: 7px 15px; border-radius: 100px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #38d39f; }
.hero h1 {
    color: #fff; font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.08; margin-bottom: 22px;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #6ea0ff, #a98bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
    font-size: clamp(17px, 2vw, 20px); color: #c2cbdd;
    max-width: 580px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    margin-top: 34px; display: flex; gap: 26px; justify-content: center;
    flex-wrap: wrap; color: #97a2ba; font-size: 14.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: #6ea0ff; }

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

.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe2ea; }

.card-icon {
    width: 46px; height: 46px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: #eef3ff; color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p  { color: var(--muted); font-size: 15.5px; }

/* ---- Feature split rows ----------------------------------------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; margin-bottom: 96px;
}
.split:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: 2; }
.split-media img {
    border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); width: 100%;
}
.split-body h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }
.split-body p  { color: var(--muted); margin-bottom: 14px; }
.feature-list { margin: 20px 0 26px; }
.feature-list li {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 7px 0; color: var(--ink); font-size: 15.5px;
}
.feature-list svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ---- How it works ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px 28px;
}
.step-num {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--navy); color: #fff;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 15px; }

/* ==================================================================
   Tools page
   ================================================================== */
.tool {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 40px;
    scroll-margin-top: 96px;
}
.tool-head {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 28px 30px; border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}
.tool-head .tool-icon {
    width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff;
}
.tool-head .tool-icon svg { width: 25px; height: 25px; }
.tool-head h2 { font-size: 22px; margin-bottom: 5px; }
.tool-head p  { color: var(--muted); font-size: 15px; }
.tool-tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--blue); background: #eef3ff;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 8px;
}
.tool-embed { position: relative; background: #f0f1f5; }
.tool-embed iframe {
    width: 100%; height: 720px; border: 0; display: block;
}
.tool-note {
    padding: 16px 30px; font-size: 14px; color: var(--muted);
    border-top: 1px solid var(--line); background: #fff;
    display: flex; gap: 9px; align-items: flex-start;
}
.tool-note svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* ---- Tool index chips ------------------------------------------- */
.tool-jump { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.tool-jump a {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line);
    padding: 10px 16px; border-radius: 100px;
    font-size: 14.5px; font-weight: 500; color: var(--ink);
    transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.tool-jump a:hover { border-color: var(--blue); transform: translateY(-1px); color: var(--ink); }
.tool-jump svg { width: 16px; height: 16px; color: var(--blue); }

/* ==================================================================
   Tips / checklist blocks
   ================================================================== */
.tip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tip h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.tip h3 svg { width: 19px; height: 19px; color: var(--blue); }
.tip ul li {
    position: relative; padding: 5px 0 5px 24px; color: var(--muted); font-size: 15px;
}
.tip ul li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}

/* ==================================================================
   FAQ (accordion)
   ================================================================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 22px 44px 22px 0; position: relative;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq-q::after {
    content: "+"; position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%); font-size: 24px; color: var(--blue);
    font-family: 'Inter', sans-serif; transition: transform .2s var(--ease);
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-a-inner { padding: 0 44px 22px 0; color: var(--muted); font-size: 15.5px; }

/* ==================================================================
   About page
   ================================================================== */
.lead {
    font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55;
    color: var(--ink); font-family: 'Sora', sans-serif; font-weight: 500;
}
.prose-narrow { max-width: 720px; }
.prose-narrow p { color: var(--muted); margin-bottom: 18px; }
.prose-narrow h3 { font-size: 22px; margin: 38px 0 14px; }

.value-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; gap: 16px;
}
.value .value-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    background: #eef3ff; color: var(--blue);
    display: flex; align-items: center; justify-content: center;
}
.value .value-icon svg { width: 21px; height: 21px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p  { color: var(--muted); font-size: 14.5px; }

/* ==================================================================
   Page hero (inner pages)
   ================================================================== */
.page-hero {
    background: var(--navy); color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(109,74,255,.4), transparent 70%);
}
.page-hero-inner { position: relative; padding: 78px 24px 70px; max-width: 760px; }
.page-hero .eyebrow { color: #8fb0ff; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 16px; }
.page-hero p  { color: #c2cbdd; font-size: 18px; max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #8b96ad; margin-bottom: 20px; }
.breadcrumb a { color: #8b96ad; }
.breadcrumb a:hover { color: #fff; }

/* ==================================================================
   Contact
   ================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact-detail { display: flex; gap: 15px; margin-bottom: 26px; }
.contact-detail .ci {
    width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
    background: #eef3ff; color: var(--blue);
    display: flex; align-items: center; justify-content: center;
}
.contact-detail .ci svg { width: 21px; height: 21px; }
.contact-detail h3 { font-size: 16px; margin-bottom: 3px; }
.contact-detail p, .contact-detail a { color: var(--muted); font-size: 15px; }
.contact-detail a:hover { color: var(--blue); }

.form-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 9px;
    font-family: 'Inter', sans-serif; font-size: 15.5px; color: var(--ink);
    background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31,107,255,.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 22px; }
.alert-success { background: #e7f7ef; border: 1px solid #b9e6ce; color: #18603c; }
.alert-error   { background: #fdecec; border: 1px solid #f4c3c3; color: #8a2020; }

/* ==================================================================
   Legal pages
   ================================================================== */
.legal { max-width: 800px; }
.legal .updated {
    display: inline-block; font-size: 13.5px; color: var(--muted);
    background: var(--bg-alt); border: 1px solid var(--line);
    padding: 6px 12px; border-radius: 7px; margin-bottom: 30px;
}
.legal h2 {
    font-size: 22px; margin: 40px 0 12px; padding-top: 6px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p  { color: var(--muted); margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; }
.legal ul li {
    position: relative; padding: 5px 0 5px 22px; color: var(--muted);
}
.legal ul li::before {
    content: ""; position: absolute; left: 2px; top: 14px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.legal a { text-decoration: underline; }
.legal-toc {
    background: var(--bg-alt); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px; margin-bottom: 38px;
}
.legal-toc h3 { font-size: 15px; margin-bottom: 12px; }
.legal-toc ol { margin-left: 18px; color: var(--blue); }
.legal-toc ol li { padding: 3px 0; }
.legal-toc a { text-decoration: none; }

/* ==================================================================
   CTA band
   ================================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff; border-radius: 20px; padding: 60px 48px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; left: -80px; bottom: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31,107,255,.45), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.cta-band p  { color: #c2cbdd; font-size: 18px; max-width: 540px; margin: 0 auto 28px; }

/* ==================================================================
   404
   ================================================================== */
.notfound { text-align: center; padding: 110px 24px; }
.notfound .code {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: clamp(80px, 16vw, 150px); line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: 28px; margin: 8px 0 12px; }
.notfound p  { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.notfound-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================================================================
   Footer
   ================================================================== */
.site-footer { background: var(--navy); color: #aab4c8; padding: 64px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { margin-top: 16px; font-size: 14.5px; max-width: 320px; line-height: 1.7; }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a { color: #aab4c8; font-size: 14px; }
.footer-social a:hover { color: #fff; }
.footer-col h3 {
    color: #fff; font-size: 14px; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 16px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: #aab4c8; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13.5px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #aab4c8; font-size: 13.5px; }
.footer-bottom-links a:hover { color: #fff; }

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

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 960px) {
    .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse .split-media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .value-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }

    .primary-nav {
        position: fixed; inset: 74px 0 auto 0;
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .26s var(--ease);
    }
    .primary-nav.open { max-height: 460px; box-shadow: var(--shadow-lg); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 24px 22px; }
    .nav-link { padding: 13px 12px; border-radius: 8px; }
    .nav-cta { margin: 10px 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; }

    .hero-inner { padding: 84px 24px 88px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-band { padding: 44px 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .tool-embed iframe { height: 600px; }
    .tool-head { flex-direction: column; gap: 12px; }
}

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