/* ============================================================
   Security Insight — Professional Dark Theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:          #0b0c14;
    --bg-card:     #13141f;
    --bg-elevated: #1c1e2e;
    --bg-nav:      rgba(11,12,20,.65);

    /* Brand */
    --indigo:        #6366f1;
    --indigo-bright: #818cf8;
    --indigo-dim:    #4f46e5;
    --teal:          #22d3ee;
    --teal-dim:      #0891b2;
    --violet:        #a78bfa;

    /* Aliases for compatibility */
    --blue:       #818cf8;
    --blue-bright: #a78bfa;
    --blue-dim:   #4f46e5;

    /* Text */
    --text:       #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim:   #475569;

    /* Borders */
    --border:        rgba(99,102,241,.15);
    --border-bright: rgba(99,102,241,.5);

    /* Effects */
    --glow-blue:   0 0 40px rgba(99,102,241,.45);
    --glow-teal:   0 0 40px rgba(34,211,238,.35);
    --shadow:      0 8px 48px rgba(0,0,0,.65);

    /* Layout */
    --max-w:     1200px;
    --header-h:  96px;
    --radius:    12px;
    --radius-lg: 20px;
    --ease:      .25s ease;

    /* Fonts */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: var(--indigo-bright); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--violet); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { color: var(--text); font-weight: 800; line-height: 1.15; }

