/* ==========================================================================
   StingrayIO — public site
   Palette and type inherited from the Stingray Stack and Finance Tracker
   so the three surfaces read as one family. Cyan is the company accent.
   ========================================================================== */

:root {
    --bg-dark: #0A0E14;
    --bg-panel: #111823;
    --bg-card: #1A2332;
    --primary-cyan: #00D2FF;
    --primary-hover: #00A3CC;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #2D3748;
    --success-green: #00FFA3;
    --warn: #F59E0B;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Mono", ui-monospace, Menlo, monospace;

    --measure: 68ch;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --section-y: clamp(4rem, 10vw, 7.5rem);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    /* The apps lock to 100vh and hide overflow. A marketing page must not. */
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-cyan); text-decoration: none; }
a:hover { color: var(--primary-hover); }

:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-cyan);
    color: var(--bg-dark);
    padding: 0.65rem 1rem;
    font-weight: 600;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 34px; }
.brand-name {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    color: var(--text-main);
}
.brand-name span { color: var(--primary-cyan); }

.nav { display: flex; gap: 1.6rem; }
.nav a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.nav a:hover { color: var(--text-main); }
@media (max-width: 720px) { .nav { display: none; } }

/* ------------------------------------------------------------------ hero */

.hero {
    padding-block: clamp(4.5rem, 13vw, 9rem) var(--section-y);
    position: relative;
    overflow: hidden;
}

/* A single soft cyan bloom. One accent gesture reads as confident;
   an accent on every element reads as a template. */
.hero::before {
    content: "";
    position: absolute;
    inset: -30% 0 auto -10%;
    height: 640px;
    background: radial-gradient(
        ellipse 60% 50% at 30% 40%,
        rgba(0, 210, 255, 0.16),
        transparent 70%);
    pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-cyan);
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 700;
    max-width: 20ch;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: var(--text-muted);
    max-width: 58ch;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary-cyan);
    color: #04222B;
    font-weight: 650;
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--primary-cyan);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #04222B;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--primary-cyan);
    border-color: var(--border-color);
}
.btn-ghost:hover {
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

/* -------------------------------------------------------------- sections */

section { padding-block: var(--section-y); }
section + section { border-top: 1px solid var(--border-color); }

.section-head { max-width: var(--measure); margin-bottom: 3rem; }

.section-head h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
}

.section-head p { color: var(--text-muted); }

.label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-cyan);
    margin-bottom: 0.85rem;
}

/* ---------------------------------------------------------------- grids */

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* Four items must not fall 3-across and orphan the fourth. A 2x2 also
   gives each card room for a full sentence without a ragged column. */
.grid--pair { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
@media (max-width: 900px) {
    .grid--pair { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover {
    border-color: rgba(0, 210, 255, 0.45);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card .tagline {
    color: var(--primary-cyan);
    font-size: 0.95rem;
    font-weight: 550;
    margin-bottom: 0.85rem;
}

.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ------------------------------------------------------------- approach */

.principles {
    display: grid;
    gap: 2.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.principle {
    border-left: 2px solid var(--primary-cyan);
    padding-left: 1.4rem;
}

.principle h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.principle p { color: var(--text-muted); font-size: 0.97rem; }

/* ------------------------------------------------------------------ work */

.work-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.9rem;
}

.work-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.work-item p { color: var(--text-muted); font-size: 0.97rem; }

.confidential-note {
    margin-top: 2.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

/* ---------------------------------------------------------------- federal */

.federal {
    background: var(--bg-panel);
}

.federal ul {
    list-style: none;
    max-width: var(--measure);
    margin-top: 1.5rem;
    display: grid;
    gap: 0.9rem;
}

.federal li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-muted);
}

.federal li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-green);
}

/* Placeholder styling — deliberately loud. Nothing marked TODO should be
   able to reach production unnoticed. */
.todo {
    display: block;
    border: 1px dashed var(--warn);
    background: rgba(245, 158, 11, 0.08);
    color: var(--warn);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    line-height: 1.5;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}
.todo strong { color: var(--warn); }

/* ---------------------------------------------------------------- contact */

.contact { text-align: center; }
.contact .wrap { max-width: 720px; }
.contact h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.contact p { color: var(--text-muted); margin-bottom: 2.25rem; }
.contact-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--border-color);
    padding-block: 2.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
