/* =====================================================================
   VELARYNT — Design System
   Aesthetic: refined cyber-defense. Deep navy/black, sharp mint-cyan
   accents, terminal-inspired details elevated to corporate polish.
   ===================================================================== */

:root {
    /* Surfaces */
    --bg:           #070A0F;
    --bg-1:         #0B1118;
    --panel:        #0E1420;
    --panel-2:      #121A28;
    --line:         #1A2333;
    --line-soft:    #141B28;

    /* Text */
    --text:         #E6EDF3;
    --text-dim:     #B6C0CE;
    --text-mute:    #7A8699;

    /* Accents */
    --accent:       #00E5C7;   /* primary mint-cyan */
    --accent-2:     #5EE7FF;   /* secondary cool-cyan */
    --warm:         #FFB84D;   /* warm amber */
    --alert:        #FF4D6D;   /* red — alerts/critical */

    /* Effects */
    --shadow-1:     0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.45);
    --shadow-2:     0 0 0 1px rgba(0,229,199,.18), 0 18px 60px rgba(0,229,199,.08);
    --grid-color:   rgba(120, 145, 180, .055);

    /* Type */
    --f-display:    'Sora', system-ui, -apple-system, sans-serif;
    --f-body:       'Sora', system-ui, -apple-system, sans-serif;
    --f-mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Layout */
    --container:    1240px;
    --radius:       4px;
    --radius-lg:    6px;
}

