/* ============================================================
   app.css — design tokens, base, typography, buttons, forms
   Dark theme only. No UI framework. System font stack only.
   ============================================================ */

:root {
    --background: #090d12;
    --background-secondary: #0d131b;
    --surface: #111923;
    --surface-hover: #16212d;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #38bdf8;
    --accent-secondary: #22d3ee;
    --accent-soft: rgba(56, 189, 248, 0.12);

    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);

    --header-height: 72px;
    --content-max: 1220px;
    --radius: 10px;

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

img, picture { display: block; max-width: 100%; }

::selection {
    background: rgba(56, 189, 248, 0.28);
}

/* Visible keyboard focus everywhere */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--surface);
    color: var(--text-primary);
    padding: 10px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Layout container */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Section typography */
.section { padding: 132px 0; }
.section-alt { background: var(--background-secondary); }

.section-head { max-width: 720px; margin-bottom: 56px; }

.kicker {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.5em;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 9px;
    font-weight: 650;
    font-size: 1rem;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #04121c;
}
.btn-primary:hover { background: var(--accent-secondary); }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; justify-content: center; }

.btn-icon { display: inline-flex; }
.btn-icon svg { width: 18px; height: 18px; }

/* Cards */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--text-primary);
    font: inherit;
    padding: 13px 15px;
    min-height: 48px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.validation-message {
    color: #fda4af;
    font-size: 0.9rem;
    margin-top: 6px;
}

.form-status {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 24px;
    border: 1px solid var(--border-strong);
}
.form-status p { margin: 0; }
.form-success { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.form-error { background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.35); }
.status-icon { display: inline-flex; flex-shrink: 0; margin-top: 3px; }
.form-success .status-icon { color: #34d399; }
.form-error .status-icon { color: #fb7185; }

/* Honeypot: off-screen for sighted users, NOT display:none
   (bots parsing CSS still see a "normal" positioned field). */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Scroll reveal (progressive enhancement: only hidden when JS runs) */
html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
