/* ═════════════════════════════════════════════════════════════════
   THE KENNETH FREQUENCY — landing page styles
   ─────────────────────────────────────────────────────────────────
   Design language mirrors the in-game main menu:
     • Major Mono Display for brand / section headers
     • JetBrains Mono for body text
     • Dark bg (#04040a) with cyan + amber accents
     • Scanline overlay, subtle vignette, animated sigil
     • HUD corner brackets framing the page
     • Broadcast-strip header with RX dot
   ═══════════════════════════════════════════════════════════════ */

/* ───── TOKENS ───── */
:root {
    --bg:        #04040a;
    --bg-deep:   #020206;
    --bg-panel:  #0a0a14;
    --cyan:      #52cfff;
    --cyan-dim:  #2d6b88;
    --amber:     #ffad4a;
    --amber-dim: #8a5a1f;
    --red:       #ff5269;
    --text:      #c8d0dc;
    --text-hi:   #eef2f8;
    --text-dim:  #7a828f;
    --text-ghost: #4a505a;
    --border:    rgba(82, 207, 255, 0.18);
    --border-strong: rgba(82, 207, 255, 0.4);

    --font-display: "Major Mono Display", "JetBrains Mono", ui-monospace, monospace;
    --font-body:    "JetBrains Mono", ui-monospace, "Menlo", monospace;

    --max-w: 1200px;
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
}

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

/* ───── ATMOSPHERE LAYER ───── */
.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Scanlines — horizontal CRT overlay, very subtle */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(82, 207, 255, 0.025) 0px,
        rgba(82, 207, 255, 0.025) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: screen;
}

/* Vignette — darkens the edges */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Oscilloscope strip — JS animates a waveform */
#oscilloscope {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 40px;
    opacity: 0.18;
}

/* ───── HUD CORNER BRACKETS ───── */
.hud-brackets {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bracket {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--cyan);
    opacity: 0.35;
}
.bracket.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.bracket.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.bracket.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.bracket.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

/* ───── BROADCAST STRIP (top header) ───── */
.broadcast-strip {
    position: relative;
    z-index: 2;
    padding: 18px 48px 0;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--cyan);
    opacity: 0.72;
    text-align: center;
}

.rx-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4aff7a;
    border-radius: 50%;
    box-shadow: 0 0 8px #4aff7a;
    margin-right: 10px;
    vertical-align: middle;
    animation: rx-blink 1.6s ease-in-out infinite;
}
@keyframes rx-blink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* ───── HERO ───── */
.hero {
    position: relative;
    z-index: 2;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 32px 80px;
}

.hero-inner {
    width: 100%;
    max-width: 780px;
    text-align: center;
    position: relative;
}

/* Sigil — animated god-ray emitter behind the title */
.sigil {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sigil-halo {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, rgba(82, 207, 255, 0.18) 0%, transparent 60%);
    animation: halo-breathe 4.8s ease-in-out infinite;
}

.sigil-core {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan);
    animation: core-pulse 2.2s ease-in-out infinite;
}

.sigil-ring {
    position: absolute;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    opacity: 0;
    animation: ring-expand 4s ease-out infinite;
}
.sigil-ring.ring-1 { width: 40px; height: 40px; animation-delay: 0s; }
.sigil-ring.ring-2 { width: 40px; height: 40px; animation-delay: 1.3s; }
.sigil-ring.ring-3 { width: 40px; height: 40px; animation-delay: 2.6s; }

