/* ============================================================
   PULSETECH v2 — unified design system
   Theme: refined terminal. Dark, sky-blue accent, mono details.
   ============================================================ */

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

:root {
    --bg: #070809;
    --bg-elev: #0c0e11;
    --surface: #11141a;
    --surface-2: #161a22;
    --border: #1e242d;
    --border-bright: #2c3540;

    --accent: #3b9dd4;
    --accent-bright: #5fb6e8;
    --accent-dim: rgba(59, 157, 212, 0.35);
    --glow: rgba(59, 157, 212, 0.16);
    --glow-strong: rgba(59, 157, 212, 0.3);

    --amber: #ffaa00;
    --green: #22c55e;
    --red: #ff3366;

    --text: #eef2f6;
    --text-dim: #97a3b0;
    --text-faint: #59636e;

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

    --radius: 12px;
    --radius-sm: 7px;
    --container: 1240px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle scanlines — signature texture, kept from v1 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
        transparent, transparent 3px,
        rgba(0, 0, 0, 0.08) 3px, rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

::selection { background: var(--accent); color: #04111c; }

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

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

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

/* mono utility */
.mono { font-family: var(--font-mono); }

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled,
.nav.solid {
    background: rgba(7, 8, 9, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo img { height: 46px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent);
    white-space: nowrap;
}
.nav-phone:hover { color: var(--text); }

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--accent);
    white-space: nowrap;
}

.nav-status.amber { color: var(--amber); }
.nav-status.green { color: var(--green); }

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 15px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    z-index: 999;
    background: rgba(7, 8, 9, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px 28px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-bright);
    color: #04111c;
    box-shadow: 0 0 34px var(--glow-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border-color: var(--border-bright);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 22px var(--glow);
}

.btn-sm { padding: 11px 20px; font-size: 12px; }

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 190px 0 100px;
    overflow: hidden;
}

/* dotted grid + glow background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -300px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 65%);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

/* Hero label — plain terminal-style tag with leading rule, no bubble */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-badge::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-badge .status-dot { display: none; }

.hero h1, .hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
}

.hero h1 .accent, .accent {
    color: var(--accent);
    text-shadow: 0 0 36px var(--glow-strong);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-phone {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-dim);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 70px;
    align-items: center;
}

/* ============ TERMINAL WINDOW ============ */
.terminal {
    background: rgba(10, 12, 15, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 13.5px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 50px var(--glow);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 7px; }

.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-bright); }
.terminal-dot.red { background: var(--red); }
.terminal-dot.amber { background: var(--amber); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
    font-size: 12px;
    color: var(--text-faint);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 22px 22px 26px;
    min-height: 300px;
    line-height: 1.9;
}

.terminal-line { opacity: 0; transform: translateY(3px); transition: opacity 0.25s, transform 0.25s; }
.terminal-line.visible { opacity: 1; transform: none; }

.terminal-line .prompt { color: var(--accent); }
.terminal-line .command { color: var(--text); }
.terminal-line .output { color: var(--text-dim); }
.terminal-line .success { color: var(--green); }
.terminal-line .info { color: var(--accent); }
.terminal-line .warn { color: var(--amber); }

.cursor {
    display: inline-block;
    width: 9px; height: 17px;
    background: var(--accent);
    animation: blink 1s steps(1) infinite;
    vertical-align: middle;
    margin-left: 3px;
}

@keyframes blink { 50% { opacity: 0; } }

/* ============ SECTIONS ============ */
section { position: relative; }

.section { padding: 100px 0; }

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

.section-head.center { text-align: center; }

.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head.center .section-tag { justify-content: center; }

.section-tag::before {
    content: '';
    width: 34px; height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.section-head.center .section-tag::after {
    content: '';
    width: 34px; height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-sub {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 640px;
    margin-top: 16px;
}

.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* alternate band */
.band {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ============ BENTO GRID ============ */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .row-2 { grid-row: span 2; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 30px var(--glow);
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 14px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 9px;
    letter-spacing: -0.01em;
}

.card p { color: var(--text-dim); font-size: 14px; }

.card ul { list-style: none; }

.card li {
    color: var(--text-dim);
    font-size: 13.5px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card li:last-child { border-bottom: none; }

.card li::before {
    content: '>';
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 12px;
}

.card-hero {
    background:
        radial-gradient(ellipse at top left, rgba(59, 157, 212, 0.14), transparent 60%),
        var(--surface);
    border-color: var(--accent-dim);
}

.card-hero h3 { font-size: 24px; }
.card-hero p { font-size: 15px; }

.card-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-stat .stat-num {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 28px var(--glow-strong);
    line-height: 1.1;
}

.card-stat .stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-top: 6px;
}

.card-stat .stat-note { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }

/* ============ METRICS STRIP ============ */
.metrics {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px 28px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 13.5px;
}

.metric { display: flex; gap: 8px; }
.metric-key { color: var(--text-faint); }
.metric-value { color: var(--accent); font-weight: 600; }

/* ============ USE CASES / SIMPLE GRID ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============ STEPS (process / how it works) ============ */
.step {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: block;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 19px;
    margin-bottom: 8px;
}

.step p { color: var(--text-dim); font-size: 14px; }

/* ============ PRICING ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.pricing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}

.pricing-card.featured {
    border-color: var(--accent);
    background:
        radial-gradient(ellipse at top, rgba(59, 157, 212, 0.12), transparent 55%),
        var(--surface);
    box-shadow: 0 0 44px var(--glow);
}

.pricing-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #04111c;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 10px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.pricing-price span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dim);
    font-family: var(--font-body);
}

.pricing-desc { color: var(--text-dim); font-size: 13.5px; margin-bottom: 20px; }

.pricing-features {
    list-style: none;
    margin-bottom: 26px;
    flex-grow: 1;
}

.pricing-features li {
    color: var(--text-dim);
    font-size: 13.5px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-size: 12px;
    flex-shrink: 0;
}

.pricing-features li strong { color: var(--text); }

.pricing-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.6;
}

.pricing-note strong { color: var(--text-dim); }

/* ============ COMPARISON TABLE ============ */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 680px;
}

.compare th, .compare td {
    padding: 13px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare th {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--surface);
    color: var(--text);
}

.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-dim); }

