/* =========================================================
   StarCitizen-Referral.com — Space Opera theme
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body, h1, h2, h3, h4, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

code {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
    --bg-0: #04060f;
    --bg-1: #0a0e27;
    --bg-2: #0f1538;
    --surface: rgba(15, 21, 56, 0.55);
    --surface-2: rgba(20, 28, 70, 0.7);
    --border: rgba(0, 212, 255, 0.18);
    --border-strong: rgba(0, 212, 255, 0.45);

    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.45);
    --purple: #7b2ff7;
    --purple-glow: rgba(123, 47, 247, 0.45);
    --pink: #ff6b9d;
    --gold: #ffd166;

    --text: #e6ecff;
    --text-dim: #9aa6c8;
    --text-faint: #6b7799;
    --white: #ffffff;

    --grad-primary: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    --grad-hot: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    --grad-text: linear-gradient(135deg, #ffffff 0%, #00d4ff 60%, #7b2ff7 100%);

    --radius: 14px;
    --radius-lg: 22px;

    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.25);
    --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.5);

    --container: 1180px;
    --gutter: 1.25rem;

    --font-display: 'Orbitron', 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- BASE ---------- */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-0);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(123, 47, 247, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 212, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 107, 157, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
    z-index: -3;
    pointer-events: none;
}

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

.nebula {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(0, 212, 255, 0.12), transparent 35%),
        radial-gradient(circle at 30% 80%, rgba(123, 47, 247, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: nebulaDrift 30s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 2%) scale(1.05); }
}

.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 3px,
        rgba(0, 212, 255, 0.025) 3px,
        rgba(0, 212, 255, 0.025) 4px
    );
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--cyan);
    color: var(--bg-0);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 6, 15, 0.7);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.logo-text em {
    font-style: normal;
    color: var(--cyan);
}

.main-nav {
    display: flex;
    gap: 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.main-nav a {
    color: var(--text-dim);
    transition: color 0.2s, text-shadow 0.2s;
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.25s;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 6px 28px rgba(0, 212, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0, 212, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
}

.btn-primary:hover::before,
.btn-primary:focus::before {
    transform: translateX(100%);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(0, 212, 255, 0.05);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--cyan);
    color: var(--cyan);
    text-shadow: 0 0 14px var(--cyan-glow);
}

.btn-large {
    padding: 1.05rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(800px) rotateX(60deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 60%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 880px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan-glow);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.6; }
}

#hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
    display: inline-block;
}

.subhead {
    display: block;
    color: var(--text);
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 0.4em;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* CODE CARD */
.code-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(123, 47, 247, 0.08) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.code-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--grad-primary);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.5;
    pointer-events: none;
}

.code-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(4, 6, 15, 0.6);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

#referral-code {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--cyan);
    letter-spacing: 0.1em;
    font-weight: 700;
    text-shadow: 0 0 16px var(--cyan-glow);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--border-strong);
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy:hover,
.btn-copy:focus {
    background: var(--cyan);
    color: var(--bg-0);
    box-shadow: 0 0 18px var(--cyan-glow);
}

.btn-copy svg {
    flex-shrink: 0;
}

.code-status {
    font-size: 0.85rem;
    color: var(--pink);
    margin-top: 0.6rem;
    min-height: 1.2rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.2s;
}

.code-status.show {
    opacity: 1;
}

.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.trust-row .check {
    color: var(--cyan);
    font-weight: 700;
    margin-right: 0.3rem;
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* HERO SHIP */
.hero-ship {
    position: absolute;
    right: -10%;
    top: 15%;
    width: 55%;
    max-width: 700px;
    opacity: 0.12;
    z-index: 1;
    animation: shipDrift 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shipDrift {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-30px) rotate(2deg); }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(4, 6, 15, 0.6) 50%, transparent 100%);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.06);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.lede {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-dim);
}

