/* =========================================================
   DevCon-NITER — Design System
   Wise-inspired sage canvas + lime-green accent (DESIGN.md)
   ========================================================= */

/* ===========================
   Design Tokens
   =========================== */
:root {
    /* Surface */
    --color-canvas:          #ffffff;
    --color-canvas-soft:     #e8ebe6;
    --color-canvas-alt:      #f5f6f2;
    --color-canvas-elevated: #ffffff;
    --color-surface:         #ffffff;
    --color-border:          #d6d3cd;
    --color-border-light:    #e8ebe6;

    /* Brand Accent */
    --color-accent:          #9fe870;
    --color-accent-active:   #cdffad;
    --color-accent-neutral:  #c5edab;
    --color-accent-pale:     #e2f6d5;
    --color-accent-bg:       rgba(159, 232, 112, 0.1);

    /* Text */
    --color-ink:             #0e0f0c;
    --color-ink-deep:        #163300;
    --color-body:            #454745;
    --color-mute:            #868685;

    --color-text-primary:    #0e0f0c;
    --color-text-secondary:  #454745;
    --color-text-muted:      #868685;
    --color-text-on-accent:  #0e0f0c;

    /* Semantic */
    --color-success:         #2ead4b;
    --color-success-deep:    #054d28;
    --color-success-bg:      rgba(46, 173, 75, 0.1);
    --color-warning:         #ffd11a;
    --color-warning-deep:    #b86700;
    --color-warning-content: #4a3b1c;
    --color-warning-bg:      rgba(255, 209, 26, 0.1);
    --color-error:           #d03238;
    --color-error-deep:      #a72027;
    --color-error-bg:        rgba(208, 50, 56, 0.1);
    --color-info:            #2871b7;
    --color-info-bg:         rgba(40, 113, 183, 0.1);

    /* Semantic — DESIGN.md exact colors */
    --color-negative:        #d03238;
    --color-negative-deep:   #a72027;
    --color-negative-darkest: #a7000d;
    --color-negative-bg:     #320707;

    /* Tertiary accents */
    --color-accent-orange:   #ffc091;
    --color-accent-cyan:     #38c8ff;

    /* Legacy aliases (used in templates) */
    --color-muted:           var(--color-mute);
    --color-primary:         var(--color-accent);
    --color-primary-light:   var(--color-accent-active);
    --color-surface-soft:    var(--color-canvas-soft);

    --gradient-primary:      var(--color-accent);
    --gradient-primary-hover: var(--color-accent-active);

    /* Typography */
    --font-heading:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:             'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --fw-regular:            400;
    --fw-medium:             500;
    --fw-semibold:           600;
    --fw-bold:               700;
    --fw-black:              900;

    /* Type Scale */
    --text-display:          clamp(2.5rem, 5vw, 4rem);
    --text-hero:             clamp(2rem, 4vw, 3rem);
    --text-h1:               2rem;
    --text-h2:               1.5rem;
    --text-h3:               1.25rem;
    --text-h4:               1.0625rem;
    --text-body:             1rem;
    --text-body-lg:          1.25rem;
    --text-body-large:       1.0625rem;
    --text-small:            0.875rem;
    --text-caption:          0.75rem;
    --text-tiny:             0.75rem;
    --text-stat:             clamp(1.75rem, 3.5vw, 2.5rem);

    --lh-tight:              1.1;
    --lh-normal:             1.5;
    --lh-relaxed:            1.7;

    /* Spacing (4px base) */
    --space-xxs:             2px;
    --space-xs:              4px;
    --space-sm:              8px;
    --space-md:              12px;
    --space-lg:              16px;
    --space-xl:              24px;
    --space-2xl:             32px;
    --space-3xl:             48px;
    --space-4xl:             64px;
    --space-5xl:             96px;

    /* Border Radius */
    --radius-none:            0px;
    --radius-sm:             8px;
    --radius-md:             12px;
    --radius-lg:             16px;
    --radius-xl:             24px;
    --radius-pill:           9999px;
    --radius-full:           9999px;

    --shadow-none:           none;

    --transition-fast:       150ms ease;
    --transition-normal:     250ms ease;
    --transition-slow:       400ms ease;

    --bp-mobile:             640px;
    --bp-tablet:             768px;
    --bp-desktop:            1024px;
    --bp-wide:               1280px;

    --max-width:             1200px;
}

/* ===========================
   Dark Theme
   =========================== */
[data-theme="dark"] {
    --color-canvas:          #0e0f0c;
    --color-canvas-soft:     #1a1a1a;
    --color-canvas-alt:      #222222;
    --color-canvas-elevated: #2a2a2a;
    --color-surface:         #1a1a1a;
    --color-border:          #333333;
    --color-border-light:    #444444;

    --color-accent:          #9fe870;
    --color-accent-active:   #7dcc54;
    --color-accent-neutral:  #4a7a35;
    --color-accent-pale:     #1a3a15;
    --color-accent-bg:       rgba(159, 232, 112, 0.1);

    --color-ink:             #ffffff;
    --color-ink-deep:        #e2f6d5;
    --color-body:            #aaaaaa;
    --color-mute:            #666666;

    --color-text-primary:    #ffffff;
    --color-text-secondary:  #aaaaaa;
    --color-text-muted:      #666666;
    --color-text-on-accent:  #0e0f0c;

    --color-success:         #4ade80;
    --color-success-deep:    #86efac;
    --color-success-bg:      rgba(74, 222, 128, 0.15);
    --color-warning:         #facc15;
    --color-warning-deep:    #fde047;
    --color-warning-content: #fef9c3;
    --color-warning-bg:      rgba(250, 204, 21, 0.15);
    --color-error:           #ef4444;
    --color-error-deep:      #fca5a5;
    --color-error-bg:        rgba(239, 68, 68, 0.15);
    --color-info:            #60a5fa;
    --color-info-bg:         rgba(96, 165, 250, 0.15);

    .theme-toggle__slider {
        background: var(--color-canvas);
        border-color: var(--color-border);
    }
}

/* ===========================
   Theme Toggle Switch
   =========================== */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.theme-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--color-canvas);
    border-radius: 50%;
    transition: transform var(--transition-fast);
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.theme-toggle input:checked + .theme-toggle__slider::before {
    transform: translateX(24px);
}

.theme-toggle__icon {
    font-size: 0.7rem;
    line-height: 1;
    position: relative;
    z-index: 0;
}

.theme-toggle__icon--light {
    margin-right: auto;
}

.theme-toggle__icon--dark {
    margin-left: auto;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--text-body);
    line-height: var(--lh-normal);
    color: var(--color-ink);
    background-color: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-ink);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--color-accent);
    color: var(--color-ink);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    color: var(--color-ink);
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-hero); }
h3 { font-size: var(--text-h1); }
h4 { font-size: var(--text-h2); }
h5 { font-size: var(--text-h3); }
h6 { font-size: var(--text-body); }

