/*
 * One page, one stylesheet, no build step.
 *
 * Brand color is teal 600 (#0d9488) per the naming decision, but the page is a
 * dark surface — and that decision recorded that the light teals FAIL contrast
 * as button fills with white text. So the accent below is the dark-surface
 * variant #2dd4bf for text and hairlines only, while the primary button keeps a
 * #0d9488 fill, which does pass against white.
 */
:root {
    --ink: #0b1220;
    --ink-2: #111a2c;
    --ink-3: #1a2540;
    --line: rgba(148, 176, 200, 0.16);
    --text: #e8eef6;
    --text-2: #a9b8cc;
    --text-3: #7d8da3;
    --brand: #0d9488;
    --brand-light: #2dd4bf;
    --radius: 10px;
    --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

/*
 * Faint teal wash behind the hero, so the page is not a flat slab.
 *
 * `absolute`, not `fixed`. Fixed glues the gradient to the VIEWPORT, so the
 * wash slid down the page with the scroll and sat behind the form -- and the
 * extra compositing layer also made scrolled screenshots render wrong. Anchored
 * to the document it belongs to the hero and scrolls away, which was the intent.
 */
body { position: relative; }

body::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 620px;
    background: radial-gradient(900px 420px at 18% -10%, rgba(13, 148, 136, 0.20), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

/* --- Header ------------------------------------------------------------------ */

.site-header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand img { display: block; height: 40px; width: auto; }

.header-cta {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.header-cta:hover { color: var(--text); border-color: rgba(45, 212, 191, 0.45); }

/*
 * The lockup plus this pill do not both fit a ~320px viewport: the pill wrapped
 * to three lines inside a rounded border, which looked broken. Drop it on small
 * screens -- the hero's "Request information" is the same link and is already
 * on screen without scrolling.
 */
@media (max-width: 560px) {
    .header-cta { display: none; }
}

/* --- Hero -------------------------------------------------------------------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 4rem; }

.hero { padding: 3.5rem 0 4rem; max-width: 46rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0.3125rem 0.75rem 0.3125rem 0.5rem;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.10);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-light);
}

.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    animation: pulse 2.6s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dot { animation: none; }
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; }

.lede {
    margin: 1.25rem 0 0;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    color: var(--text-2);
    max-width: 38rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.375rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #0f766e; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-quiet { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-quiet:hover { color: var(--text); border-color: rgba(45, 212, 191, 0.45); }

/* --- Capabilities ------------------------------------------------------------ */

.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 680; }

.capabilities { padding: 1rem 0 4rem; }

/*
 * 22rem, not 17rem. There are FOUR cards: at 17rem the track auto-fits three
 * across and strands the fourth alone on a second row, which reads as a mistake
 * rather than a layout. 22rem is the smallest minimum that makes a third column
 * stop fitting inside the 1040px content width, giving a deliberate 2 x 2.
 */
.cap-grid {
    display: grid;
    /*
     * `min(22rem, 100%)`, not a bare `22rem`. A minmax() MINIMUM is a hard floor
     * that grid will not go below -- so on a 319px phone a 22rem (352px) track
     * overflows the body and the whole page scrolls sideways. Caught by
     * measuring scrollWidth at 414px, not by looking at the desktop view, where
     * it is invisible.
     */
    grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.cap {
    padding: 1.375rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.cap h3 { font-size: 1.0625rem; font-weight: 650; color: var(--text); }
.cap p { margin: 0.625rem 0 0; color: var(--text-2); font-size: 0.9375rem; }

/* --- The name ----------------------------------------------------------------- */

/* Deliberately quieter than a capability card and set on a rule rather than a
   panel: this is an aside that earns the name, not a fifth feature. */
.meaning {
    max-width: 38rem;
    margin: 0 0 4rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(45, 212, 191, 0.4);
}

.meaning h2 {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--brand-light);
    letter-spacing: 0.01em;
}

.meaning p { margin: 0.75rem 0 0; color: var(--text-2); }
.meaning em { color: var(--text); font-style: italic; }

/* --- Inquiry ------------------------------------------------------------------ */

.inquiry {
    padding: 2.25rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    scroll-margin-top: 1.5rem;
}

.inquiry-intro { max-width: 40rem; }
.inquiry-intro p { color: var(--text-2); }
.inquiry-intro p:first-of-type { margin-top: 0.875rem; }
.inquiry-intro strong { color: var(--text); }
.muted { font-size: 0.875rem; color: #7d8da3; }

.form { margin-top: 1.75rem; }

.grid-2 {
    display: grid;
    /* Same floor hazard as .cap-grid -- see the note there. */
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 1rem 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }

.field label, .stack legend {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-2);
    letter-spacing: 0.01em;
}

.req { color: var(--brand-light); }

input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
}

textarea { resize: vertical; }

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9b8cc' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 11px;
    padding-right: 2.25rem;
}

/* The options list is drawn by the OS, which does not inherit the dark surface. */
select option { background: var(--ink-3); color: var(--text); }

input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 2px;
}

.other-input { margin-top: 0.375rem; }

.stack { margin: 1.75rem 0 1.25rem; padding: 0; border: 0; }
.stack legend { padding: 0; margin-bottom: 0.25rem; }
.stack-hint { margin: 0 0 1rem; font-size: 0.875rem; color: #7d8da3; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: 0.875rem; color: var(--text-2); }
.form-note.is-error { color: #fca5a5; }

.thanks {
    padding: 2rem 0 0.5rem;
    max-width: 32rem;
}
.thanks h3 { font-size: 1.375rem; color: var(--brand-light); }
.thanks p { color: var(--text-2); }

/* --- 404 ---------------------------------------------------------------------- */

/* Lives here rather than in a <style> block on 404.html: the CSP is
   `style-src 'self'`, so an inline block is blocked and the page renders raw. */
.nf { max-width: 34rem; padding: 5rem 0 6rem; }
.nf h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.nf p { color: var(--text-2); margin: 1rem 0 2rem; }

/* --- Footer ------------------------------------------------------------------- */

.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-2);
}

.site-footer p { margin: 0; }
.site-footer img { opacity: 0.85; }
.copyright { margin-left: auto !important; color: #7d8da3; }

@media (max-width: 640px) {
    .inquiry { padding: 1.5rem 1.25rem; }
    .copyright { margin-left: 0 !important; width: 100%; }
}
