/* ============================================================
   MinePulse — Modern UI
   ============================================================ */

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

:root {
    /* Brand */
    --primary:        #ff2d55;
    --primary-600:    #e21f47;
    --primary-700:    #b81639;
    --accent:         #22d3ee;
    --accent-2:       #a855f7;

    /* Neutrals (dark theme base) */
    --bg:             #07070b;
    --bg-2:           #0d0d14;
    --surface:        #11121a;
    --surface-2:      #171823;
    --surface-3:      #1f2030;
    --border:         rgba(255, 255, 255, 0.08);
    --border-strong:  rgba(255, 255, 255, 0.14);

    /* Text */
    --text:           #f5f6fa;
    --text-muted:     #a5a8b8;
    --text-dim:       #6b6e80;

    /* Effects */
    --radius-sm:      10px;
    --radius:         16px;
    --radius-lg:      24px;
    --shadow-sm:      0 1px 2px rgba(0,0,0,.3);
    --shadow:         0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:      0 24px 60px -12px rgba(0,0,0,.6);
    --glow:           0 0 60px rgba(255, 45, 85, .35);

    /* Type */
    --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display:   'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Background decoration
   ============================================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.bg-glow {
    position: fixed;
    inset: -10% -10% auto -10%;
    height: 80vh;
    background:
        radial-gradient(40% 50% at 15% 20%, rgba(255, 45, 85, .35), transparent 70%),
        radial-gradient(35% 45% at 85% 10%, rgba(34, 211, 238, .25), transparent 70%),
        radial-gradient(45% 55% at 50% 45%, rgba(168, 85, 247, .18), transparent 75%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

.text-gradient {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent-2) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .85rem;
    background: rgba(255, 45, 85, .08);
    border: 1px solid rgba(255, 45, 85, .25);
    color: #ffc2cf;
    font-size: .82rem;
    font-weight: 500;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(255, 45, 85, .6);
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 45, 85, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.kicker {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .9rem;
}
.kicker.light { color: var(--accent); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 11, .55);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.navbar.scrolled {
    background: rgba(7, 7, 11, .85);
    border-bottom-color: var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.02em;
    color: var(--text);
}
.logo-text span { color: var(--primary); }
.logo-mark {
    position: relative;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #ff5577, var(--primary-700));
    border-radius: 8px;
    box-shadow: 0 6px 20px -6px var(--primary), inset 0 0 0 1px rgba(255,255,255,.15);
}
.pulse-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,255,255,.6);
    animation: livePulse 1.6s infinite;
}

.nav-menu {
    display: flex;
    gap: .35rem;
    margin-left: auto;
}
.nav-menu a {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav-cta { display: inline-flex; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px; height: 40px;
    padding: 0;
    cursor: pointer;
    color: var(--text);
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    margin: 4px auto;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-sm { padding: .6rem 1rem; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    box-shadow: 0 10px 30px -10px rgba(255, 45, 85, .6), inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(255, 45, 85, .7), inset 0 0 0 1px rgba(255,255,255,.18);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255,255,255,.04);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; z-index: 1; padding: 6rem 0; }

.section-header {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 7rem 0 6rem; overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}
.hero-content h1 { margin: 1.2rem 0 1.2rem; }
.hero-content .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2.2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.hero-trust strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
    letter-spacing: -.02em;
}
.hero-trust span { color: var(--text-dim); font-size: .85rem; }

/* Hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
}
.radar {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(255, 45, 85, .12), transparent 60%),
        conic-gradient(from 0deg, transparent 0deg 320deg, rgba(34, 211, 238, .12) 360deg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), inset 0 0 80px rgba(255, 45, 85, .08);
}
.radar-ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 45, 85, .35);
    animation: ringExpand 3.5s ease-out infinite;
    opacity: 0;
}
.ring-1 { width: 30%; height: 30%; animation-delay: 0s; }
.ring-2 { width: 30%; height: 30%; animation-delay: 1.2s; }
.ring-3 { width: 30%; height: 30%; animation-delay: 2.4s; }
@keyframes ringExpand {
    0%   { transform: scale(.8); opacity: .8; border-color: rgba(255, 45, 85, .6); }
    100% { transform: scale(3.4); opacity: 0;  border-color: rgba(255, 45, 85, 0); }
}
.radar-sweep {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, .35) 50deg, transparent 60deg);
    animation: sweep 4s linear infinite;
    -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%);
            mask: radial-gradient(circle, #000 60%, transparent 61%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-core {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-700));
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 0 60px rgba(255, 45, 85, .55), inset 0 0 0 1px rgba(255,255,255,.2);
    z-index: 2;
}
.blip {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
    animation: blipPulse 2.5s ease-in-out infinite;
}
.blip-1 { top: 22%; left: 70%; animation-delay: .1s; }
.blip-2 { top: 68%; left: 30%; animation-delay: .8s; background: #fde047; box-shadow: 0 0 16px #fde047; }
.blip-3 { top: 75%; left: 72%; animation-delay: 1.6s; }
@keyframes blipPulse {
    0%, 100% { transform: scale(.7); opacity: .5; }
    50%      { transform: scale(1.2); opacity: 1; }
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.1rem;
    background: rgba(17, 18, 26, .85);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    z-index: 3;
    animation: floatY 6s ease-in-out infinite;
}
.card-status { top: 8%; left: -6%; }
.card-metric { bottom: 6%; right: -4%; padding: 1rem 1.2rem; min-width: 180px; animation-delay: 1.5s; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}
.status-title { font-weight: 600; font-size: .95rem; }
.status-meta { color: var(--text-dim); font-size: .8rem; }

.metric-label { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin: .25rem 0 .5rem;
}
.metric-value small { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.metric-bar {
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 999px;
    overflow: hidden;
}
.metric-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #4ade80);
    border-radius: 999px;
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip p {
    text-align: center;
    color: var(--text-dim);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.trust-row span {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .04em;
    opacity: .8;
    transition: opacity .2s, color .2s;
}
.trust-row span:hover { opacity: 1; color: var(--text); }

/* ============================================================
   Cards (problem/solution, features)
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.card-badge {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 1.2rem;
}
.problem-badge { background: rgba(255, 45, 85, .12); color: var(--primary); border: 1px solid rgba(255, 45, 85, .25); }
.solution-badge { background: rgba(34, 197, 94, .12); color: #22c55e; border: 1px solid rgba(34, 197, 94, .25); }
.card h3 { margin-bottom: 1rem; }

.check-list li {
    position: relative;
    padding: .55rem 0 .55rem 1.75rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,.05);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.check-list.dash li::before {
    background: rgba(255, 45, 85, .15);
    border-color: rgba(255, 45, 85, .4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ff2d55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

/* Features */
.features { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 45, 85, .12), transparent 40%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    background: rgba(255, 45, 85, .1);
    border: 1px solid rgba(255, 45, 85, .25);
}
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { color: var(--text-muted); }