p {
    color: var(--color-body);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

code, pre {
    font-family: var(--font-mono);
}

/* ===========================
   Layout
   =========================== */
.main {
    min-height: calc(100vh - 200px);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

.section {
    padding: var(--space-5xl) 0;
    background: var(--color-canvas);
    position: relative;
}

.section--sage {
    background: var(--color-canvas-soft);
}

.section--sage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.25;
    pointer-events: none;
}

.section--gradient {
    background: linear-gradient(
        180deg,
        var(--color-canvas) 0%,
        var(--color-canvas-soft) 100%
    );
}

.section--cta {
    overflow: hidden;
    position: relative;
    /* Gradient top border divider — lime, fading at edges */
    background:
        linear-gradient(90deg, transparent, rgba(159, 232, 112, 0.15) 20%, rgba(159, 232, 112, 0.25) 50%, rgba(159, 232, 112, 0.15) 80%, transparent) 0 0 / 100% 1px no-repeat,
        var(--color-canvas-soft);
}

[data-theme="dark"] .section--cta {
    background:
        linear-gradient(90deg, transparent, rgba(159, 232, 112, 0.10) 20%, rgba(159, 232, 112, 0.18) 50%, rgba(159, 232, 112, 0.10) 80%, transparent) 0 0 / 100% 1px no-repeat,
        var(--color-canvas-soft);
}

/* Dot-pattern texture (matching section--sage) */
.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .section--cta::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    opacity: 0.12;
}

/* Lime radial glow centered behind content */
.section--cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 80vw);
    height: min(500px, 60vh);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(159, 232, 112, 0.25) 25%,
        rgba(159, 232, 112, 0.08) 55%,
        transparent 75%
    );
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .section--cta::after {
    background: radial-gradient(
        ellipse at center,
        rgba(159, 232, 112, 0.15) 25%,
        rgba(159, 232, 112, 0.05) 55%,
        transparent 75%
    );
    mix-blend-mode: normal;
}

/* ===========================
   CTA Section — Component Styles
   =========================== */

/* Ghost decorative trophy icon */
.cta__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.05;
    width: min(320px, 40vw);
    height: min(320px, 40vw);
    color: var(--color-accent);
}

.cta__ghost svg {
    width: 100%;
    height: 100%;
}

[data-theme="dark"] .cta__ghost {
    opacity: 0.04;
}

@media (max-width: 640px) {
    .cta__ghost {
        width: min(180px, 50vw);
        height: min(180px, 50vw);
    }
}

/* Intro block — tighter vertical rhythm */
.cta__intro .eyebrow {
    margin-bottom: var(--space-sm);
}

.cta__intro .section__title {
    margin-bottom: var(--space-sm);
}

.cta__intro .section__subtitle {
    margin-bottom: var(--space-md);
}

/* CTA heading — larger/bolder */
.cta__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
    letter-spacing: -0.02em;
}

/* CTA subtitle */
.cta__subtitle {
    color: var(--color-body) !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Info meta row */
.cta__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: var(--space-xl);
    font-size: var(--text-small);
    color: var(--color-mute);
    font-weight: var(--fw-medium);
}

.cta__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.cta__meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.cta__meta-sep {
    color: var(--color-border);
    opacity: 0.5;
    user-select: none;
}

/* Button actions container */
.cta__actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* CTA primary button — Register */
.cta__btn--primary.btn--primary {
    box-shadow: 0 4px 14px rgba(159, 232, 112, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta__btn--primary.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.cta__btn--primary.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--color-accent-active);
    box-shadow: 0 8px 28px rgba(159, 232, 112, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta__btn--primary.btn--primary:active {
    transform: translateY(0) scale(1);
}

/* CTA secondary button — View Workshops */
.cta__btn--secondary.btn--secondary {
    border: 1.5px solid var(--color-border);
    background: transparent;
    color: var(--color-body);
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .cta__btn--secondary.btn--secondary {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.cta__btn--secondary.btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(159, 232, 112, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(159, 232, 112, 0.12);
}

[data-theme="dark"] .cta__btn--secondary.btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(159, 232, 112, 0.08);
}

.cta__btn--secondary.btn--secondary:active {
    transform: translateY(0);
}

/* Ensure both buttons have matching visual weight */
.cta__btn.btn--lg {
    font-weight: var(--fw-semibold);
    font-size: var(--text-body);
    padding: 14px 32px;
    min-width: 180px;
}

@media (max-width: 640px) {
    .cta__actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .cta__btn.btn--lg {
        width: 100%;
        min-width: 0;
        padding: 14px 24px;
    }
    .cta__meta {
        font-size: var(--text-caption);
        gap: 4px;
    }
    .cta__meta-sep {
        margin: 0 2px;
    }
    .cta__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    }
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section:last-child::after {
    display: none;
}

.section--no-divider::after {
    display: none;
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: var(--fw-black);
    margin-bottom: var(--space-md);
    color: var(--color-ink);
}

.section__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-body);
    margin-bottom: var(--space-2xl);
    max-width: 640px;
}

/* Eyebrow pill */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
    border: none;
}

.section-intro {
    text-align: center;
    max-width: 660px;
    margin: 0 auto var(--space-2xl);
}

.section-intro .section__title {
    margin-bottom: var(--space-sm);
}

.section-intro .section__subtitle {
    margin: 0 auto;
}

/* ===========================
   Navigation — Floating Pill
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 24px;
    right: 24px;
    z-index: 100;
    width: auto;
    max-width: calc(var(--max-width) + 48px);
    margin: 16px auto 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .nav {
        height: 64px;
        padding: 0 24px;
    }
}

[data-theme="dark"] .nav {
    background: rgba(14, 15, 12, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav--scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .nav--scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    font-weight: var(--fw-black);
    color: var(--color-ink);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .nav__logo {
        font-size: var(--text-h3);
    }
}

.nav__logo::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.nav__logo:hover {
    color: var(--color-ink);
}

.nav__logo-accent {
    color: var(--color-accent);
}

.nav__center {
    display: none;
    align-items: center;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .nav__center {
        display: flex;
    }
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav__link:hover {
    color: var(--color-ink);
}

.nav__link:hover::after {
    width: 60%;
}

.nav__link--highlight {
    color: var(--color-accent);
    font-weight: var(--fw-bold);
}

.nav__link--highlight::after {
    width: 60%;
}

.nav__link--logout {
    color: var(--color-error);
}

.nav__link--logout::after {
    background: var(--color-error);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.nav__right .btn--primary.btn--sm {
    padding: 7px 20px;
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 9999px;
    background: var(--color-accent);
    color: var(--color-ink);
    border: none;
}

.nav__right .btn--primary.btn--sm:hover {
    background: var(--color-accent-active);
}

.nav__right .nav__link {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hamburger */
.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
@media (max-width: 767px) {
    .nav__center {
        display: none;
        position: fixed;
        top: 84px;
        left: 24px;
        right: 24px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--color-border);
        border-radius: 24px;
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-xs);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    }

    [data-theme="dark"] .nav__center {
        background: rgba(14, 15, 12, 0.95);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    }

    .nav__center.active {
        display: flex;
        animation: navSlideIn 0.25s ease;
    }

    @keyframes navSlideIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__link {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-small);
        border-radius: 12px;
        transition: all var(--transition-fast);
    }

    .nav__link:hover {
        background: var(--color-canvas-soft);
    }

    .nav__link::after {
        display: none;
    }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--text-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-ink);
    border: none;
}

.btn--primary:hover {
    background: var(--color-accent-active);
    color: var(--color-ink);
}

.btn--secondary {
    background: var(--color-canvas-soft);
    color: var(--color-ink);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-ink);
    background: var(--color-canvas);
}

.btn--tertiary {
    background: var(--color-canvas);
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
}

.btn--tertiary:hover {
    background: var(--color-canvas-soft);
}

