/* =========================================================
   algorista — AI tender evaluation
   Direction: deep cool "ink" canvas · iris primary ·
   semantic evaluation palette (match / partial / gap) ·
   Space Grotesk / Inter / JetBrains Mono
   Signature: an evaluation matrix that resolves to a ranking
   ========================================================= */

:root {
    /* ink canvas */
    --bg:            #0A0B10;
    --bg-2:          #0C0E15;
    --panel:         #10131E;
    --panel-2:       #141826;
    --surface:       rgba(255, 255, 255, 0.024);
    --surface-hover: rgba(255, 255, 255, 0.045);
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* text */
    --text:          #ECEEF6;
    --text-dim:      #9CA2B6;
    --text-faint:    #868DA6;

    /* iris primary + cyan */
    --iris:          #7B78FF;
    --iris-bright:   #938EFF;
    --iris-deep:     #5B54E6;
    --cyan:          #2FD9EC;

    /* semantic evaluation states */
    --match:         #37D39A;
    --partial:       #F2B44C;
    --gap:           #F1626F;

    /* gradients */
    --grad-accent:   linear-gradient(102deg, #B7B2FF 0%, #7B78FF 44%, #2FD9EC 100%);
    --grad-iris:     linear-gradient(140deg, #8E8AFF 0%, #6058E8 100%);
    --grad-panel:    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

    /* radii */
    --r-xs: 7px;
    --r-sm: 10px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 26px;

    /* shadow / glow */
    --shadow-card:   0 1px 0 rgba(255,255,255,0.05) inset, 0 22px 48px -24px rgba(0,0,0,0.8);
    --shadow-float:  0 30px 70px -30px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.06) inset;
    --glow-iris:     0 18px 60px -18px rgba(107,100,255,0.55);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --maxw: 1180px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(123,120,255,0.32); color: #fff; }

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

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--iris); color: #fff; padding: 10px 16px;
    border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ─── Ambient background ─── */
.bg-atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow--iris {
    width: 720px; height: 720px; top: -280px; right: -160px;
    background: radial-gradient(circle, rgba(107,100,255,0.55), transparent 66%);
    animation: drift 26s ease-in-out infinite alternate;
}
.glow--cyan {
    width: 560px; height: 560px; top: 340px; left: -220px;
    background: radial-gradient(circle, rgba(47,217,236,0.28), transparent 68%);
    animation: drift 32s ease-in-out infinite alternate-reverse;
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 78%);
}
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 40px) scale(1.12); }
}

main, .site-header, .footer { position: relative; z-index: 1; }

/* ─── Header ─── */
.site-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 11, 16, 0.6);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header--scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 11, 16, 0.82);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 8px; box-shadow: var(--glow-iris); }
.brand-name {
    font-family: var(--font-display); font-weight: 600; font-size: 1.24rem;
    letter-spacing: -0.02em; color: var(--text);
}
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 8px; }
.site-nav a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
    transition: color 0.2s var(--ease); position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
    background: var(--grad-accent); transition: width 0.25s var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none; flex-direction: column; gap: 4px; background: none; border: none;
    padding: 8px; border-radius: var(--r-xs);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px 28px 20px; border-bottom: 1px solid var(--border);
    background: rgba(10, 11, 16, 0.96);
}
.mobile-nav a { padding: 12px 4px; color: var(--text-dim); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav.open { display: flex; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
    padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--iris-bright); outline-offset: 3px; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg { padding: 15px 28px; font-size: 0.98rem; }

.btn-primary {
    background: var(--grad-iris); color: #fff;
    box-shadow: var(--glow-iris);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 60%);
    opacity: 0.7;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(107,100,255,0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { flex-direction: column; gap: 2px; }
.btn-primary .btn-label, .btn-primary .btn-sub { position: relative; z-index: 1; }
.btn-primary .btn-sub { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.72); }

.btn-ghost {
    background: var(--surface); color: var(--text); border-color: var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--iris); color: #fff; transform: translateY(-2px); }

/* ─── Sections & headings ─── */
.section { padding: 108px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.014) 12%, rgba(255,255,255,0.014) 88%, transparent); }

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-kicker {
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.04em; color: var(--iris-bright); display: inline-block; margin-bottom: 16px;
}
.section-head h2 {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    line-height: 1.08; letter-spacing: -0.025em; color: var(--text);
}
.section-head p { margin-top: 16px; color: var(--text-dim); font-size: 1.06rem; line-height: 1.6; }

.accent {
    background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ─── Hero ─── */
.hero { padding: 78px 0 96px; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.01em;
    color: var(--text-dim); background: var(--surface);
    border: 1px solid var(--border); border-radius: 100px; padding: 7px 15px 7px 12px;
    margin-bottom: 26px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--match); box-shadow: 0 0 0 4px rgba(55,211,154,0.18); }