/* ============================================================
   How it works
   ============================================================ */
.how-it-works {
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(168, 85, 247, .12), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
    z-index: 0;
}
.timeline-item {
    position: relative;
    padding: 1.8rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    z-index: 1;
    transition: transform .3s ease, border-color .3s ease;
}
.timeline-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.timeline-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    padding: 0 .8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    box-shadow: 0 8px 24px -10px var(--primary);
}
.timeline-item h3 { margin-bottom: .5rem; }
.timeline-item p  { font-size: .95rem; color: var(--text-muted); }

/* ============================================================
   Technology
   ============================================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.tech-item {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, border-color .3s ease;
}
.tech-item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tech-item h4 {
    color: var(--accent);
    margin-bottom: .65rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--font-sans);
    font-weight: 600;
}
.tech-item p { font-size: .95rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 4rem 0 7rem; }
.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(60% 100% at 0% 0%, rgba(255, 45, 85, .35), transparent 60%),
        radial-gradient(60% 100% at 100% 100%, rgba(34, 211, 238, .25), transparent 60%),
        linear-gradient(135deg, #1a0a13, #0b1320);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    pointer-events: none;
}
.cta-card h2 { margin: .75rem 0 .75rem; }
.cta-card p  { color: var(--text-muted); max-width: 540px; }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding-bottom: 7rem; }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h2 { margin: .8rem 0 1rem; }
.contact-info > p { margin-bottom: 2rem; max-width: 440px; }

.contact-list { display: grid; gap: 1rem; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-list strong {
    display: block;
    font-size: .8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-bottom: .15rem;
}
.contact-list a, .contact-list div span { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--primary); }
.ci-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 45, 85, .1);
    color: var(--primary);
    border: 1px solid rgba(255, 45, 85, .25);
    flex-shrink: 0;
}

.contact-form {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #0b0c14;
    box-shadow: 0 0 0 4px rgba(255, 45, 85, .15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note {
    margin-top: .25rem;
    text-align: center;
    font-size: .82rem;
    color: var(--text-dim);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: rgba(7,7,11,.6);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; }
.footer-brand .logo-text span { color: var(--primary); }
.footer-copy { color: var(--text-dim); font-size: .9rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   Modal
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, .8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    animation: fadeIn .25s ease;
}
.modal.active { display: flex; }
.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: pop .35s cubic-bezier(.16,1,.3,1);
}
.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.modal-close:hover { background: var(--primary); border-color: var(--primary); }
.video-wrap {
    position: relative;
    padding-top: 56.25%;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop    { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .radar-ring, .radar-sweep, .blip, .pulse-dot, .live-dot, .hero-card { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .grid-3, .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { display: none; }
    .cta-card { grid-template-columns: 1fr; text-align: left; padding: 2rem; }
    .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
    section { padding: 4.5rem 0; }
    .hero { padding: 4.5rem 0 4rem; }

    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .navbar.menu-open .nav-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 12px; right: 12px;
        flex-direction: column;
        gap: .25rem;
        margin: .5rem 0 0;
        padding: .75rem;
        background: rgba(13, 13, 20, .95);
        border: 1px solid var(--border-strong);
        border-radius: 14px;
        backdrop-filter: blur(14px);
        box-shadow: var(--shadow-lg);
    }
    .navbar.menu-open .nav-menu a { padding: .8rem 1rem; }

    .grid-2, .grid-3, .tech-grid, .timeline { grid-template-columns: 1fr; }
    .hero-trust { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .card-status { left: 0; }
    .card-metric { right: 0; }
    .cta-card { padding: 1.75rem; }
}

@media (max-width: 420px) {
    .hero-trust { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}