.btn--text {
    background: none;
    border: none;
    color: var(--color-accent);
    padding: 8px 16px;
    font-weight: var(--fw-medium);
}

.btn--text:hover {
    color: var(--color-ink);
    transform: none;
}

.btn--sm {
    padding: 8px 20px;
    font-size: var(--text-tiny);
}

.btn--lg {
    padding: 14px 32px;
    font-size: var(--text-body);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Play button */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--fw-medium);
    font-size: var(--text-small);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.btn-play:hover {
    color: #ffffff;
}

.btn-play__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.btn-play:hover .btn-play__icon {
    background: var(--color-accent);
    color: var(--color-ink);
    border-color: var(--color-accent);
}

/* ===========================
   Hero — Elevated Design
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px var(--space-xl) 80px;
    overflow: hidden;
    background: var(--color-canvas-soft);
    border-bottom: 1px solid var(--color-border);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    animation: heroFade 32s ease-in-out infinite;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero__bg--1 { animation-delay: 0s; }
.hero__bg--2 { animation-delay: 8s; }
.hero__bg--3 { animation-delay: 16s; }
.hero__bg--4 { animation-delay: 24s; }

@keyframes heroFade {
    0%, 5%   { opacity: 0; transform: scale(1.08); }
    10%      { opacity: 1; transform: scale(1.05); }
    25%      { opacity: 1; transform: scale(1.02); }
    31%, 100% { opacity: 0; transform: scale(1.08); }
}

/* Gradient scrim: darker left → lighter right, darker top/bottom → lighter middle */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        /* Horizontal scrim: near-opaque left → transparent right */
        linear-gradient(
            95deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.25) 65%,
            rgba(0, 0, 0, 0.35) 100%
        ),
        /* Vertical scrim: darker at top (nav area) and bottom, lighter middle */
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.0) 25%,
            rgba(0, 0, 0, 0.0) 65%,
            rgba(0, 0, 0, 0.35) 100%
        );
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .hero__overlay {
    background:
        linear-gradient(
            95deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.65) 40%,
            rgba(0, 0, 0, 0.30) 65%,
            rgba(0, 0, 0, 0.40) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.0) 25%,
            rgba(0, 0, 0, 0.0) 65%,
            rgba(0, 0, 0, 0.40) 100%
        );
}

/* Subtle vignette overlay */
.hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        transparent 40%,
        rgba(0, 0, 0, 0.15) 70%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

[data-theme="dark"] .hero__vignette {
    background: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        transparent 40%,
        rgba(0, 0, 0, 0.20) 70%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* Intentionally positioned ghost watermark — fully visible */
.hero__watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(80px, 14vw, 200px);
    font-weight: var(--fw-black);
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    bottom: 5%;
    z-index: 2;
    letter-spacing: -0.03em;
    text-align: right;
    white-space: nowrap;
    /* Anchored to the right so the end of the word is always visible */
    right: 3%;
    left: auto;
}

[data-theme="dark"] .hero__watermark {
    color: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .hero__watermark {
        display: none;
    }
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
    padding-top: var(--space-3xl);
}

@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero__content {
    max-width: 560px;
}

/* Accent line above badge */
.hero__badge-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.hero__accent-line {
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-ink);
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--text-body-lg);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    font-weight: var(--fw-regular);
}