/* ---- Reset / base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        radial-gradient(1200px 500px at 80% -10%, rgba(0,229,199,.06), transparent 60%),
        radial-gradient(900px 400px at 0% 0%, rgba(94,231,255,.04), transparent 60%),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    background-attachment: fixed, fixed, fixed, fixed;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }

::selection { background: rgba(0,229,199,.25); color: #fff; }

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1em; color: var(--text-dim); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 720px; }

/* ---- Layout primitives --------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section    { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }

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

@media (max-width: 960px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    section { padding: 70px 0; }
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #06221E;
    border-color: var(--accent);
    font-weight: 600;
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(0,229,199,.18);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Header / Nav --------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(7,10,15,.72);
    border-bottom: 1px solid var(--line-soft);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    background: rgba(0,229,199,.06);
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 24px rgba(0,229,199,.2);
}
.brand-name b { color: var(--accent); font-weight: 700; }

.nav-links {
    display: flex; align-items: center; gap: 8px;
    list-style: none; margin: 0; padding: 0;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all .2s ease;
    position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 1px; background: var(--accent);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--f-mono);
    font-size: 12px;
}

@media (max-width: 960px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-block; }
    .nav.open + .mobile-menu { display: block; }
    .mobile-menu {
        display: none;
        border-top: 1px solid var(--line-soft);
        padding: 16px 0;
    }
    .mobile-menu a {
        display: block;
        padding: 12px 28px;
        color: var(--text-dim);
        border-bottom: 1px solid var(--line-soft);
        font-size: 14px;
    }
    .mobile-menu a.active { color: var(--accent); }
}

/* ---- Hero / Page header --------------------------------------------- */
.hero {
    padding: 140px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(700px 280px at 20% 20%, rgba(0,229,199,.08), transparent 60%),
        radial-gradient(500px 220px at 90% 80%, rgba(94,231,255,.05), transparent 60%);
    pointer-events: none;
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 1.4em 0 2.2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-header {
    padding: 130px 0 70px;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.page-header h1 { max-width: 22ch; margin-bottom: 18px; }
.page-header .lead { font-size: 1.1rem; }

/* ---- Cards ---------------------------------------------------------- */
.card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all .3s ease;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,199,.4), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.card:hover {
    border-color: rgba(0,229,199,.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(0,229,199,.07);
    color: var(--accent);
    margin-bottom: 22px;
    font-family: var(--f-mono);
    font-weight: 700;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-mute); font-size: .95rem; margin-bottom: 0; }
.card .card-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---- Terminal block ------------------------------------------------- */
.terminal {
    background: #060A11;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--f-mono);
    box-shadow: var(--shadow-1);
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-mute);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f57; }
.terminal-bar .dot.y { background: #febc2e; }
.terminal-bar .dot.g { background: #28c840; }
.terminal-bar .title { margin-left: 10px; }
.terminal-body {
    padding: 24px;
    font-size: 13px;
    line-height: 1.7;
    color: #C7D1E0;
    min-height: 220px;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmt    { color: var(--text-mute); }
.terminal-body .ok     { color: #6BE3B0; }
.terminal-body .warn   { color: var(--warm); }
.terminal-body .crit   { color: var(--alert); }
.terminal-body .cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Stats strip ---------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
}
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 10px;
}
.stat-value {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-value .unit { color: var(--accent); font-size: 1.2rem; margin-left: 4px; }
@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2,1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---- Two-column section ------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- List with checks ---------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 24px 0; }
.checks li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: .98rem;
}
.checks li::before {
    content: "▸";
    color: var(--accent);
    font-family: var(--f-mono);
    margin-top: 1px;
}

/* ---- Tags ----------------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
    display: inline-flex; align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-mute);
    background: var(--panel);
}
.tag.accent { border-color: rgba(0,229,199,.4); color: var(--accent); background: rgba(0,229,199,.06); }

/* ---- Industry / solution row -------------------------------------- */
.industry {
    padding: 36px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.industry::after {
    content: ""; position: absolute; inset: auto -1px -1px -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.industry:hover::after { transform: scaleX(1); }
.industry:hover { border-color: rgba(0,229,199,.35); }
.industry-num {
    font-family: var(--f-mono);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .15em;
    margin-bottom: 14px;
}
.industry h3 { margin-bottom: 8px; }
.industry p  { color: var(--text-mute); font-size: .95rem; margin-bottom: 0; }

/* ---- Case study card ---------------------------------------------- */
.case {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 36px;
    align-items: center;
    transition: all .3s ease;
}
.case:hover { border-color: rgba(0,229,199,.35); transform: translateY(-2px); }
.case-meta {
    font-family: var(--f-mono); font-size: 11px;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 12px;
}
.case h3 { margin-bottom: 12px; font-size: 1.4rem; }
.case-impact {
    text-align: right;
    border-left: 1px solid var(--line);
    padding-left: 36px;
}
.case-impact .num {
    font-family: var(--f-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}
.case-impact .lbl {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-top: 8px;
}
@media (max-width: 760px) {
    .case { grid-template-columns: 1fr; }
    .case-impact { text-align: left; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
}

/* ---- Insight (blog) cards ---------------------------------------- */
.insight {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 28px;
    transition: all .3s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
.insight:hover { border-color: rgba(0,229,199,.35); transform: translateY(-3px); }
.insight-meta {
    font-family: var(--f-mono); font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 16px;
    display: flex; gap: 14px;
}
.insight-meta .cat { color: var(--accent); }
.insight h3 {
    font-size: 1.2rem; line-height: 1.3;
    margin-bottom: 12px;
}
.insight p { color: var(--text-mute); font-size: .92rem; flex: 1; }
.insight a.read {
    margin-top: 18px;
    font-family: var(--f-mono); font-size: 12px;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent);
}

/* ---- Form ---------------------------------------------------------- */
.form-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
}
.field { margin-bottom: 22px; }
.field label {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 8px;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 15px;
    transition: all .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,229,199,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-note {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--text-mute);
    margin-top: 18px;
}

/* ---- Alert / flash ---------------------------------------------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid;
    margin-bottom: 24px;
    font-size: .95rem;
    font-family: var(--f-mono);
    font-size: 13px;
}
.alert.success { border-color: rgba(0,229,199,.4); background: rgba(0,229,199,.06); color: var(--accent); }
.alert.error   { border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.08); color: var(--alert); }

/* ---- CTA strip ---------------------------------------------------- */
.cta-strip {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 200px at 80% 50%, rgba(0,229,199,.08), transparent 70%),
        var(--panel);
    padding: 56px;
    text-align: center;
}
.cta-strip h2 { margin-bottom: 16px; }
.cta-strip p  { max-width: 620px; margin: 0 auto 28px; color: var(--text-dim); }

/* ---- Footer ------------------------------------------------------- */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-1);
    padding: 80px 0 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 20px;
    font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-dim); font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-mute); font-size: .9rem; margin-top: 14px; max-width: 320px; }

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--text-mute);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom .status {
    display: inline-flex; align-items: center; gap: 8px;
}
.footer-bottom .status .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0,229,199,.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,229,199,.6); }
    70%  { box-shadow: 0 0 0 10px rgba(0,229,199,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,199,0); }
}

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

/* ---- Misc utilities ---------------------------------------------- */
.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }
.accent    { color: var(--accent); }
.mono      { font-family: var(--f-mono); }
.center    { text-align: center; }
.mb-0      { margin-bottom: 0 !important; }
.mt-2      { margin-top: 28px; }
.mt-4      { margin-top: 56px; }

hr.divider {
    border: none;
    border-top: 1px solid var(--line-soft);
    margin: 56px 0;
}

/* Print */
@media print {
    .site-header, .site-footer, .nav-toggle { display: none; }
    body { background: white; color: black; }
}