@keyframes halo-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes core-pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 16px var(--cyan), 0 0 32px var(--cyan); }
    50%      { transform: scale(1.25); box-shadow: 0 0 24px var(--cyan), 0 0 48px var(--cyan); }
}
@keyframes ring-expand {
    0%   { transform: scale(0.3); opacity: 0.8; }
    80%  { opacity: 0.05; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* ───── BRAND LOCKUP ───── */
.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    margin-bottom: 20px;
}

.brand-the {
    font-size: 14px;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 400;
}

/* KENNETH — the hero line, amber, breathing */
.brand-kenneth {
    font-size: clamp(48px, 9vw, 104px);
    color: var(--amber);
    text-shadow:
        0 0 16px rgba(255, 173, 74, 0.35),
        0 0 36px rgba(255, 173, 74, 0.2);
    letter-spacing: 0.02em;
    animation: brand-breathe 5s ease-in-out infinite;
    line-height: 1;
}

/* FREQUENCY — the noun, cyan, smaller */
.brand-frequency {
    font-size: clamp(32px, 6vw, 72px);
    color: var(--cyan);
    text-shadow:
        0 0 12px rgba(82, 207, 255, 0.35),
        0 0 28px rgba(82, 207, 255, 0.2);
    letter-spacing: 0.02em;
    animation: brand-breathe 5s ease-in-out infinite 0.6s;
    line-height: 1;
}

@keyframes brand-breathe {
    0%, 100% { opacity: 0.94; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.012); }
}

/* Separator: hairline + amber pip between the two title lines */
.brand-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    max-width: 70vw;
    margin: 8px 0;
}
.sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cyan-dim), transparent);
    opacity: 0.55;
}
.sep-pip {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    margin: 0 12px;
    animation: pip-pulse 2.8s ease-in-out infinite;
}
@keyframes pip-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.3); }
}

/* ───── TAGLINE ───── */
.tagline {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--cyan);
    opacity: 0.75;
    margin-top: 8px;
    font-family: var(--font-body);
}

.rem-nod {
    font-size: 11px;
    color: var(--text-ghost);
    font-style: italic;
    margin-top: 6px;
    font-family: var(--font-body);
}

/* ───── STATUS CARD ───── */
.status-card {
    display: inline-block;
    margin-top: 36px;
    padding: 18px 40px;
    border: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.55);
    position: relative;
}
.status-card::before,
.status-card::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--amber);
    opacity: 0.7;
}
.status-card::before { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.status-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.status-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--amber);
    opacity: 0.8;
    margin-bottom: 8px;
}
.status-value {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(255, 173, 74, 0.3);
    line-height: 1;
    margin-bottom: 8px;
}
.status-sub {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

/* ───── CTA BUTTONS ───── */
.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-decoration: none;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    background: rgba(82, 207, 255, 0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    position: relative;
    cursor: pointer;
}
.cta:hover {
    background: rgba(82, 207, 255, 0.12);
    box-shadow: 0 0 20px rgba(82, 207, 255, 0.25), inset 0 0 20px rgba(82, 207, 255, 0.1);
    transform: translateX(2px);
}
.cta.primary {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(255, 173, 74, 0.06);
}
.cta.primary:hover {
    background: rgba(255, 173, 74, 0.14);
    box-shadow: 0 0 24px rgba(255, 173, 74, 0.3), inset 0 0 20px rgba(255, 173, 74, 0.1);
}
.cta-chevron {
    font-family: var(--font-body);
    font-weight: bold;
    opacity: 0.7;
}
.cta-big {
    padding: 20px 48px;
    font-size: 14px;
}

/* ───── SECTION LABELS ───── */
.setup-label, .features-label, .screenshots-label, .wishlist-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--cyan);
    opacity: 0.7;
    margin-bottom: 14px;
    font-family: var(--font-body);
}

/* ───── SETUP SECTION ───── */
.setup {
    position: relative;
    z-index: 2;
    padding: 100px 0 80px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, rgba(8, 12, 20, 0.5), transparent);
}

.setup-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-hi);
    letter-spacing: 0.03em;
    margin-bottom: 36px;
    text-shadow: 0 0 20px rgba(82, 207, 255, 0.2);
}

.setup-body {
    max-width: 720px;
    font-size: 15px;
    color: var(--text);
}
.setup-body p {
    margin-bottom: 20px;
}
.setup-body strong {
    color: var(--text-hi);
    font-weight: 700;
}
.setup-body em {
    color: var(--cyan);
    font-style: normal;
    letter-spacing: 0.02em;
}
.setup-cadence {
    color: var(--amber);
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.9;
    margin-top: 28px !important;
    padding-left: 16px;
    border-left: 2px solid var(--amber-dim);
}