.hero__actions .btn-play {
    color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Register button — hero-specific hover */
.hero__btn-register.btn--primary {
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(159, 232, 112, 0.25);
}

.hero__btn-register.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
    background: var(--color-accent-active);
    box-shadow: 0 8px 28px rgba(159, 232, 112, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero__btn-register.btn--primary:active {
    transform: translateY(0) scale(1);
}

/* Play button — hero-specific refinement */
.hero__btn-play {
    gap: 6px !important;
}

.hero__btn-play .btn-play__text {
    transition: color var(--transition-fast);
}

.hero__btn-play:hover .btn-play__text {
    color: #ffffff;
}

.hero__btn-play .btn-play__icon {
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hero__btn-play:hover .btn-play__icon {
    background: var(--color-accent);
    color: var(--color-ink);
    border-color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(159, 232, 112, 0.3);
}

/* Hero info card — glassmorphism redesign */
.hero__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

@media (max-width: 899px) {
    .hero__media {
        min-height: auto;
        margin-top: 0;
        width: 100%;
    }
    .hero__inner {
        display: flex;
        flex-direction: column;
        gap: var(--space-2xl);
    }
    .hero__content {
        max-width: 100%;
    }
}

@media (min-width: 900px) {
    .hero__media {
        min-height: 400px;
    }
}


.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    border: 1px solid rgba(159, 232, 112, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(159, 232, 112, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(159, 232, 112, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

[data-theme="dark"] .hero-card {
    background: rgba(14, 15, 12, 0.45);
    border-color: rgba(159, 232, 112, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(159, 232, 112, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(159, 232, 112, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card__header {
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card__divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(159, 232, 112, 0.2), rgba(255, 255, 255, 0.08), rgba(159, 232, 112, 0.2));
}

.hero-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.hero-card__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hero-card__label {
    font-size: var(--text-caption);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-card__icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.hero-card__value {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: var(--text-body-lg);
    color: #ffffff;
}

/* Scroll-down indicator */
.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
    pointer-events: none;
    animation: heroScrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll-text {
    font-size: 0.6rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.hero__scroll-chevron {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    animation: heroChevronPulse 2.5s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes heroChevronPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* ===========================
   Countdown Stat Card
   =========================== */
.stat-card {
    position: relative;
    background: var(--color-canvas);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    margin-top: -40px;
    margin-bottom: var(--space-2xl);
    z-index: 5;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stat-card {
        padding: var(--space-2xl) var(--space-4xl);
        margin-top: -60px;
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.4;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 640px) {
    .stat-card__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-stat);
    font-weight: var(--fw-black);
    color: var(--color-ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-card__label {
    font-size: var(--text-caption);
    color: var(--color-mute);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-semibold);
}

/* FAB scroll-to-top */
.fab-scroll {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

.fab-scroll.visible {
    opacity: 1;
    pointer-events: auto;
}

.fab-scroll:hover {
    transform: translateY(-2px);
    background: var(--color-accent-dim);
}

/* ===========================
   Cards & Grids
   =========================== */

/* Workshop cards */
.workshop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .workshop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.workshop-card {
    background: var(--color-canvas);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.workshop-card:hover {
    transform: translateY(-2px);
}

.workshop-card--past {
    opacity: 0.6;
}

.workshop-card__thumb {
    position: relative;
    height: 180px;
    background: var(--color-canvas-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.workshop-card__thumb-gradient { display: none; }

.workshop-card__thumb-icon {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    opacity: 0.4;
}

.workshop-card__play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-canvas);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.workshop-card__play:hover {
    background: var(--color-accent);
    color: var(--color-ink);
}

.workshop-card__body {
    padding: var(--space-lg);
}

.workshop-card__date {
    font-size: var(--text-caption);
    color: var(--color-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.workshop-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
    margin-bottom: var(--space-sm);
}

.workshop-card__description {
    font-size: var(--text-small);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
}

.workshop-card__actions {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
}

/* Team cards */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: var(--color-canvas);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: all var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.team-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
}

.team-card__members {
    font-size: var(--text-small);
    color: var(--color-body);
}

/* Section intro — tight version for about section */
.section-intro--tight {
    margin-bottom: var(--space-lg);
}

.section-intro--tight .eyebrow {
    margin-bottom: var(--space-sm);
}

.section-intro--tight .section__title {
    margin-bottom: 6px;
}

/* Narrower subtitle for readability */
.section__subtitle--narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ghost number behind heading */
.section-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(120px, 20vw, 240px);
    font-weight: var(--fw-black);
    color: var(--color-border);
    opacity: 0.06;
    pointer-events: none;
    line-height: 1;
    user-select: none;
    z-index: 0;
}

.section-intro--tight {
    position: relative;
}

.section-intro--tight .eyebrow,
.section-intro--tight .section__title,
.section-intro--tight .section__subtitle {
    position: relative;
    z-index: 1;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--color-canvas);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Gradient top border accent — always visible as a subtle line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
    transition: opacity var(--transition-fast), left var(--transition-fast), right var(--transition-fast);
    border-radius: 0 0 2px 2px;
}

.feature-card:hover::before {
    opacity: 1;
    left: 0;
    right: 0;
}

/* Corner glow texture */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 6%, transparent) 0%, transparent 70%);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.feature-card:hover::after {
    transform: scale(1.3);
}

/* Highlight card — "Two Stages" gets extra emphasis */
.feature-card--highlight {
    border-color: color-mix(in srgb, var(--color-accent) 20%, var(--color-border-light));
}

.feature-card--highlight::before {
    opacity: 0.5;
    left: 0;
    right: 0;
}

.feature-card--highlight::after {
    background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 70%);
    width: 220px;
    height: 220px;
}

.feature-card--highlight:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

/* Index label */
.feature-card__index {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: var(--color-mute);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

/* Icon — monochrome line-art SVG inside a circular ring with radial glow */
.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
    position: relative;
    transition: all var(--transition-normal);
}

.feature-card__icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 12%, transparent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover .feature-card__icon::before {
    opacity: 1;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Title */
.feature-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-black);
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
    line-height: var(--lh-tight);
}

/* Description */
.feature-card__text {
    font-size: var(--text-caption);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
}

/* Dark theme overrides */
[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Status cards (dashboard) */
.status-card {
    background: var(--color-canvas);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: all var(--transition-fast);
}

.status-card:hover {
    transform: translateY(-2px);
}

.status-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.status-card__label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
}

.status-card__content {
    font-size: var(--text-small);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
}

.status-card__actions {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

/* ===========================
   Badges
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge--shortlisted {
    color: var(--color-success-deep);
    background: var(--color-accent-pale);
    border: none;
}

.badge--rejected {
    color: #ffffff;
    background: var(--color-negative-bg);
    border: none;
}

.badge--pending {
    color: var(--color-warning-deep);
    background: var(--color-warning-bg);
    border: none;
}

.badge--verified,
.badge--info {
    color: var(--color-info);
    background: var(--color-info-bg);
    border: none;
}

.badge--completed {
    color: var(--color-success-deep);
    background: var(--color-accent-pale);
    border: none;
}

/* ===========================
   Timeline — Treasure Map
   =========================== */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl) 0;
}

/* Treasure map compass rose */
.treasure-compass {
    position: absolute;
    right: -20px;
    top: -10px;
    width: 80px;
    height: 80px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    display: none;
}
@media (min-width: 768px) {
    .treasure-compass { display: block; }
}

/* Animated dot-grid background */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--color-accent-bg) 1px, transparent 1px),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(159, 232, 112, 0.02) 40px, rgba(159, 232, 112, 0.02) 41px);
    background-size: 24px 24px, 100% 40px;
    animation: timelineGridDrift 40s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes timelineGridDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-24px); }
}

/* SVG trail container */
.treasure-trail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}
.treasure-trail__path {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2.5;
    stroke-dasharray: 8 6;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px var(--color-accent-bg)) drop-shadow(0 0 12px rgba(159, 232, 112, 0.08));
    opacity: 0.6;
    transition: none;
}
.treasure-trail__glow {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 6;
    stroke-dasharray: 8 6;
    stroke-linecap: round;
    opacity: 0.08;
    filter: blur(4px);
    transition: none;
}
.treasure-trail__ghost {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-dasharray: 4 10;
    stroke-linecap: round;
    opacity: 0.08;
}

/* Timeline grid */
.timeline {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-4xl);
    max-width: none;
    padding-left: 0;
}
.timeline::before {
    display: none;
}

.timeline__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
    animation: none;
}
.timeline__item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating layout on desktop */
@media (min-width: 768px) {
    .timeline__item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .timeline__item:nth-child(even) .timeline__card-header {
        flex-direction: row-reverse;
    }
}

/* Node wrapper */
.timeline__node-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    display: flex;
    justify-content: center;
    z-index: 5;
}
.timeline__node {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-canvas);
    border: 3px solid var(--color-border);
    z-index: 5;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 6px;
}
.timeline__node--completed {
    border-color: var(--color-mute);
    background: var(--color-canvas-soft);
    opacity: 0.5;
}
.timeline__node--completed::after {
    content: '\2713';
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.timeline__node--active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    box-shadow: 0 0 0 6px var(--color-accent-bg), 0 0 25px rgba(159, 232, 112, 0.2);
    animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 0 6px var(--color-accent-bg), 0 0 25px rgba(159, 232, 112, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(159, 232, 112, 0.08), 0 0 40px rgba(159, 232, 112, 0.1); }
}
.timeline__node--upcoming {
    border-color: var(--color-accent-pale);
    background: rgba(159, 232, 112, 0.05);
}
.timeline__node--final {
    width: 28px;
    height: 28px;
    border-color: var(--color-accent-orange);
    background: rgba(255, 192, 145, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 192, 145, 0.08), 0 0 20px rgba(255, 192, 145, 0.06);
}
.timeline__node--final::after {
    content: '\2717';
    color: var(--color-accent-orange);
    font-size: 14px;
    font-weight: 900;
    font-family: var(--font-mono);
    text-shadow: 0 0 8px rgba(255, 192, 145, 0.4);
}

/* Connector line */
.timeline__connector {
    display: none;
}
@media (min-width: 768px) {
    .timeline__connector {
        display: block;
        position: absolute;
        top: calc(var(--space-lg) + 2px);
        width: calc(50% - 60px);
        height: 2px;
        z-index: 2;
        background: linear-gradient(90deg, var(--color-accent), transparent);
        opacity: 0.15;
        pointer-events: none;
    }
    .timeline__item:nth-child(even) .timeline__connector {
        right: calc(50% + 20px);
        left: auto;
        background: linear-gradient(270deg, var(--color-accent), transparent);
    }
    .timeline__item:nth-child(odd) .timeline__connector {
        left: calc(50% + 20px);
    }
}

