/* ============================================================================
   GeeksTV — Landing
   Brand: dark #0a0a10 + orange #FF5722
   ============================================================================ */

:root {
    --bg: #0a0a10;
    --bg-2: #11111a;
    --bg-3: #16161e;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --fg: #f5f5f7;
    --fg-muted: #9b9ba8;
    --fg-dim: #6b6b78;
    --orange: #FF5722;
    --orange-2: #ff7a3d;
    --orange-soft: rgba(255, 87, 34, 0.14);
    --orange-glow: rgba(255, 87, 34, 0.35);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px -10px var(--orange-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --max-w: 1180px;
    --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--orange-2); background: rgba(255,87,34,0.08); padding: 0.1em 0.4em; border-radius: 6px; }
em { font-style: italic; color: var(--fg); }

/* ===== Background ===== */
#bg-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
.mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 80% 0%, rgba(255, 87, 34, 0.18), transparent 60%),
        radial-gradient(50% 40% at 0% 30%, rgba(255, 87, 34, 0.10), transparent 60%),
        radial-gradient(40% 30% at 50% 100%, rgba(255, 87, 34, 0.08), transparent 60%);
    animation: mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad-x);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: linear-gradient(180deg, rgba(10,10,16,0.78), rgba(10,10,16,0.55));
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fg);
    transition: opacity 0.25s ease;
}
.brand:hover { opacity: 0.85; }
.logo-mark {
    display: inline-flex;
    color: var(--orange);
    filter: drop-shadow(0 0 12px var(--orange-glow));
}
.logo-text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.logo-text .orange { color: var(--orange); }
.logo-text.small { font-size: 1rem; }

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fg-muted);
    padding: 7px 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.status-chip .pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 0 var(--orange);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 87, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

/* ===== Sections ===== */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
section {
    padding: clamp(80px, 12vh, 140px) 0;
    position: relative;
}
.section-head {
    max-width: 720px;
    margin: 0 0 48px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.section-head p { color: var(--fg-muted); font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
    padding-top: clamp(60px, 10vh, 120px);
    padding-bottom: clamp(60px, 10vh, 100px);
    position: relative;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}
.kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 87, 34, 0.25);
}
.hero-title {
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}
.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) { animation-delay: 0.18s; }
.hero-title .line:nth-child(3) { animation-delay: 0.32s; }
.hero-title em {
    background: linear-gradient(180deg, #fff, #b8b8c8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 700;
}
.hero-title .orange-grad {
    background: linear-gradient(120deg, var(--orange) 10%, var(--orange-2) 50%, #ffd0a8 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s forwards, shimmer 6s ease-in-out infinite;
}
@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--fg-muted);
    max-width: 620px;
    margin-bottom: 36px;
    opacity: 0;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 64px;
    opacity: 0;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    cursor: pointer;
    will-change: transform;
}
.btn-primary {
    background: var(--orange);
    color: #1a0a04;
    box-shadow: 0 12px 36px -8px var(--orange-glow);
}
.btn-primary:hover {
    background: var(--orange-2);
    transform: translateY(-2px);
    box-shadow: 0 20px 50px -10px var(--orange-glow);
}
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    background: var(--bg-2);
    border-color: var(--orange);
    color: var(--orange);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { font-size: 0.78rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.stats dd { font-size: 1.1rem; font-weight: 600; color: var(--fg); font-family: var(--font-mono); }

.hero-glow {
    position: absolute;
    top: -10%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--orange-glow), transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: glow-float 14s ease-in-out infinite alternate;
}
@keyframes glow-float {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-8%, 6%) scale(1.1); opacity: 1; }
}

/* ===== Steps ===== */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}
.step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 0 24px 60px -20px rgba(255, 87, 34, 0.25);
}
.step:hover::before { opacity: 0.06; }
.step-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--orange);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}
.step h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--fg-muted); font-size: 0.95rem; }

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 87, 34, 0.35);
    background: var(--bg-3);
    box-shadow: 0 24px 50px -25px rgba(255, 87, 34, 0.3);
}
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.4s ease, background 0.4s ease;
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); background: rgba(255, 87, 34, 0.22); }
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--fg-muted); font-size: 0.95rem; }

/* ===== Manifesto ===== */
.manifesto blockquote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    border-left: none;
    padding: 0 var(--pad-x);
}
.manifesto p {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.manifesto em {
    background: linear-gradient(120deg, var(--orange), var(--orange-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}
.manifesto footer {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fg-muted);
    letter-spacing: 0.06em;
}

/* ===== Live Status ===== */
.status-box {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}
.status-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.02em; }
.status-box ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.status-box li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.status-box li span { font-size: 0.75rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.status-box li b { font-family: var(--font-mono); font-size: 1rem; color: var(--fg); font-weight: 500; }
.status-box li b.ok { color: #25c97c; }
.status-box li b.err { color: #ff4d4d; }

/* ===== Footer ===== */
.foot {
    border-top: 1px solid var(--line);
    padding: 56px var(--pad-x) 32px;
    margin-top: 80px;
}
.foot-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}
.foot-grid > div { flex: 1 1 240px; max-width: 360px; }
.foot p { color: var(--fg-muted); font-size: 0.88rem; margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a {
    color: var(--fg-muted);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}
.foot nav a:hover { color: var(--orange); }
.foot .copy {
    flex-basis: 100%;
    text-align: left;
    color: var(--fg-dim);
    font-size: 0.8rem;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Legal page ===== */
.legal-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(60px, 10vh, 100px) var(--pad-x);
}
.legal-wrap h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.legal-wrap .subtitle { color: var(--fg-muted); margin-bottom: 48px; }
.legal-wrap h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.legal-wrap p, .legal-wrap li { color: var(--fg-muted); margin-bottom: 12px; line-height: 1.7; }
.legal-wrap ul { list-style: none; padding: 0; }
.legal-wrap ul li { padding-left: 20px; position: relative; }
.legal-wrap ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.7em;
    width: 6px; height: 6px;
    background: var(--orange);
    border-radius: 50%;
}
.legal-wrap a.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    color: var(--orange);
    font-weight: 500;
    transition: gap 0.25s ease;
}
.legal-wrap a.back:hover { gap: 14px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-title .line, .hero-sub, .cta-row, .stats { opacity: 1; transform: none; }
    .reveal { opacity: 1; transform: none; }
    #bg-particles { display: none; }
    .mesh { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .nav { padding: 14px 18px; }
    .status-chip { font-size: 0.72rem; padding: 6px 10px; }
    section { padding: 70px 0; }
    .stats { gap: 18px; padding-top: 20px; }
    .foot { padding: 40px 18px 24px; }
    .foot-grid { gap: 28px; }
}