.hero-copy h1 {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.35rem, 5vw, 3.55rem); line-height: 1.04; letter-spacing: -0.035em;
    color: var(--text); margin-bottom: 22px;
}
.hero-sub { font-size: 1.14rem; color: var(--text-dim); line-height: 1.62; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 22px; }
.hero-microtrust {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-faint);
}
.lock-ico { width: 15px; height: 15px; color: var(--text-dim); flex-shrink: 0; }

/* ─── Signature: evaluation matrix ─── */
.hero-visual { position: relative; min-width: 0; }
.eval-panel {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border-strong); border-radius: var(--r-lg);
    box-shadow: var(--shadow-float); overflow: hidden;
    position: relative;
}
.eval-panel::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, rgba(107,100,255,0.16), transparent 55%);
}
.eval-chrome {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint);
    position: relative; z-index: 1;
}
.eval-dots { display: inline-flex; gap: 6px; }
.eval-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.eval-dots i:nth-child(1) { background: rgba(241,98,111,0.7); }
.eval-dots i:nth-child(2) { background: rgba(242,180,76,0.7); }
.eval-dots i:nth-child(3) { background: rgba(55,211,154,0.7); }
.eval-title { color: var(--text-dim); }
.eval-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--match); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--match); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.eval-matrix {
    display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 6px; padding: 16px; position: relative; z-index: 1;
}
.mx-cell {
    font-family: var(--font-mono); border-radius: var(--r-xs);
    display: flex; align-items: center; min-width: 0;
}
.mx-corner { font-size: 0.68rem; color: var(--text-faint); padding: 6px 4px; letter-spacing: 0.08em; }
.mx-colhead {
    font-size: 0.74rem; color: var(--text-dim); font-weight: 500;
    justify-content: center; padding: 6px 4px; letter-spacing: -0.01em;
}
.mx-rowhead {
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 8px 6px;
}
.mx-rowhead b { font-size: 0.72rem; color: var(--text); font-weight: 600; }
.mx-rowhead span { font-size: 0.66rem; color: var(--text-faint); font-family: var(--font-body); letter-spacing: 0; }

.mx-score {
    justify-content: center; font-size: 0.82rem; font-weight: 600; min-height: 42px;
    border: 1px solid var(--border); position: relative;
    /* load-in animation */
    opacity: 0; transform: scale(0.86);
    animation: cellIn 0.5s var(--ease) forwards;
    animation-delay: calc(var(--d, 1) * 85ms + 250ms);
}
.mx-score::after {
    content: attr(data-score); font-family: var(--font-mono);
}
.mx-score::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px;
}
.mx-score[data-state="match"]   { background: rgba(55,211,154,0.11);  color: #6fe3bd; }
.mx-score[data-state="match"]::before   { background: var(--match); }
.mx-score[data-state="partial"] { background: rgba(242,180,76,0.11);  color: #f6cd85; }
.mx-score[data-state="partial"]::before { background: var(--partial); }
.mx-score[data-state="gap"]     { background: rgba(241,98,111,0.11);  color: #f68d96; }
.mx-score[data-state="gap"]::before     { background: var(--gap); }
@keyframes cellIn { to { opacity: 1; transform: scale(1); } }

.eval-rank {
    padding: 14px 16px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1;
    background: rgba(255,255,255,0.015);
}
.rank-row { display: grid; grid-template-columns: 26px 1fr 90px 40px; align-items: center; gap: 10px; }
.rank-pos { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); }
.rank-row[data-rank="1"] .rank-pos { color: var(--iris-bright); }
.rank-name { font-size: 0.86rem; font-weight: 500; color: var(--text-dim); }
.rank-row[data-rank="1"] .rank-name { color: var(--text); font-weight: 600; }
.rank-bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.07); overflow: hidden; }
.rank-bar i {
    display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-accent);
    animation: barFill 0.9s var(--ease) forwards; animation-delay: 1s;
}
.rank-row[data-rank="2"] .rank-bar i { background: rgba(255,255,255,0.28); }
.rank-row[data-rank="3"] .rank-bar i { background: rgba(255,255,255,0.16); }
.rank-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); text-align: right; }
.rank-row[data-rank="1"] .rank-val { color: var(--iris-bright); }
@keyframes barFill { to { width: var(--w); } }