/* Card */
.timeline__card {
    position: relative;
    width: 100%;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    margin-left: var(--space-lg);
    overflow: hidden;
}
.timeline__card::after {
    content: '';
    position: absolute;
    top: calc(var(--space-lg) + 2px);
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: var(--color-canvas-soft);
    left: -16px;
    filter: drop-shadow(-1px 0 1px rgba(0,0,0,0.1));
}
@media (min-width: 768px) {
    .timeline__item:nth-child(odd) .timeline__card::after {
        left: -16px;
        right: auto;
        border-right-color: var(--color-canvas-soft);
        border-left-color: transparent;
    }
    .timeline__item:nth-child(even) .timeline__card::after {
        right: -16px;
        left: auto;
        border-left-color: var(--color-canvas-soft);
        border-right-color: transparent;
    }
}
.timeline__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-border-light);
    transition: background 0.4s ease;
    border-radius: 0 2px 2px 0;
}
.timeline__card--active::before {
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent-bg);
}
.timeline__card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(159, 232, 112, 0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 20px var(--color-accent-bg);
}
@media (min-width: 768px) {
    .timeline__item:nth-child(even) .timeline__card {
        margin-left: var(--space-lg);
        margin-right: 0;
    }
    .timeline__item:nth-child(odd) .timeline__card {
        margin-right: var(--space-lg);
        margin-left: 0;
    }
}

/* Card header */
.timeline__card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

/* Event icon */
.timeline__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.timeline__card:hover .timeline__icon {
    background: rgba(159, 232, 112, 0.2);
    transform: scale(1.1);
}

/* Parchment-style date pill */
.timeline__date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-canvas);
    border: 1px dashed var(--color-border);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    color: var(--color-body);
    font-weight: var(--fw-medium);
    letter-spacing: 0.03em;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.04);
}

/* Status badge */
.timeline__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.timeline__badge--completed {
    background: var(--color-accent-bg);
    color: var(--color-mute);
    border: 1px solid var(--color-border);
}
.timeline__badge--live {
    background: var(--color-accent);
    color: var(--color-ink);
    border: 1px solid var(--color-accent);
    animation: badgePulse 2s ease-in-out infinite;
}
.timeline__badge--live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-ink);
    animation: dotPulse 1s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(159, 232, 112, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(159, 232, 112, 0); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.timeline__badge--upcoming {
    background: transparent;
    color: var(--color-mute);
    border: 1px solid var(--color-border-light);
}
.timeline__badge--soon {
    background: transparent;
    color: var(--color-accent);
    border: 1px dashed var(--color-accent);
}
.timeline__badge--final {
    background: rgba(255, 192, 145, 0.12);
    color: var(--color-accent-orange);
    border: 1px solid rgba(255, 192, 145, 0.25);
}

/* Countdown chip */
.timeline__countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(159, 232, 112, 0.12), rgba(159, 232, 112, 0.05));
    border: 1px solid rgba(159, 232, 112, 0.15);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    color: var(--color-accent);
    white-space: nowrap;
    animation: countdownPulse 3s ease-in-out infinite;
}
@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.timeline__countdown::before {
    content: '\23F3';
    font-size: 0.6rem;
}

/* Card text */
.timeline__title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h3);
    color: var(--color-ink);
    margin-bottom: 6px;
    line-height: var(--lh-tight);
}
.timeline__desc {
    font-size: var(--text-small);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .treasure-trail {
        left: 20px;
        width: calc(100% - 20px);
    }
    .timeline__node-wrapper {
        position: absolute;
        left: 0;
        top: var(--space-lg);
        width: auto;
    }
    .timeline__node {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }
    .timeline__node--final {
        width: 24px;
        height: 24px;
    }
    .timeline__card {
        margin-left: 44px !important;
        width: calc(100% - 44px);
    }
    .timeline__card::after {
        left: -16px;
        right: auto;
        border-right-color: var(--color-canvas-soft);
        border-left-color: transparent;
    }
    .timeline__card::before {
        display: none;
    }
    .timeline__item {
        transform: translateX(-20px);
    }
    .timeline__item.visible {
        transform: translateX(0);
    }
    .timeline__title {
        font-size: var(--text-h4);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .timeline__item {
        opacity: 1;
        transform: none !important;
    }
    .timeline__node--active {
        animation: none;
    }
    .timeline__node--final {
        animation: none;
    }
    .timeline__badge--live {
        animation: none;
    }
    .timeline__countdown {
        animation: none;
    }
    .timeline-wrapper::before {
        animation: none;
    }
    .treasure-trail__path,
    .treasure-trail__glow,
    .treasure-trail__ghost {
        transition: none;
    }
    .timeline__card {
        transition: none;
    }
    .timeline__card:hover {
        transform: none;
    }
}

/* ===========================
   Deadline Banner
   =========================== */
.deadline-banner {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.deadline-banner--active {
    background: var(--color-accent-pale);
    border: none;
}

.deadline-banner--locked {
    background: var(--color-error-bg);
    border: none;
}

.deadline-banner__icon {
    font-size: var(--text-h3);
}

.deadline-banner__text {
    flex: 1;
}

.deadline-banner__title {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
    font-size: var(--text-body);
}

.deadline-banner__subtitle {
    font-size: var(--text-caption);
    color: var(--color-body);
}

.deadline-banner__countdown {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-black);
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

/* ===========================
   Event Progress Bar
   =========================== */
.event-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    width: 100%;
}

.event-progress__step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: var(--space-xs) 0;
}

.event-progress__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    transform: translateY(-50%);
    z-index: 0;
}

.event-progress__step.completed:not(:last-child)::after {
    background: var(--color-success);
}

.event-progress__step.active:not(:last-child)::after {
    background: linear-gradient(to right, var(--color-accent), var(--color-border));
}

.event-progress__dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.event-progress__step.completed .event-progress__dot {
    background: var(--color-success);
    box-shadow: 0 0 0 3px var(--color-success-bg);
}

.event-progress__step.active .event-progress__dot {
    background: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-pale);
    animation: pulse 2s ease-in-out infinite;
}

.event-progress__step.rejected .event-progress__dot {
    background: var(--color-error);
    box-shadow: 0 0 0 3px var(--color-error-bg);
}

.event-progress__step.rejected:not(:last-child)::after {
    background: var(--color-error);
}

.event-progress__step.rejected .event-progress__label {
    color: var(--color-error);
}

.event-progress__label {
    font-size: var(--text-caption);
    color: var(--color-mute);
    margin-top: var(--space-xs);
    white-space: nowrap;
}

.event-progress__step.completed .event-progress__label {
    color: var(--color-success);
    font-weight: var(--fw-semibold);
}

.event-progress__step.active .event-progress__label {
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
}

/* ===========================
   Forms
   =========================== */
.form {
    max-width: 640px;
    margin: 0 auto;
}

.form__section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.form__section:last-child {
    border-bottom: none;
}

.form__section-title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
    margin-bottom: var(--space-xl);
}

.form__group {
    margin-bottom: var(--space-xl);
}

.form__label {
    display: block;
    font-size: var(--text-small);
    font-weight: var(--fw-semibold);
    color: var(--color-ink);
    margin-bottom: var(--space-sm);
}

.form__help {
    font-size: var(--text-caption);
    color: var(--color-mute);
    margin-top: 4px;
}

.form-input,
.form__input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-canvas);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-md);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.form-input--error,
.form__input--error {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px var(--color-error-bg) !important;
}

.form-input--valid {
    border-color: var(--color-success) !important;
}

.form__error {
    font-size: var(--text-caption);
    color: var(--color-error);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form__error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-error);
    color: #fff;
    font-size: 0.6rem;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .form__row {
        grid-template-columns: 1fr;
    }
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="url"],
.form input[type="password"],
.form input[type="date"],
.form textarea,
.form select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-canvas);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23868685'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

