/* ===========================================================
   MYTH LIGHTS — Premium dark aesthetic
   Matte black industrial · Deep reef blue ambience
   =========================================================== */

:root {
    --bg: #070708;
    --bg-elev: #0d0d10;
    --surface: #131316;
    --surface-2: #1a1a1f;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --fg: #f2f2f4;
    --fg-2: #c8c9cf;
    --fg-3: #8a8b93;
    --fg-4: #5a5b63;

    /* Reef blues */
    --reef: oklch(0.62 0.13 245);
    --reef-deep: oklch(0.42 0.16 252);
    --reef-glow: oklch(0.55 0.18 248 / 0.35);
    --reef-faint: oklch(0.55 0.18 248 / 0.08);

    --max: 1320px;
    --gutter: clamp(20px, 4vw, 56px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    font-weight: 400;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--reef-glow); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === Ambient reef glow (cinematic backdrop) === */
.reef-amb {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.reef-amb::before, .reef-amb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    will-change: transform;
}
.reef-amb::before {
    width: 60vw; height: 60vw;
    top: -20vw; left: -10vw;
    background: radial-gradient(circle, oklch(0.42 0.16 252 / 0.55), transparent 65%);
    animation: drift1 28s ease-in-out infinite;
}
.reef-amb::after {
    width: 50vw; height: 50vw;
    bottom: -15vw; right: -10vw;
    background: radial-gradient(circle, oklch(0.38 0.14 235 / 0.5), transparent 65%);
    animation: drift2 34s ease-in-out infinite;
}
@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8vw, 6vh); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6vw, -4vh); }
}

/* === NAV === */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 7, 8, 0.6);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav-brand {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.32em;
    color: var(--fg);
    text-transform: uppercase;
}
.nav-brand .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--reef);
    box-shadow: 0 0 12px var(--reef);
    margin-right: 10px;
    transform: translateY(-2px);
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 500;
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--reef);
    box-shadow: 0 0 8px var(--reef);
}

.nav-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.lang-pill {
    position: relative;
}
.lang-trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fg-2);
    border: 1px solid var(--line);
    transition: all 0.3s var(--ease);
}
.lang-trigger:hover { border-color: var(--line-strong); color: var(--fg); }
.lang-trigger svg { width: 10px; height: 10px; }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 130px;
    padding: 6px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.25s var(--ease);
    backdrop-filter: blur(20px);
}
.lang-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--fg-2);
    transition: background 0.2s var(--ease);
    text-align: left;
}
.lang-menu button:hover { background: var(--surface); color: var(--fg); }
.lang-menu button.active { color: var(--reef); }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--fg);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--reef);
    color: var(--fg);
    box-shadow: 0 8px 30px var(--reef-glow);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
    border-color: var(--reef);
    color: var(--reef);
    background: var(--reef-faint);
}
.btn-arrow::after {
    content: "→";
    font-size: 14px;
    transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-items: center; justify-content: center;
}
.nav-toggle span {
    width: 16px; height: 1px; background: var(--fg);
    position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: 1px; background: var(--fg);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* === TYPE === */
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--reef);
    font-weight: 600;
}
.display {
    font-weight: 200;
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.display-xl { font-size: clamp(58px, 9vw, 144px); }
.display-l { font-size: clamp(44px, 6.5vw, 96px); }
.display-m { font-size: clamp(32px, 4.5vw, 64px); }
.display-s { font-size: clamp(24px, 3vw, 40px); }

.subdisplay {
    color: var(--fg-2);
    font-weight: 300;
    line-height: 1.5;
    max-width: 60ch;
    font-size: clamp(15px, 1.2vw, 18px);
}

.mono {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-feature-settings: "tnum";
    letter-spacing: 0;
}

/* === LAYOUT === */
.section {
    padding: clamp(80px, 10vw, 160px) var(--gutter);
    position: relative;
    z-index: 1;
}
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap-narrow { max-width: 920px; margin: 0 auto; }

/* Page-load reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* === PRODUCT DISC (cinematic CSS-rendered placeholder) === */
.disc {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #2a2a30 0%, #141418 40%, #0a0a0c 75%);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.06),
        0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.disc::before {
    /* outer bezel ring */
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background:
        conic-gradient(from 220deg, #1a1a1f, #2c2c33, #18181c, #2c2c33, #1a1a1f);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.disc::after {
    /* lens grid */
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, oklch(0.6 0.18 248 / 0.25), transparent 55%),
        radial-gradient(circle at 30% 30%, oklch(0.7 0.18 248 / 0.18), transparent 35%),
        repeating-radial-gradient(circle at center, transparent 0, transparent 9px, rgba(255,255,255,0.04) 9px, rgba(255,255,255,0.04) 10px),
        radial-gradient(circle, #0c0c12 0%, #050507 100%);
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.9),
        inset 0 0 80px oklch(0.45 0.18 248 / 0.25);
}
.disc-on .lens-glow {
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, oklch(0.75 0.2 248 / 0.4) 0%, transparent 60%);
    mix-blend-mode: screen;
    animation: lens-breathe 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes lens-breathe {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* === FOOTER === */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px var(--gutter) 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    max-width: var(--max);
    margin: 0 auto 60px;
}
.footer-brand {
    font-weight: 200;
    font-size: 28px;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.footer-tag {
    color: var(--fg-3);
    font-size: 13px;
    max-width: 30ch;
    font-weight: 300;
}
.footer-col h4 {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--fg-2);
    padding: 6px 0;
    transition: color 0.25s var(--ease);
    font-weight: 300;
}
.footer-col a:hover { color: var(--reef); }
.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--fg-4);
    letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav.menu-open .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--line);
        padding: 24px var(--gutter);
        gap: 22px;
        align-items: flex-start;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav-actions .btn-primary { display: none; }
}