.eval-evidence {
    display: flex; align-items: center; gap: 10px; padding: 11px 16px;
    border-top: 1px solid var(--border); font-size: 0.73rem;
    background: rgba(107,100,255,0.05); position: relative; z-index: 1;
}
.ev-key {
    font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--iris-bright); border: 1px solid rgba(123,120,255,0.35); padding: 2px 7px; border-radius: 5px; flex-shrink: 0;
}
.ev-txt { color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-txt b { color: var(--text-dim); font-family: var(--font-mono); font-weight: 500; }

.legend {
    display: flex; gap: 20px; justify-content: center; margin-top: 18px;
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 9px; height: 9px; border-radius: 3px; }
.lg--match { background: var(--match); }
.lg--partial { background: var(--partial); }
.lg--gap { background: var(--gap); }

/* ─── Trustline band ─── */
.trustline-band { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.012); }
.trustline {
    text-align: center; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; color: var(--text-dim);
    max-width: 900px; margin: 0 auto; line-height: 1.4;
}
.accent-underline { color: var(--text); position: relative; }
.accent-underline::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: var(--grad-accent); opacity: 0.7; border-radius: 2px;
}

/* ─── Metrics ─── */
.metrics-section { padding: 88px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.metric {
    padding: 34px 30px; border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--surface); backdrop-filter: blur(6px);
}
.metric-value {
    font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1;
    letter-spacing: -0.04em; display: block; margin-bottom: 14px;
    background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric-value--word { font-size: 2.5rem; }
.metric-x { font-size: 2.2rem; }
.metric-label { color: var(--text-dim); font-size: 1rem; line-height: 1.5; }

/* ─── Steps ─── */
.steps { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; }
.step {
    display: grid; grid-template-columns: 74px 1fr; gap: 26px; padding: 30px 0;
    border-top: 1px solid var(--border); align-items: start;
}
.step:first-child { border-top: none; }
.step-code {
    font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--iris-bright);
    display: flex; align-items: center; justify-content: center; width: 54px; height: 54px;
    border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    background: var(--surface); position: relative;
}
.step-code::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(107,100,255,0.14);
}
.step-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-body p { color: var(--text-dim); font-size: 1rem; line-height: 1.62; max-width: 640px; }

/* ─── Bento ─── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-cell {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 30px 28px; position: relative; overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
    box-shadow: var(--shadow-card);
}
.bento-cell::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(90% 60% at 20% 0%, rgba(107,100,255,0.12), transparent 60%);
    transition: opacity 0.35s var(--ease);
}
.bento-cell:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-hover); }
.bento-cell:hover::after { opacity: 1; }
.bento-wide { grid-column: span 2; }
.cell-tag {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--iris-bright);
    border: 1px solid rgba(123,120,255,0.3); border-radius: 5px; padding: 3px 8px; display: inline-block; margin-bottom: 16px;
}
.bento-cell h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.bento-cell p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.6; }

.cell-figure { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
    font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 11px; border-radius: 7px;
    border: 1px solid var(--border);
}
.chip--match   { color: #6fe3bd; background: rgba(55,211,154,0.1);  border-color: rgba(55,211,154,0.28); }
.chip--partial { color: #f6cd85; background: rgba(242,180,76,0.1);  border-color: rgba(242,180,76,0.28); }
.chip--gap     { color: #f68d96; background: rgba(241,98,111,0.1);  border-color: rgba(241,98,111,0.28); }
.chip--ev      { color: var(--text-dim); background: var(--surface); }
.cell-figure--export { gap: 8px; }
.fmt {
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim);
    padding: 6px 11px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface);
}
.fmt--sec { color: var(--iris-bright); border-color: rgba(123,120,255,0.3); }

/* ─── Personas ─── */
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.persona {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 32px 30px; display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.persona::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad-accent);
    transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease);
}
.persona:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.persona:hover::before { transform: scaleY(1); }
.persona h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.02em; }
.persona-problem { color: var(--text); font-weight: 500; font-size: 0.97rem; }
.persona-problem::before { content: '— '; color: var(--gap); }
.persona-solution { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ─── Deployment ─── */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.deploy-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 32px 28px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative;
}
.deploy-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.deploy-card--feature {
    background: linear-gradient(180deg, rgba(107,100,255,0.1), rgba(107,100,255,0.02));
    border-color: rgba(123,120,255,0.35); box-shadow: var(--glow-iris);
}
.deploy-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 20px; }
.deploy-card ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.deploy-card li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }
.deploy-card li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 4px;
    background: rgba(55,211,154,0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 10.5L4 8l-1 1 3.5 3.5L13 6l-1-1z' fill='%2337D39A'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

/* ─── FAQ ─── */
.faq-container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    overflow: hidden; transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-hover); }
.faq-item:not([open]):hover { border-color: var(--border-strong); background: var(--surface-hover); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 20px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: var(--font-display); font-weight: 500; font-size: 1.04rem; letter-spacing: -0.01em; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 15px; height: 15px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; background: var(--iris-bright); border-radius: 2px; transition: transform 0.25s var(--ease);
}
.faq-icon::before { left: 0; top: 6.5px; width: 15px; height: 2px; }
.faq-icon::after { left: 6.5px; top: 0; width: 2px; height: 15px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.64; }

