/* ==========================================================================
   Unitas — landing page styles
   Institutional palette: deep navy + warm paper, Fraunces serif headlines.
   ========================================================================== */

:root {
    --navy:       #122b4d;
    --navy-700:   #1b3a63;
    --navy-300:   #6c83a3;
    --ink:        #1c2733;
    --muted:      #5d6873;
    --paper:      #f7f4ee;
    --paper-2:    #fbf9f5;
    --card:       #ffffff;
    --line:       #e6ded2;
    --line-soft:  #efe9df;
    --gold:       #b07a2c;
    --gold-soft:  #f0e3cd;
    --green:      #2f7d52;

    --maxw: 1140px;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(18,43,77,.06), 0 2px 8px rgba(18,43,77,.05);
    --shadow-lg: 0 18px 50px -18px rgba(18,43,77,.32), 0 8px 22px -12px rgba(18,43,77,.18);

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 540; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
    font-family: var(--sans);
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }

.lede { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }

/* ---- Buttons --------------------------------------------------------------*/
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
    padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(18,43,77,.7); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-300); background: var(--paper-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #98671f; transform: translateY(-1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / nav ---------------------------------------------------------*/
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247,244,238,.82);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(18,43,77,.03); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: .98rem; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* Language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.lang-toggle button {
    font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .03em;
    padding: 7px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; }

/* ---- Hero -----------------------------------------------------------------*/
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(1100px 480px at 85% -8%, rgba(176,122,44,.10), transparent 60%),
        radial-gradient(900px 520px at 5% 0%, rgba(18,43,77,.06), transparent 55%);
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .94rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,125,82,.14); }

/* Browser frame */
.frame { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1ece3; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cdc4b5; display: block; }
.frame-bar .url { margin-left: 12px; font-size: .76rem; color: #9a8f7c; font-family: var(--sans); letter-spacing: .02em; }
.frame img { display: block; width: 100%; }
.hero .frame { transform: perspective(1600px) rotateY(-2deg); }

/* ---- Logos / trust strip --------------------------------------------------*/
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.trust .container { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.trust .label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trust .stats { display: flex; gap: 40px; flex-wrap: wrap; margin-left: auto; }
.trust .stat b { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.trust .stat span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---- Section scaffolding --------------------------------------------------*/
.section { padding: 92px 0; }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-navy { background: var(--navy); color: #e9eef5; }
.section-navy h2, .section-navy h3 { color: #fff; }

/* ---- Intro statement ------------------------------------------------------*/
.statement { padding: 80px 0; }
.statement p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.34; color: var(--navy); max-width: 24ch + 30ch; font-weight: 420; }
.statement p .hl { background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 2px; }
.statement .sig { margin-top: 26px; font-family: var(--sans); font-size: .98rem; color: var(--muted); }

/* ---- Feature grid ---------------------------------------------------------*/
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--card); padding: 32px 28px 34px; transition: background .2s; }
.feature:hover { background: var(--paper-2); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ic svg { width: 21px; height: 21px; stroke: #fff; }
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: .98rem; color: var(--muted); margin: 0; }

/* ---- Workflow / steps -----------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--gold);
    position: absolute; top: 0; left: 0;
}
.step .bar { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 18px; position: relative; overflow: hidden; }
.step .bar::after { content: ""; position: absolute; inset: 0; width: 42%; background: var(--gold); border-radius: 3px; }
.step:nth-child(2) .bar::after { width: 64%; }
.step:nth-child(3) .bar::after { width: 84%; }
.step:nth-child(4) .bar::after { width: 100%; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---- Split spotlight ------------------------------------------------------*/
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-body h2 { margin-bottom: 18px; }
.split-list { list-style: none; padding: 0; margin: 22px 0 0; }
.split-list li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line-soft); font-size: 1rem; color: var(--ink); }
.split-list li:first-child { border-top: 0; }
.split-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.split-list b { font-weight: 700; }
.section-navy .split-list li { border-color: rgba(255,255,255,.12); color: #dde5ef; }
.section-navy .lede { color: #aebdd2; }

/* Pricing matrix mini */
.pmatrix { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pmatrix th, .pmatrix td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.pmatrix thead th { background: var(--paper-2); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.pmatrix th:first-child, .pmatrix td:first-child { text-align: left; font-weight: 600; color: var(--navy); }
.pmatrix tr:last-child td { border-bottom: 0; }
.pmatrix td b { color: var(--navy); }

/* ---- Screens gallery ------------------------------------------------------*/
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.shot { cursor: zoom-in; }
.shot .frame { transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot figcaption { margin: 16px 2px 0; }
.shot figcaption b { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); font-weight: 560; display: block; }
.shot figcaption span { font-size: .92rem; color: var(--muted); }
.gallery .wide { grid-column: 1 / -1; }

/* ---- FAQ ------------------------------------------------------------------*/
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 4px; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 540; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 22px; font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 44px 24px 4px; color: var(--muted); font-size: 1rem; }
.faq .answer p { margin: 0; }

/* ---- CTA band -------------------------------------------------------------*/
.cta { text-align: center; }
.cta .frame-decor { position: relative; }
.cta h2 { color: #fff; max-width: 20ch; margin: 0 auto 18px; }
.cta p { color: #b9c6da; max-width: 52ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .small { margin-top: 22px; font-size: .9rem; color: #8fa1bb; }
.cta .small a { color: #cdd9ea; }

/* ---- Footer ---------------------------------------------------------------*/
.site-footer { background: var(--navy); color: #9fb0c8; padding: 56px 0 36px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: 14px 0 0; font-size: .92rem; color: #8fa1bb; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #6f84a3; margin: 0 0 14px; }
.footer-col a { display: block; color: #b9c6da; text-decoration: none; font-size: .95rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: #6f84a3; }
.footer-bottom a { color: #b9c6da; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---- Lightbox -------------------------------------------------------------*/
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,23,40,.86); display: none; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2rem; background: none; border: 0; cursor: pointer; line-height: 1; opacity: .8; }
.lightbox .close:hover { opacity: 1; }

/* ---- Reveal on scroll (only when JS is active, so no-JS shows content) ----*/
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive -----------------------------------------------------------*/
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero .frame { transform: none; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 26px; }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .split.reverse .split-media { order: 0; }
    .gallery { grid-template-columns: 1fr; }
    .trust .stats { margin-left: 0; gap: 28px; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .features { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
}

/* Mobile nav drawer */
.nav-toggle { background: transparent; border: 1px solid var(--line); border-radius: 9px; width: 40px; height: 38px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 8px 28px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