[data-theme="dark"] .form input[type="text"],
[data-theme="dark"] .form input[type="email"],
[data-theme="dark"] .form input[type="tel"],
[data-theme="dark"] .form input[type="number"],
[data-theme="dark"] .form input[type="url"],
[data-theme="dark"] .form input[type="password"],
[data-theme="dark"] .form input[type="date"],
[data-theme="dark"] .form textarea,
[data-theme="dark"] .form select {
    background: var(--color-canvas-alt);
    border-color: var(--color-border-light);
    color: var(--color-text-primary);
}

[data-theme="dark"] .form input:focus,
[data-theme="dark"] .form textarea:focus,
[data-theme="dark"] .form select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.form textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-pale);
}

.file-upload-area.drag-over {
    border-color: var(--color-accent);
    background: var(--color-accent-pale);
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.file-upload-area__text {
    color: var(--color-body);
    font-size: var(--text-small);
}

.file-upload-area__text strong {
    color: var(--color-ink);
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    counter-reset: step;
    padding: 0 4px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--text-caption);
    color: var(--color-text-muted);
    position: relative;
    flex: 1;
    text-align: center;
}

.wizard-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-canvas-alt);
    border: 2px solid var(--color-border);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.wizard-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.wizard-step:last-child::after { display: none; }

.wizard-step.active {
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
}

.wizard-step.active::before {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-bg);
}

.wizard-step.completed {
    color: var(--color-success);
}

.wizard-step.completed::before {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
    content: '\2713';
    font-size: 0.8rem;
}

.wizard-step.completed::after {
    background: var(--color-success);
}

.wizard-step.active::after {
    background: var(--color-border);
}

.wizard-step .wizard-label {
    display: block;
    font-size: var(--text-caption);
    font-weight: var(--fw-medium);
    color: inherit;
    max-width: 80px;
    line-height: var(--lh-tight);
}

@media (max-width: 480px) {
    .wizard-step .wizard-label {
        font-size: 0.6rem;
        max-width: 60px;
    }
    .wizard-step::before {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
}

/* Form step toggle */
.form-step { display: none; }
.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Wizard nav */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Messages / Toasts
   =========================== */
.messages {
    max-width: var(--max-width);
    margin: var(--space-sm) auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.message--success {
    background: var(--color-success-bg);
    border: none;
    color: var(--color-success-deep);
}

.message--error {
    background: var(--color-error-bg);
    border: none;
    color: var(--color-error);
}

.message--warning {
    background: var(--color-warning-bg);
    border: none;
    color: var(--color-warning-content);
}

.message--info {
    background: var(--color-info-bg);
    border: none;
    color: var(--color-info);
}

.message__close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: var(--text-h3);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.message__close:hover {
    opacity: 1;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    animation: slideIn 0.3s ease forwards;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border-left: 3px solid;
}

.toast--success {
    background: var(--color-success-bg);
    border-left-color: var(--color-success);
    color: var(--color-success-deep);
}

.toast--error {
    background: var(--color-error-bg);
    border-left-color: var(--color-error);
    color: var(--color-error);
}

.toast--warning {
    background: var(--color-warning-bg);
    border-left-color: var(--color-warning);
    color: var(--color-warning-content);
}

.toast--info {
    background: var(--color-info-bg);
    border-left-color: var(--color-info);
    color: var(--color-info);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ===========================
   Shortlist Table
   =========================== */
.shortlist-table {
    width: 100%;
    border-collapse: collapse;
}

.shortlist-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-canvas-soft);
    font-size: var(--text-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

.shortlist-table td {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-body);
    color: var(--color-body);
    border-bottom: 1px solid var(--color-border);
}

.shortlist-table tr:hover td {
    background: var(--color-canvas-soft);
}

.shortlist-table tr:nth-child(even) td {
    background: var(--color-canvas-alt);
}

/* ===========================
   Footer
   =========================== */
/* ===========================
   Footer — Complete Redesign
   =========================== */

/* Main footer wrapper (dark background that correctly switches with theme) */
.footer {
    position: relative;
    background: var(--color-canvas);
    overflow: hidden;
}

/* Dot-grid texture at low opacity */
.footer__texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .footer__texture {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    opacity: 0.1;
}

/* Main multi-column content */
.footer__main {
    position: relative;
    z-index: 1;
    padding: var(--space-5xl) 0 var(--space-3xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: var(--space-4xl);
    }
}

/* Brand column */
.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    font-weight: var(--fw-black);
    color: var(--color-ink);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.footer__logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.footer__tagline {
    font-size: var(--text-small);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
    margin: 0;
    max-width: 360px;
}

/* Column heading */
.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

/* Contact column */
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-small);
    color: var(--color-body);
    text-decoration: none;
    transition: color var(--transition-fast);
    width: fit-content;
}

a.footer__contact-item:hover {
    color: var(--color-accent);
}

.footer__contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.7;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

a.footer__contact-item:hover .footer__contact-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Quick links column */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.footer__nav-link {
    font-size: var(--text-small);
    color: var(--color-body);
    text-decoration: none;
    transition: color var(--transition-fast);
    width: fit-content;
    position: relative;
    padding: 2px 0;
}

.footer__nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.footer__nav-link:hover {
    color: var(--color-accent);
}

.footer__nav-link:hover::after {
    width: 100%;
}

/* Social icons */
.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-canvas-soft);
    color: var(--color-body);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: var(--color-ink);
    transform: translateY(-2px);
}

/* Bottom bar */
.footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-lg) 0;
}

/* Dark mode uses --color-border-light (#444) naturally */

.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__copyright {
    font-size: var(--text-caption);
    color: var(--color-mute);
    margin: 0;
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.footer__bottom-link {
    font-size: var(--text-caption);
    color: var(--color-mute);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: 2px 0;
}

.footer__bottom-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.footer__bottom-link:hover {
    color: var(--color-accent);
}

.footer__bottom-link:hover::after {
    width: 100%;
}

/* ===========================
   Copy Button
   =========================== */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--color-canvas-soft);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: var(--text-caption);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--space-sm);
}

.copy-btn:hover {
    background: var(--color-accent-pale);
    color: var(--color-ink);
}

.copy-btn.copied {
    background: var(--color-success-bg);
    color: var(--color-success-deep);
}

/* ===========================
   Loading Spinner
   =========================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-ink);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.spinner--dark {
    border-color: var(--color-border);
    border-top-color: var(--color-ink);
}

.spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

/* ===========================
   Success Icon
   =========================== */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--color-success-bg);
    border: 3px solid var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    animation: checkmark 0.6s ease forwards;
}

.success-icon__check {
    font-size: 2.5rem;
    color: var(--color-success-deep);
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-mute); }
.mt-md { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-2xl); }
.mb-xl { margin-bottom: var(--space-4xl); }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-lg); }

/* ===========================
   Animation Helpers
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-stagger > * {
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.4s; }

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Inline Validation
   =========================== */