.compare .cat td {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--bg-elev);
    text-align: left;
}

.compare .hl { background: rgba(59, 157, 212, 0.05); }
.compare .yes { color: var(--green); }
.compare .no { color: var(--text-faint); }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.open { border-color: var(--accent-dim); }

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-q::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a-inner {
    padding: 0 24px 22px;
    color: var(--text-dim);
    font-size: 14.5px;
}

/* ============ SHOWCASE / TABS / LIGHTBOX ============ */
.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover { border-color: var(--accent-dim); color: var(--text); }

.tab-btn.active {
    background: var(--glow);
    border-color: var(--accent);
    color: var(--accent);
}

.shot {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.shot:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }

.shot-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shot-label::before { content: '▸'; color: var(--accent); font-size: 10px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(4, 5, 6, 0.92);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    box-shadow: 0 30px 100px rgba(0,0,0,0.7);
}

.lightbox-caption {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}

/* ============ CTA ============ */
.cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -340px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 600px;
    background: radial-gradient(ellipse, var(--glow) 0%, transparent 65%);
    pointer-events: none;
}

.cta .container { position: relative; z-index: 1; }

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta p { color: var(--text-dim); font-size: 16.5px; max-width: 620px; margin: 0 auto 42px; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-command {
    margin-top: 56px;
    padding: 18px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-command .prompt { color: var(--accent); }

.copy-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    color: var(--text-dim);
    padding: 6px 13px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { background: var(--accent); color: #04111c; border-color: var(--accent); }

/* ============ FORMS ============ */
.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.form-msg {
    font-family: var(--font-mono);
    font-size: 13px;
    margin-top: 14px;
    display: none;
}

.form-msg.ok { display: block; color: var(--green); }
.form-msg.err { display: block; color: var(--red); }

/* ============ LEGAL / PROSE ============ */
.prose { max-width: 820px; margin: 0 auto; }

.prose h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 44px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.prose h3 { font-size: 17px; margin: 26px 0 10px; color: var(--text); }
.prose p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--text-dim); font-size: 14.5px; margin: 0 0 14px 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); }

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.prose th, .prose td {
    padding: 11px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-dim);
}

.prose th {
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    margin-bottom: 40px;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
    background: var(--bg-elev);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-logo img { height: 44px; width: auto; opacity: 0.75; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 1; }

.footer-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 14px;
}

.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 13.5px;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-ascii {
    text-align: center;
    padding: 34px 0;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    opacity: 0.55;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.25;
    white-space: pre;
    overflow: hidden;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 11px;
    flex-wrap: wrap;
}

.footer-deploy { color: var(--accent); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .terminal-line { transition: none; }
}

/* ============ BADGES ============ */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 11px;
    border: 1px solid;
}

.tag-live { color: var(--accent); border-color: var(--accent-dim); background: var(--glow); }
.tag-beta { color: var(--green); border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }
.tag-dev { color: var(--amber); border-color: rgba(255,170,0,0.4); background: rgba(255,170,0,0.07); }
.tag-soon { color: var(--text-dim); border-color: var(--border-bright); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .span-3, .bento .span-4 { grid-column: span 2; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links, .nav-status, .nav-phone { display: none; }
    .menu-toggle { display: block; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-cols { gap: 40px; }
}

@media (max-width: 640px) {
    .hero { padding: 150px 0 70px; }
    .section { padding: 70px 0; }
    .bento, .grid-2, .grid-4,
    .pricing-grid, .pricing-grid.cols-4 { grid-template-columns: 1fr; }
    .bento .span-2, .bento .span-3, .bento .span-4 { grid-column: span 1; }
    .footer-ascii { font-size: 6px; }
    .cta-command { flex-direction: column; gap: 12px; }
    .metrics { gap: 14px; flex-direction: column; }
    .footer-main { flex-direction: column; }
}