/* ─── CTA ─── */
.cta-section { padding: 40px 0 108px; }
.cta-card {
    position: relative; overflow: hidden;
    border: 1px solid rgba(123,120,255,0.3); border-radius: var(--r-xl);
    background: linear-gradient(135deg, rgba(107,100,255,0.16), rgba(47,217,236,0.06) 60%, transparent);
    padding: 60px 56px; display: flex; align-items: center; justify-content: space-between; gap: 44px;
    box-shadow: var(--shadow-float);
}
.cta-card::before {
    content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(107,100,255,0.4), transparent 65%); filter: blur(50px); pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; max-width: 620px; }
.cta-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 14px; }
.cta-copy p { color: var(--text-dim); font-size: 1.06rem; line-height: 1.55; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; flex-shrink: 0; }
.cta-contact { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); transition: color 0.2s var(--ease); }
.cta-contact:hover { color: var(--iris-bright); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; display: block; }
.footer-tagline { color: var(--text-faint); font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-content: flex-start; max-width: 520px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-legal {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding-top: 24px; border-top: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); flex-wrap: wrap;
}

/* ─── Modal ─── */
.modal {
    position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px;
    background: rgba(6, 7, 11, 0.72); backdrop-filter: blur(6px); overflow-y: auto;
}
.modal.active { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    width: 100%; max-width: 460px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 32px;
    box-shadow: var(--shadow-float); animation: modalUp 0.28s var(--ease);
    max-height: calc(100dvh - 48px); overflow-y: auto;
}
@keyframes modalUp { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-header h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.modal-close {
    background: none; border: none; color: var(--text-faint); font-size: 26px; line-height: 1;
    width: 36px; height: 36px; border-radius: var(--r-xs); transition: 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); background: var(--surface); }
.modal-intro { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 22px; line-height: 1.5; }
.application-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.optional { color: var(--text-faint); font-weight: 400; }
.form-group input, .form-group textarea {
    font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    padding: 12px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(123,120,255,0.18);
}
.submit-btn { width: 100%; margin-top: 6px; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Notifications ─── */
.notification-stack { position: fixed; top: 22px; right: 22px; z-index: 140; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.notification {
    min-width: 260px; max-width: 340px; padding: 14px 18px; border-radius: var(--r-sm);
    font-size: 0.9rem; font-weight: 500; color: #fff; pointer-events: auto;
    border: 1px solid var(--border-strong); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateX(16px); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    display: flex; align-items: flex-start; gap: 10px; background: var(--panel-2);
}
.notification::before { content: ''; width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.notification-show { opacity: 1; transform: translateX(0); }
.notification-success::before { background: var(--match); }
.notification-error::before { background: var(--gap); }
.notification-info::before { background: var(--iris); }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .hero-visual { max-width: 560px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
    .faq-container { grid-template-columns: 1fr; gap: 32px; }
    .section-head--left { text-align: center; }
}
@media (max-width: 820px) {
    .site-nav { display: none; }
    .nav-toggle { display: flex; }
    .header-actions .btn-sm { display: none; }
    .deploy-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; gap: 16px; }
    .cta-card { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
    .cta-actions { align-items: stretch; width: 100%; }
    .cta-actions .btn { width: 100%; }
}
@media (max-width: 680px) {
    .section { padding: 76px 0; }
    .container { padding: 0 20px; }
    .bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .persona-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .step { grid-template-columns: 1fr; gap: 14px; }
    .footer-inner { flex-direction: column; gap: 28px; }
    .metric-value { font-size: 3rem; }
    .eval-matrix { padding: 12px; gap: 5px; }
    .mx-rowhead span { display: none; }
}
@media (max-width: 380px) {
    .eval-title { display: none; }
    .mx-colhead { font-size: 0.64rem; letter-spacing: -0.02em; }
    .rank-name { font-size: 0.8rem; }
}

/* Keep the mobile menu from lingering open when a phone rotates past the desktop breakpoint */
@media (min-width: 821px) {
    .mobile-nav { display: none !important; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
    .glow { animation: none; }
    .reveal { opacity: 1; transform: none; }
    .mx-score { opacity: 1; transform: none; }
    .rank-bar i { width: var(--w); }
    html { scroll-behavior: auto; }
}