.form-input--valid {
    border-color: var(--color-success) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234ade80'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-input--error {
    border-color: var(--color-error) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* ===========================
   Treasure Hunt Map Timeline
   =========================== */
.section--treasure-map {
    overflow: hidden;
}

.treasure-map {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

/* Compass Rose — small decorative corner icon */
.compass-rose {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    opacity: 0.35;
    display: block;
}

@media (max-width: 768px) {
    .compass-rose {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        opacity: 0.25;
    }
}

/* Waypoints Container — creates the vertical trail via ::before */
.waypoints {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.waypoints::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--color-accent);
    opacity: 0.4;
    transform: translateX(-1px);
    z-index: 0;
}

/* Individual Waypoint — grid layout for zigzag */
.waypoint {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.waypoint__marker {
    grid-column: 2;
}

/* Odd: card on the right */
.waypoint:nth-child(odd) .waypoint__card {
    grid-column: 3;
}

/* Even: card on the left */
.waypoint:nth-child(even) .waypoint__card {
    grid-column: 1;
    text-align: right;
}

/* Text/badges inside even cards align right */
.waypoint:nth-child(even) .waypoint__date-tag {
    justify-content: flex-end;
}

.waypoint:nth-child(even) .waypoint__card-status {
    justify-content: flex-end;
}

/* Horizontal connector lines from cards to center trail */
.waypoint::after {
    content: '';
    position: absolute;
    top: 22px;
    width: 40px;
    height: 0;
    border-top: 1.5px dashed var(--color-accent);
    opacity: 0.3;
    z-index: 0;
}

.waypoint:nth-child(odd)::after {
    right: calc(50% + 34px);
}

.waypoint:nth-child(even)::after {
    left: calc(50% + 34px);
}

@media (max-width: 768px) {
    .waypoint {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .waypoint:nth-child(odd) .waypoint__card,
    .waypoint:nth-child(even) .waypoint__card {
        grid-column: 2;
        text-align: left;
    }

    .waypoint:nth-child(even) .waypoint__date-tag,
    .waypoint:nth-child(even) .waypoint__card-status {
        justify-content: flex-start;
    }

    .waypoint::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .waypoint {
        padding: 0 0 0 44px !important;
        flex-direction: row !important;
        gap: 16px;
    }

    .waypoint::before {
        display: none !important;
    }

    .waypoints::before {
        left: 21px;
    }
}

/* Marker */
.waypoint__marker {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.waypoint__marker-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-canvas);
    border: 2px solid var(--color-border);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.waypoint__marker-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
    color: var(--color-ink);
}

/* Marker states */
.waypoint--completed .waypoint__marker-ring {
    border-color: var(--color-mute);
    background: var(--color-mute);
    opacity: 0.5;
}

.waypoint--completed .waypoint__marker-icon {
    color: var(--color-canvas);
}

.waypoint--live .waypoint__marker-ring {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.waypoint--live .waypoint__marker::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0.4;
    animation: liveGlowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.waypoint--live .waypoint__marker-icon {
    color: var(--color-ink);
}

.waypoint--upcoming .waypoint__marker-ring {
    border-color: var(--color-border);
    background: transparent;
    border-style: dashed;
}

.waypoint--final .waypoint__marker-ring {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.waypoint--final .waypoint__marker-icon {
    color: #fff;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 25%, transparent); }
    50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--color-accent) 10%, transparent); }
}

/* Card */
.waypoint__card {
    flex: 1;
    min-width: 0;
    background: var(--color-canvas);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition-fast);
}

@media (min-width: 769px) {
    .waypoint__card-pointer {
        position: absolute;
        top: 18px;
        width: 12px;
        height: 12px;
        background: var(--color-canvas);
    }

    .waypoint:nth-child(odd) .waypoint__card-pointer {
        left: -7px;
        border-left: 1px solid var(--color-border-light);
        border-bottom: 1px solid var(--color-border-light);
        transform: rotate(45deg);
    }

    .waypoint:nth-child(even) .waypoint__card-pointer {
        right: -7px;
        border-right: 1px solid var(--color-border-light);
        border-top: 1px solid var(--color-border-light);
        transform: rotate(45deg);
    }
}

@media (max-width: 768px) {
    .waypoint__card-pointer {
        display: none !important;
    }
}

.waypoint__card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.waypoint--completed .waypoint__card {
    opacity: 0.65;
}

.waypoint--completed .waypoint__card:hover {
    opacity: 0.8;
}

.waypoint--live .waypoint__card {
    border-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.waypoint--final {
    margin-top: 16px;
}

.waypoint--final .waypoint__card {
    border-color: rgba(245, 158, 11, 0.3);
}

.waypoint--final .waypoint__card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

/* Date Tag (parchment style) */
.waypoint__date-tag {
    display: inline-flex;
    margin-bottom: var(--space-sm);
}

.waypoint__date {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: #f5e6c8;
    background: #5c3d1a;
    padding: 2px 12px;
    border-radius: var(--radius-pill);
    border: 1px dashed #8b6b3d;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

[data-theme="dark"] .waypoint__date {
    background: #3d2a10;
    color: #e8d5b0;
    border-color: #6b4f2a;
}

/* Card body */
.waypoint__card-body {
    margin-bottom: var(--space-sm);
}

.waypoint__card-title {
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: var(--fw-bold);
    color: var(--color-ink);
    margin-bottom: 4px;
}

.waypoint__card-desc {
    font-size: var(--text-small);
    color: var(--color-body);
    line-height: var(--lh-relaxed);
}

/* Status badges */
.waypoint__card-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    min-height: 24px;
}

.waypoint__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1.4;
}

.waypoint__badge--completed {
    background: var(--color-border);
    color: var(--color-mute);
}

.waypoint__badge--live {
    background: var(--color-accent);
    color: var(--color-ink);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 40%, transparent); }
    50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 10%, transparent); }
}

.waypoint__badge--upcoming {
    background: transparent;
    border: 1px dashed var(--color-border);
    color: var(--color-body);
}

.waypoint__badge--final {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.waypoint__badge--countdown {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent);
    color: var(--color-accent);
}

.waypoint__badge-count {
    font-weight: var(--fw-black);
    font-size: 0.7rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .waypoint--live .waypoint__marker-ring {
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 30%, transparent);
    }

    .waypoint--live .waypoint__marker::after {
        animation: none;
        opacity: 0.25;
        inset: -6px;
        border-width: 1.5px;
    }

    .waypoint__badge--live {
        animation: none;
    }
}

/* ===========================
   Responsive Overrides
   =========================== */
@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 80px var(--space-lg) 40px;
    }

    .stat-card {
        margin-top: -20px;
        padding: var(--space-lg);
    }

    .stat-card__grid {
        gap: var(--space-lg);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .footer__grid {
        text-align: center;
    }
    .footer__col--brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__col--brand .footer__tagline {
        max-width: 100%;
    }
    .footer__nav {
        align-items: center;
    }
    .footer__social {
        justify-content: center;
    }
    .footer__contact-item {
        justify-content: center;
    }

    .deadline-banner__countdown {
        font-size: var(--text-h3);
    }
}

/* ========================================================================
   🚀 MOBILE RESPONSIVENESS — Comprehensive mobile-first enhancements
   Targets phones (<640px) and small tablets (640px–768px)
   ======================================================================== */