/* ── Skip Link ─────────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; left: -9999px; top: 1rem;
    background: var(--indigo); color: #fff;
    padding: .5rem 1rem; border-radius: var(--radius);
    font-weight: 600; z-index: 999;
}
.skip-link:focus { left: 1rem; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 7rem 0; }

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.grad {
    background: linear-gradient(135deg, var(--indigo-bright) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section labels ────────────────────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1rem;
}
.section-label::before { content: '// '; font-family: var(--mono); opacity: .5; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.section-header p  { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .875rem 2.25rem;
    border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer; transition: all var(--ease);
    text-decoration: none; white-space: nowrap; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    letter-spacing: .02em;
    box-shadow: 0 4px 18px rgba(37,99,235,.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(37,99,235,.25),
        0 0 18px 6px rgba(37,99,235,.6),
        0 0 40px 12px rgba(96,165,250,.35);
}

.btn-ghost {
    background: rgba(255,255,255,.07);
    color: var(--text);
    border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.32);
    color: #fff;
}

.btn-teal {
    background: transparent;
    color: var(--teal);
    border-color: rgba(34,211,238,.4);
}
.btn-teal:hover {
    background: rgba(34,211,238,.08);
    border-color: var(--teal);
    box-shadow: var(--glow-teal);
}

.btn-lg { padding: 1.1rem 2.75rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.4rem; font-size: .875rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.site-header.scrolled {
    background:
        linear-gradient(rgba(99,102,241,.07), rgba(11,12,20,.1)),
        var(--bg-nav);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom-color: rgba(99,102,241,.35);
    box-shadow: 0 4px 40px rgba(0,0,0,.6), 0 1px 0 rgba(99,102,241,.3);
}

.nav {
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; width: 100%;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 68px; width: auto; max-width: unset; }

.nav-links {
    display: flex; align-items: center; gap: 0; flex: 1; justify-content: center;
}
.nav-links a {
    padding: .5rem .65rem;
    color: var(--text-muted);
    font-size: .9rem; font-weight: 500;
    border-radius: 50px;
    transition: all var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links a.active { color: var(--indigo-bright); background: rgba(99,102,241,.12); }

.nav-cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: .5rem; background: none; border: none;
    cursor: pointer; border-radius: var(--radius); color: var(--text);
    transition: background var(--ease);
}
.nav-toggle:hover { background: var(--bg-elevated); }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px; transition: all var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul li a {
    display: block; padding: .9rem 0;
    color: var(--text-muted); font-size: 1rem; font-weight: 500;
    border-bottom: 1px solid var(--border); transition: color var(--ease);
}
.nav-mobile ul li a:hover { color: var(--text); }
.nav-mobile ul li:last-child a { border-bottom: none; }

@media (max-width: 920px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
    background: var(--bg);
    padding: calc(var(--header-h) + 5rem) 0 5rem;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 65% 0%,   rgba(99,102,241,.28)  0%, transparent 60%),
        radial-gradient(ellipse at 0%  80%,  rgba(34,211,238,.18)  0%, transparent 50%),
        radial-gradient(ellipse at 100% 60%, rgba(167,139,250,.14) 0%, transparent 50%);
}

.hero-inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 7.5vw, 5.75rem);
    font-weight: 900; line-height: 1.04;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--text-muted); line-height: 1.75;
    max-width: 640px; margin: 0 auto 2.75rem;
}

.hero-actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
}

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.75rem 0;
}
.stats-inner {
    display: flex; align-items: stretch;
    justify-content: center; flex-wrap: wrap;
}
.stat {
    text-align: center;
    padding: .75rem 3rem;
    flex: 1; min-width: 130px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
    display: block;
    font-size: 2.75rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, var(--indigo-bright), var(--teal));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: .4rem;
}
.stat-label {
    font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-muted);
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--ease);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--teal));
    opacity: 0; transition: opacity var(--ease);
}
.card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow-blue), var(--shadow);
    transform: translateY(-6px);
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 60px; height: 60px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--indigo-bright);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon img { width: 36px; height: 36px; object-fit: contain; }
.card h3 { font-size: 1.15rem; margin-bottom: .65rem; }
.card p  { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.card-link {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: 1.25rem; font-size: .875rem; font-weight: 600;
    color: var(--indigo-bright); transition: gap var(--ease);
}
.card-link:hover { gap: .6rem; color: var(--violet); }

/* ── Blog cards ────────────────────────────────────────────────────────────── */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: all var(--ease);
}
.blog-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow-blue), var(--shadow);
    transform: translateY(-5px);
}
.blog-card-body   { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date   {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
    color: var(--teal); text-transform: uppercase; margin-bottom: .6rem;
}
.blog-card h3     { font-size: 1.05rem; margin-bottom: .75rem; }
.blog-card h3 a   { color: var(--text); }
.blog-card h3 a:hover { color: var(--indigo-bright); }
.blog-card p      { font-size: .9rem; color: var(--text-muted); flex: 1; }
.blog-card-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.blog-card-footer a { font-size: .875rem; font-weight: 600; color: var(--indigo-bright); }
.blog-card-footer a:hover { color: var(--violet); }

/* ── Feature list ──────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.feature {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--ease);
}
.feature:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.feature-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; margin-bottom: .35rem; }
.feature p  { font-size: .875rem; color: var(--text-muted); }

/* ── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(160deg, rgba(99,102,241,.18) 0%, rgba(34,211,238,.08) 100%);
    border-top: 1px solid rgba(99,102,241,.22);
    border-bottom: 1px solid rgba(99,102,241,.22);
    text-align: center; padding: 7rem 0;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.22) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-banner p  { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2.5rem; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Interior page hero ────────────────────────────────────────────────────── */
.page-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: calc(var(--header-h) + 3rem) 0 5rem; text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(99,102,241,.18) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: .75rem; }
.page-hero p  { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── Services detail ───────────────────────────────────────────────────────── */
.service-detail {
    display: grid; grid-template-columns: 90px 1fr;
    gap: 2.5rem; align-items: start;
    padding: 3.5rem 0; border-bottom: 1px solid var(--border);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail-icon {
    width: 80px; height: 80px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo-bright);
}
.service-detail-icon svg { width: 36px; height: 36px; }
.service-detail h2  { font-size: 1.75rem; margin-bottom: .75rem; }
.service-detail > div > p { color: var(--text-muted); margin-bottom: 1rem; }
.service-detail ul  { display: flex; flex-direction: column; gap: .6rem; }
.service-detail li  {
    display: flex; align-items: flex-start; gap: .65rem;
    font-size: .95rem; color: var(--text-muted);
}
.service-detail li::before {
    content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: .15rem;
    background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.3); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2322d3ee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ── Portfolio ─────────────────────────────────────────────────────────────── */
:root { --p-win-h: 420px; }
@media (max-width: 640px) { :root { --p-win-h: 300px; } }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.p-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--ease);
    position: relative;
    cursor: default;
}
.p-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--teal));
    opacity: 0; transition: opacity var(--ease); z-index: 4;
}
.p-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--glow-blue), var(--shadow);
    transform: translateY(-6px);
}
.p-card:hover::before { opacity: 1; }
.p-card:hover .p-img  { animation-play-state: paused; }