.inline-code {
    display: inline-block;
    padding: 0.1em 0.5em;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--cyan);
    font-size: 0.85em;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ---------- BONUS GRID / CARDS ---------- */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-top: 1px solid var(--cyan);
    border-left: 1px solid var(--cyan);
    border-top-left-radius: var(--radius-lg);
    opacity: 0.6;
    pointer-events: none;
}

.card-glow:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.18);
}

.card-icon {
    margin-bottom: 1.2rem;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ---------- STEPS ---------- */
.steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    counter-reset: step;
    margin-top: 2rem;
}

.step {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.step p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step .btn {
    margin-top: 0.5rem;
}

.callout {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.12), rgba(0, 212, 255, 0.08));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.98rem;
}

.callout strong {
    color: var(--cyan);
}

/* ---------- FEATURES ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(15, 21, 56, 0.4);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(15, 21, 56, 0.65);
    border-color: var(--border-strong);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.05rem;
}

.feature p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ---------- TIPS ---------- */
.tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip {
    padding: 1.5rem;
    border-left: 3px solid var(--cyan);
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), transparent);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: all 0.3s;
}

.tip:hover {
    border-left-color: var(--purple);
    background: linear-gradient(90deg, rgba(123, 47, 247, 0.1), transparent);
}

.tip h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--cyan);
}

.tip-num {
    color: var(--cyan);
    margin-right: 0.4rem;
}

.tip p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

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

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
    backdrop-filter: blur(8px);
}

.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.faq-item summary {
    padding: 1.1rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--cyan);
    font-weight: 400;
    line-height: 1;
    margin-left: 0.5rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

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

.faq-item summary:hover {
    color: var(--cyan);
}

.faq-item p {
    padding: 0 1.25rem 1.2rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-item p a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- FINAL CTA ---------- */
.cta-section {
    padding-bottom: 8rem;
}

.cta-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 47, 247, 0.1) 100%),
        rgba(4, 6, 15, 0.6);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep), 0 0 80px rgba(0, 212, 255, 0.15);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.15), transparent 30%);
    animation: rotateGlow 12s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    to { transform: rotate(360deg); }
}

.cta-box > * {
    position: relative;
    z-index: 2;
}

.cta-box p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
}

.cta-box-code {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.25rem;
    background: rgba(4, 6, 15, 0.6);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.cta-box-code span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.cta-box-code code {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-shadow: 0 0 14px var(--cyan-glow);
}

.legal-note {
    display: block;
    margin-top: 1.8rem;
    font-size: 0.78rem;
    color: var(--text-faint);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(4, 6, 15, 0.7);
    backdrop-filter: blur(10px);
    padding: 3.5rem 0 1.5rem;
    z-index: 2;
    position: relative;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    margin-bottom: 0.75rem;
}

.footer-tag {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus {
    color: var(--cyan);
}

.footer-code {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.footer-mini {
    color: var(--text-faint);
    font-size: 0.82rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .main-nav {
        display: none;
    }

    .hero {
        padding: 4rem 0 4.5rem;
        min-height: auto;
    }

    .hero-ship {
        opacity: 0.08;
        width: 80%;
        right: -25%;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-head {
        margin-bottom: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .cta-box {
        padding: 2.5rem 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 540px) {
    :root {
        --gutter: 1rem;
    }

    .header-inner {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    #hero-title {
        font-size: 2.2rem;
    }

    .code-row {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }

    #referral-code {
        font-size: 1.05rem;
        text-align: center;
    }

    .btn-copy {
        justify-content: center;
    }

    .btn-large {
        padding: 0.9rem 1.4rem;
        font-size: 0.9rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row .btn {
        width: 100%;
    }

    .trust-row {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .card,
    .step,
    .cta-box {
        padding: 1.5rem;
    }

    .step-num {
        font-size: 1.8rem;
    }

    .faq-item summary {
        font-size: 0.92rem;
        padding: 0.95rem 1rem;
    }

    .scanlines {
        display: none; /* slight perf save on mobile */
    }
}

/* ---------- 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;
    }
}

/* ---------- FOCUS VISIBLE ---------- */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
    outline-offset: 4px;
}