/* ─────────────── Small phones: < 480px ─────────────── */
@media (max-width: 480px) {
    /* Navigation */
    .nav {
        left: 8px !important;
        right: 8px !important;
        padding: 0 10px !important;
        height: 54px !important;
        margin-top: 10px !important;
        border-radius: 16px !important;
    }

    .nav__logo {
        font-size: 0.72rem !important;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav__right {
        gap: 4px !important;
    }

    .nav__right .nav__link {
        display: none;
    }

    .nav__right .btn--primary.btn--sm {
        padding: 5px 12px !important;
        font-size: 0.6rem !important;
        letter-spacing: 0.04em !important;
    }

    .theme-toggle {
        width: 40px !important;
        height: 22px !important;
    }

    .theme-toggle__slider::before {
        width: 16px !important;
        height: 16px !important;
    }

    .theme-toggle input:checked + .theme-toggle__slider::before {
        transform: translateX(18px) !important;
    }

    /* Mobile menu — override from the existing (max-width: 767px) block */
    .nav__center {
        left: 8px !important;
        right: 8px !important;
        top: 72px !important;
        border-radius: 16px !important;
    }

    /* Hero */
    .hero {
        min-height: 85vh !important;
        padding: 80px 12px 60px !important;
    }

    .hero__overlay {
        /* Switch to vertical gradient for portrait mobile */
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.45) 30%,
                rgba(0, 0, 0, 0.25) 60%,
                rgba(0, 0, 0, 0.50) 100%
            ) !important;
    }

    [data-theme="dark"] .hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.88) 0%,
                rgba(0, 0, 0, 0.55) 30%,
                rgba(0, 0, 0, 0.30) 60%,
                rgba(0, 0, 0, 0.55) 100%
            ) !important;
    }

    .hero__inner {
        gap: var(--space-xl) !important;
        padding-top: var(--space-lg) !important;
    }

    .hero__title {
        font-size: clamp(1.8rem, 10vw, 2.5rem) !important;
    }

    .hero__subtitle {
        font-size: var(--text-body) !important;
    }

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

    .hero__btn-register.btn--lg {
        width: 100% !important;
        justify-content: center;
    }

    .hero__btn-play {
        justify-content: center;
    }

    .hero-card {
        padding: var(--space-lg) !important;
        max-width: 100% !important;
    }

    .hero-card__grid {
        gap: var(--space-sm) !important;
    }

    .hero-card__value {
        font-size: var(--text-body) !important;
    }

    /* Scroll indicator — hide on small screens */
    .hero__scroll {
        display: none !important;
    }

    /* Sections */
    .section {
        padding: var(--space-3xl) 0 !important;
    }

    .section__title {
        font-size: clamp(1.5rem, 6vw, 1.8rem) !important;
    }

    .section__subtitle {
        font-size: var(--text-body) !important;
    }

    .section-intro {
        margin-bottom: var(--space-lg) !important;
    }

    /* Feature cards */
    .feature-card {
        padding: var(--space-xl) var(--space-lg) !important;
    }

    .feature-card__title {
        font-size: var(--text-h4) !important;
    }

    .feature-card__icon {
        width: 40px !important;
        height: 40px !important;
    }

    .feature-card__icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Countdown stat card */
    .stat-card {
        padding: var(--space-lg) var(--space-md) !important;
        margin-top: -30px !important;
    }

    .stat-card__grid {
        gap: var(--space-sm) !important;
    }

    .stat-card__value {
        font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    }

    /* Treasure Map Timeline */
    .treasure-map {
        padding: var(--space-lg) 0 !important;
    }

    .waypoint {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--space-sm) !important;
    }

    .waypoint__card {
        padding: var(--space-md) !important;
    }

    .compass-rose {
        display: none !important;
    }

    /* CTA section */
    .cta__title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    .cta__meta {
        flex-direction: column;
        gap: 2px !important;
    }

    .cta__meta-sep {
        display: none !important;
    }

    /* Footer */
    .footer__grid {
        gap: var(--space-xl) !important;
    }

    .footer__col--brand .footer__tagline {
        font-size: var(--text-small) !important;
    }

    .footer__bottom-inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer__copyright {
        font-size: var(--text-caption) !important;
    }

    .footer__bottom-links {
        justify-content: center;
    }

    /* Forms */
    .form__row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .form-input,
    .form__input {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: var(--space-sm) var(--space-md) !important;
    }

    .form__section {
        padding: var(--space-lg) 0 !important;
    }

    .form {
        padding: 0 !important;
    }

    /* Wizard */
    .wizard-progress {
        gap: 4px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .wizard-step {
        min-width: 50px;
        flex-shrink: 0;
    }

    .wizard-step .wizard-label {
        font-size: 0.5rem !important;
    }

    .wizard-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .wizard-nav .btn {
        width: 100%;
    }

    /* Buttons */
    .btn--lg {
        padding: 12px 24px !important;
        font-size: var(--text-small) !important;
    }

    /* Container */
    .container {
        padding: 0 var(--space-md) !important;
    }

    /* Dashboard */
    .dashboard {
        padding-top: 80px !important;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .dash-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .dash-header__name {
        font-size: var(--text-h1) !important;
    }

    .dash-card {
        padding: var(--space-md) !important;
    }

    .dash-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    /* Workshop cards */
    .workshop-card__thumb {
        height: 130px !important;
    }

    .workshop-card__body {
        padding: var(--space-md) !important;
    }

    .workshop-card__title {
        font-size: var(--text-h4) !important;
    }

    /* Team cards */
    .team-card {
        padding: var(--space-lg) !important;
    }

    .team-card__header {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .team-card__name {
        font-size: var(--text-h4) !important;
    }

    /* Status cards */
    .status-card {
        padding: var(--space-lg) !important;
    }

    .status-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Deadline banners */
    .deadline-banner {
        flex-wrap: wrap;
        gap: var(--space-sm);
        padding: var(--space-md) !important;
    }

    .deadline-banner__countdown {
        width: 100%;
        text-align: left;
    }

    /* File upload */
    .file-upload-area {
        padding: var(--space-xl) var(--space-md) !important;
    }

    .file-upload-area__text {
        font-size: var(--text-small) !important;
    }

    /* Toast messages */
    .toast-container {
        left: 8px !important;
        right: 8px !important;
    }

    .toast {
        font-size: var(--text-small) !important;
        padding: var(--space-sm) var(--space-md) !important;
    }

    /* FAB */
    .fab-scroll {
        bottom: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
    }

    /* Animations — disable on mobile for performance */
    .hero__bg {
        animation-duration: 40s !important; /* Slightly slower for mobile */
    }

    .section--sage::before,
    .section--cta::before,
    .footer__texture {
        background-size: 20px 20px !important; /* Smaller dot grid for mobile */
    }

    /* Workshop hover effects — disable on touch devices */
    .workshop-card:hover,
    .team-card:hover,
    .feature-card:hover {
        transform: none !important;
    }

    /* Improve touch targets */
    .nav__link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn,
    .footer__nav-link,
    .footer__bottom-link {
        min-height: 44px;
    }
}

/* ─────────────── Small tablets: 481px – 768px ─────────────── */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        min-height: 70vh !important;
        padding: 80px var(--space-xl) 60px !important;
    }

    .hero__title {
        font-size: clamp(2rem, 6vw, 2.8rem) !important;
    }

    .section {
        padding: var(--space-4xl) 0 !important;
    }

    .form__row {
        gap: var(--space-sm) !important;
    }

    .footer__grid {
        gap: var(--space-2xl) !important;
    }

    .container {
        padding: 0 var(--space-xl) !important;
    }
}

/* ─────────────── Landscape phone fixes ─────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh !important;
        padding: 80px var(--space-lg) 40px !important;
    }

    .hero__inner {
        gap: var(--space-lg) !important;
    }

    .hero__media {
        display: none !important;
    }

    .hero__scroll {
        display: none !important;
    }

    .hero__title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
}

/* ─────────────── Reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero__bg {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero__scroll {
        animation: none !important;
    }

    .hero__scroll-chevron {
        animation: none !important;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
