/* ── @tendance style — single stylesheet - Layered on top of Bootstrap 5.3 ── */

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Thin-sRm5u4l.otf") format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-ThinItalic-yg58w9A.otf") format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-ExtraLight-9K51O37.otf") format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-ExtraLightItalic-I9SDxeO.otf") format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Light-T6tu3gz.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-LightItalic-MKrD3bw.otf") format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Regular-KyFaJIw.otf") format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Italic-6LQsUl_.otf") format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Medium-QKcdJ_j.otf") format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-MediumItalic-Zf8Afm2.otf") format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-SemiBold-tInq8-L.otf") format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-SemiBoldItalic-qEnSkn4.otf") format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Bold-NDDLSD-.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-BoldItalic-ms4lNZf.otf") format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-ExtraBold-hu6i7Xc.otf") format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-ExtraBoldItalic-iJ4uaXV.otf") format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-Black-DX09VZH.otf") format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url("../fonts/Exo-BlackItalic-HJTn0Yt.otf") format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Fraunces - local @font-face declarations */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/Fraunces-Light-5W6J7yg.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Fraunces-Regular-aHk7kbA.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/Fraunces-Medium-9yDrR6B.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Fraunces-SemiBold-yKNN_kz.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Fraunces-Bold-oVxjaJ3.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/Fraunces-ExtraBold-ntKZQg1.ttf") format('truetype');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/Fraunces-Black-v5lGzLU.ttf") format('truetype');
}

:root, [data-theme="light"] {
    --bg: #FAF3E8;
    --surface: #FFFBF3;
    --surface-2: #F1E7D5;
    --ink: #2D1B3D;
    --ink-2: #4A2E5E;
    --ink-3: rgba(255, 251, 243, 0.65);
    --muted: #7A6A86;
    --line: #E0D3BE;
    --accent: #FF8C61;
    --accent-2: #E66E40;
    --accent-soft: #FFE5D6;
    --accent-ink: #7A2E12;
    --watermark: rgba(45, 27, 61, 0.045);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #1A0F26;
    --surface: #2D1B3D;
    --surface-2: #241432;
    --ink: #FFFBF3;
    --ink-2: rgba(255, 251, 243, 0.82);
    --ink-3: #2D1B3D;
    --muted: rgba(255, 251, 243, 0.5);
    --line: rgba(255, 251, 243, 0.10);
    --accent: #FF8C61;
    --accent-2: #FFB089;
    --accent-soft: rgba(255, 140, 97, 0.14);
    --accent-ink: #FFB089;
    --watermark: rgba(255, 140, 97, 0.05);
    color-scheme: dark;
}

/* ──────────────────────────────────────────────────────────────────────────
   BASE & LAYOUT
   ────────────────────────────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Exo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 240ms, color 240ms;
    overflow-x: hidden; /* Prevent accidental horizontal scroll */
}

/* The "Soon" specific container layout */
body.is-soon {
    display: flex;
    flex-direction: column;
}

/* ──────────────────────────────────────────────────────────────────────────
   HEADER & FOOTER
   ────────────────────────────────────────────────────────────────────────── */

header {
    padding: 24px 5%; /* Use percentage for side padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.wordmark {
    font: italic 700 22px 'Exo', sans-serif;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-decoration: none;
}

.wordmark .dot {
    color: var(--accent);
}

/* THEME TOGGLE LOGIC */
.theme-toggle {
    all: unset;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: all 160ms;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    transform: rotate(15deg);
}

/* Default state: Show Moon (to switch to dark), Hide Sun */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* Dark Mode state: Show Sun (to switch to light), Hide Moon */
[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

footer {
    padding: 24px 5%;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    font: 500 12px 'Exo', sans-serif;
    color: var(--muted);
}

/* ──────────────────────────────────────────────────────────────────────────
   MAIN CONTENT (HERO)
   ────────────────────────────────────────────────────────────────────────── */

main {
    flex: 1;
    padding: 40px 5% 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

/* Watermark - Responsive Size */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font: italic 900 40vw/0.8 'Exo', sans-serif; /* Relative to viewport width */
    color: var(--watermark);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Fluid Typography for Headline */
h1 {
    /* clamp(min, preferred, max) */
    font-size: clamp(48px, 10vw, 116px);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin: 0 0 24px;
}

h1 .italic {
    font-style: italic;
    color: var(--accent-ink);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.eyebrow {
    font: 700 12px 'Exo', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}

.sub {
    font: 400 18px/1.5 'Exo', sans-serif;
    color: var(--ink-2);
    max-width: 600px;
    margin: 0 auto 40px;
}

.target-line {
    font: 500 14px 'Exo', sans-serif;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ──────────────────────────────────────────────────────────────────────────
   COUNTDOWN GRID (The Responsive Magic)
   ────────────────────────────────────────────────────────────────────────── */

.countdown {
    display: grid;
    /* Default: 4 columns for desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.cd-cell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 10px;
    position: relative;
}

/* The "Highlighted" middle cell logic from your design */
.cd-cell:nth-child(2) {
    background: var(--ink);
    color: var(--bg);
    border: none;
}

.cd-cell:nth-child(2) .cd-num {
    color: var(--accent);
}

.cd-cell:nth-child(2) .cd-label {
    color: var(--ink-3);
}

.cd-num {
    /* Fluid numbers */
    font-size: clamp(32px, 6vw, 80px);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cd-label {
    font: 600 11px 'Exo', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

/* ──────────────────────────────────────────────────────────────────────────
   LIVE BANNER
   ────────────────────────────────────────────────────────────────────────── */

.live-banner {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--accent);
    color: var(--ink);
    border-radius: 24px;
    text-align: center;
}

.live-banner .live-mark {
    font: italic 700 60px 'Exo', sans-serif;
    margin-bottom: 10px;
}

body.is-live .live-banner {
    display: block;
}
body.is-live .countdown,
body.is-live .target-line,
body.is-live h1,
body.is-live .sub {
    display: none;
}

/* ──────────────────────────────────────────────────────────────────────────
   MEDIA QUERIES (Tablet & Mobile)
   ────────────────────────────────────────────────────────────────────────── */

/* Tablet: 2 columns for countdown */
@media (max-width: 768px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    header, footer {
        padding: 20px 5%;
    }
}

/* Mobile: 1 column for countdown & adjust spacing */
@media (max-width: 480px) {
    main {
        padding: 30px 5% 40px;
    }

    .countdown {
        grid-template-columns: 1fr; /* Stack vertically on very small screens */
    }

    .cd-cell {
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    /* On mobile, we make the middle cell look like a standard row
       so it doesn't break the visual rhythm of a vertical list */
    .cd-cell:nth-child(2) {
        background: var(--ink);
        color: var(--bg);
    }

    .cd-num {
        font-size: 32px;
    }

    .cd-label {
        margin-top: 0;
        font-size: 10px;
    }

    h1 {
        line-height: 1.1;
    }

    .hero-sub {
        display: none;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