/* ───── FEATURES ───── */
.features {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.features-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-hi);
    letter-spacing: 0.03em;
    margin-bottom: 48px;
    text-shadow: 0 0 20px rgba(82, 207, 255, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature {
    padding: 28px 28px 32px;
    border: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.6);
    position: relative;
    transition: border-color 0.3s, transform 0.2s;
}
.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--cyan), transparent);
    opacity: 0.7;
}
.feature::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(to left, var(--amber), transparent);
    opacity: 0.5;
}
.feature:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.feature-num {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--cyan);
    opacity: 0.45;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
}
.feature h3 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--amber);
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    line-height: 1.3;
}
.feature p {
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.7;
}
.feature p strong {
    color: var(--text-hi);
    font-weight: 700;
}
.feature p em {
    color: var(--cyan);
    font-style: normal;
}

/* ───── SCREENSHOTS ───── */
.screenshots {
    position: relative;
    z-index: 2;
    padding: 80px 0 100px;
    border-top: 1px solid var(--border);
}

.screenshots-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-hi);
    letter-spacing: 0.03em;
    margin-bottom: 48px;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.shot {
    position: relative;
    display: block;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.4);
}
.shot:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(1.05);
}
.shot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--cyan);
    background: linear-gradient(to top, rgba(4, 4, 10, 0.92), transparent);
    opacity: 0.9;
}

.shot-wide {
    grid-column: span 2;
}

/* ───── WISHLIST CTA ───── */
.wishlist {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at center, rgba(255, 173, 74, 0.05), transparent 70%);
}

.wishlist-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    border: 1px solid var(--border-strong);
    background: rgba(10, 14, 22, 0.7);
    position: relative;
}
.wishlist-card::before,
.wishlist-card::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--amber);
}
.wishlist-card::before { top: -1px;    left: -1px;   border-right: none; border-bottom: none; }
.wishlist-card::after  { bottom: -1px; right: -1px;  border-left: none;  border-top: none;    }

.wishlist-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 36px);
    color: var(--amber);
    letter-spacing: 0.04em;
    margin: 16px 0 18px;
    text-shadow: 0 0 16px rgba(255, 173, 74, 0.3);
}
.wishlist-sub {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 30px;
}
.wishlist-cta-row {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}
.wishlist-note {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin: 28px 0 16px;
}
.wishlist-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: 0.12em;
}
.wishlist-links a {
    color: var(--cyan);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s, text-shadow 0.2s;
}
.wishlist-links a:hover {
    opacity: 1;
    text-shadow: 0 0 8px var(--cyan);
}
.link-sep {
    color: var(--text-ghost);
}

/* ───── FOOTER ───── */
.footer {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.footer-heading {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--cyan);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    opacity: 0.85;
}
.footer-small {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.7;
}
.footer-small em {
    color: var(--text);
    font-style: italic;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 780px) {
    body { font-size: 14px; }
    .container { padding: 0 24px; }
    .broadcast-strip { padding: 14px 24px 0; font-size: 10px; }
    .bracket { width: 22px; height: 22px; }
    .bracket.tl, .bracket.tr { top: 10px; }
    .bracket.bl, .bracket.br { bottom: 10px; }
    .bracket.tl, .bracket.bl { left: 10px; }
    .bracket.tr, .bracket.br { right: 10px; }

    .hero { min-height: 85vh; padding: 40px 24px 60px; }
    .sigil { width: 120px; height: 120px; }
    .setup, .features, .screenshots, .wishlist { padding: 60px 0; }

    .shot-grid {
        grid-template-columns: 1fr;
    }
    .shot-wide { grid-column: span 1; }

    .wishlist-card { padding: 36px 24px; }
    .status-card { padding: 16px 28px; }
    .cta { padding: 12px 24px; font-size: 11px; }
    .cta-big { padding: 16px 32px; }
    .feature { padding: 22px 22px 26px; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard users */
a:focus-visible, .cta:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}