/* Browser chrome */
.p-chrome {
    background: var(--bg-elevated);
    padding: .65rem 1rem;
    display: flex; align-items: center; gap: .75rem;
    border-bottom: 1px solid var(--border);
}
.p-dots { display: flex; gap: 5px; flex-shrink: 0; }
.p-dot  { width: 11px; height: 11px; border-radius: 50%; }
.p-dot-r { background: #ff5f57; }
.p-dot-y { background: #febc2e; }
.p-dot-g { background: #28c840; }
.p-bar {
    flex: 1; height: 21px;
    background: var(--bg); border-radius: 4px;
    border: 1px solid var(--border);
}

/* Viewport window */
.p-win {
    position: relative;
    height: var(--p-win-h);
    overflow: hidden;
}
.p-win::before, .p-win::after {
    content: ''; position: absolute;
    left: 0; right: 0; height: 48px;
    pointer-events: none; z-index: 2;
}
.p-win::before { top: 0;    background: linear-gradient(to bottom, var(--bg-card), transparent); }
.p-win::after  { bottom: 0; background: linear-gradient(to top,   var(--bg-card), transparent); }

.p-img {
    width: 100%; height: auto; display: block;
    will-change: transform;
    animation: pScroll var(--scroll-dur, 22s) ease-in-out infinite;
}
.p-shield { position: absolute; inset: 0; z-index: 3; }

@keyframes pScroll {
    0%   { transform: translateY(0); }
    8%   { transform: translateY(0); }
    88%  { transform: translateY(calc(-100% + var(--p-win-h))); }
    100% { transform: translateY(calc(-100% + var(--p-win-h))); }
}

.portfolio-tag {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal); background: rgba(34,211,238,.08);
    border: 1px solid rgba(34,211,238,.2);
    padding: .2rem .65rem; border-radius: 999px;
}

@media (max-width: 700px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

label {
    display: block; font-size: .875rem; font-weight: 600;
    color: var(--text-muted); margin-bottom: .45rem; letter-spacing: .02em;
}
.req::after { content: ' *'; color: var(--indigo-bright); }

input[type="text"], input[type="email"],
input[type="tel"],  input[type="url"],
select, textarea {
    width: 100%; padding: .9rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text); font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease);
    appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
textarea { min-height: 160px; resize: vertical; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.25em;
    padding-right: 2.75rem;
}
.field-note  { font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.field-hint  { display: block; font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.turnstile-wrap { display: flex; justify-content: center; margin: 1rem 0 .5rem; }
.prose { max-width: 780px; margin: 0 auto; line-height: 1.8; }
.prose h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; color: var(--text); }
.prose p, .prose ul { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; }
.prose ul li { margin-bottom: .4rem; }
.prose a { color: var(--indigo-bright); }
.prose strong { color: var(--text); }
.msg-counter        { display: block; font-size: .8rem; margin-top: .35rem; text-align: right; }
.msg-counter--need  { color: var(--text-muted); }
.msg-counter--ok    { color: var(--text-dim); }
.msg-counter--warn  { color: #f59e0b; }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.75rem; font-size: .95rem; }
.alert-success {
    position: fixed;
    top: calc(var(--header-h) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.4);
    border-radius: var(--radius);
    color: #86efac;
    padding: 1rem 1.75rem;
    font-size: .95rem;
}
.alert-error   { background: rgba(239,68,68,.08);  border-left: 3px solid #ef4444; color: #fca5a5; }
.alert ul { list-style: disc; padding-left: 1.5rem; margin-top: .4rem; }
.alert ul li { margin-top: .2rem; }

/* ── Blog post ─────────────────────────────────────────────────────────────── */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 4rem 0; }
.post-date {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
    color: var(--teal); text-transform: uppercase; margin-bottom: .75rem;
}
.post-wrap h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .6rem; }
.post-excerpt { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.post-body h2  { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-body h3  { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem; }
.post-body p   { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.post-body ul, .post-body ol { padding-left: 1.75rem; margin-bottom: 1.25rem; }
.post-body ul  { list-style: disc; }
.post-body ol  { list-style: decimal; }
.post-body li  { color: var(--text-muted); margin-bottom: .4rem; line-height: 1.7; }
.post-body a   { color: var(--indigo-bright); text-decoration: underline; }
.post-body strong { color: var(--text); }
.post-body code {
    background: var(--bg-elevated); color: var(--teal);
    padding: .15em .45em; border-radius: 4px;
    font-size: .875em; font-family: var(--mono);
}
.post-body pre {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    overflow-x: auto; margin-bottom: 1.5rem;
}
.post-body pre code { background: none; padding: 0; color: var(--text-muted); }
.post-body blockquote {
    border-left: 3px solid var(--indigo); margin: 1.75rem 0;
    padding: .875rem 1.25rem;
    background: rgba(99,102,241,.06); border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p { color: var(--text); margin: 0; }
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.breadcrumb { font-size: .8rem; color: var(--text-dim); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--indigo-bright); }

/* ── Error page ────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 8rem 0; }
.error-code { font-size: 8rem; font-weight: 900; line-height: 1; margin-bottom: 1rem; }
.error-page h2 { margin-bottom: .75rem; }
.error-page p  { color: var(--text-muted); max-width: 380px; margin: 0 auto 2rem; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3.5rem;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; line-height: 1.75; max-width: 290px; }
.footer-col h4  {
    font-size: .7rem; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--indigo-bright); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--text-dim);
}
.footer-tagline { font-family: var(--mono); color: var(--teal); font-size: .72rem; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .service-detail { grid-template-columns: 1fr; }
    .stat { padding: .75rem 1.75rem; }
}

@media (max-width: 640px) {
    .section    { padding: 4.5rem 0; }
    .hero       { padding: 5rem 0 3rem; min-height: auto; }
    .form-row   { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 5rem 0; }
    .post-wrap  { padding: 2.5rem 0; }
    .error-code { font-size: 5rem; }
    .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
}
