/* ============================================================
   TORZON — LUXURY EDITORIAL SYSTEM
   Inspired by YSL · Bottega Veneta · SSENSE · Acne Studios
   Binary black/white · zero radius · no shadow · hairline rules
   Serif display + engraved uppercase labels
   ============================================================ */
:root {
    --bg-deep: #000000;
    --bg-surface: #0a0a0a;
    --bg-elevated: #101012;
    --bg-hover: #141416;

    /* kept for inline var() usages — resolves to white */
    --accent-primary: #ffffff;
    --accent-secondary: #cfcfcf;

    --text-light: #f2f2f2;
    --text-dim: #8f8f92;
    --text-mute: #5c5c60;

    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.32);
    --border-light: 1px solid rgba(255, 255, 255, 0.14);

    --track-label: 0.2em;
    --track-nav: 0.16em;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: #ffffff;
    color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- DISPLAY HEADINGS (serif) vs UI HEADINGS (sans) --- */
h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

h3,
h4 {
    font-family: var(--font-body);
}

/* Luxury restraint: strip decorative icons from headings & buttons */
h1 i,
h2 i,
h3 i,
h4 i,
.btn-primary i,
.btn-outline i,
.btn-copy i {
    display: none;
}

/* --- GEOMETRIC CANVAS BACKGROUND --- */
#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Fine hairline grid — precision & structure that reads as "trust" */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 66px 66px;
    -webkit-mask-image: radial-gradient(125% 120% at 50% 28%, #000 26%, transparent 80%);
    mask-image: radial-gradient(125% 120% at 50% 28%, #000 26%, transparent 80%);
    animation: grid-drift 48s linear infinite;
}

@keyframes grid-drift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 66px 66px, 66px 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grid-bg {
        animation: none;
    }
}

/* --- PREMIUM REVEAL ON SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- SECURE TRANSITION OVERLAY --- */
#secure-transition {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s var(--ease);
}

#secure-transition.active {
    opacity: 1;
    visibility: visible;
}

.transition-content {
    text-align: center;
    max-width: 440px;
    padding: 0 24px;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid #ffffff;
    border-radius: 50%;
    margin: 0 auto 34px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#transition-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    color: #fff;
}

.status-msg {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    height: 20px;
    overflow: hidden;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#transition-target {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    word-break: break-all;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- LOGO WORDMARK --- */
.logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    /* optical centering for wide tracking */
    padding-left: 0.24em;
    color: #ffffff;
    transition: opacity 0.4s var(--ease);
}

.logo a:hover .logo-text {
    opacity: 0.55;
}

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    transition: opacity 0.3s;
}

.nav-toggle:hover {
    opacity: 0.6;
}

/* --- NAVIGATION --- */
header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: var(--track-nav);
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 6px 0;
}

/* remove decorative icons — luxury nav is text-only */
.nav-links a i {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* --- BUTTONS --- */
.btn-primary {
    background: #ffffff;
    color: #000000;
    padding: 15px 34px;
    border: 1px solid #ffffff;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.btn-primary i {
    font-size: 1em;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text-light);
    padding: 15px 34px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-light);
    padding: 9px 16px;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-copy.copied {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- HERO --- */
.hero {
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 28px;
    color: #ffffff;
}

.hero p {
    font-size: 0.98rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.85;
}

/* --- MIRROR COMPONENTS --- */
.mirror-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    border-radius: 0;
    padding: 40px;
    margin-bottom: 24px;
}

.mirror-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
}

.mirror-row:last-child {
    border-bottom: none;
}

.mirror-url {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--text-light);
    word-break: break-all;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 110px 0;
}

.seo-block {
    margin-bottom: 56px;
    max-width: 780px;
}

.seo-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #ffffff;
}

.seo-block h2 i,
.seo-block h3 i,
.kw-card h4 i {
    display: none;
}

.seo-block h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    margin-top: 40px;
    margin-bottom: 18px;
    color: var(--text-light);
}

.seo-block p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 1rem;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
}

.kw-card {
    background: transparent;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    padding: 36px 32px;
    transition: background 0.4s var(--ease);
}

.kw-card:hover {
    background: var(--bg-surface);
}

.kw-card h4 {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.kw-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* --- UTILITIES --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    color: var(--text-dim);
    border: none;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    margin-bottom: 36px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
footer {
    padding: 90px 0 48px;
    background: #000000;
    margin-top: 120px;
    border-top: 1px solid var(--line-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 56px;
}

footer h4 {
    color: #ffffff;
    margin-bottom: 26px;
    font-size: 0.7rem;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    font-weight: 600;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 14px;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

footer a:hover {
    color: #ffffff;
}

.seo-cloud,
.seo-cloud p,
.footer-keywords {
    color: var(--text-mute);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* hidden attribute must win over component display rules */
[hidden] {
    display: none !important;
}

/* --- REVEAL GATE (legal + 21+ disclaimer) --- */
.reveal-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.reveal-gate.active {
    opacity: 1;
    visibility: visible;
}

.reveal-gate__panel {
    width: 100%;
    max-width: 560px;
    max-height: min(90vh, 720px);
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    padding: 48px 44px;
    text-align: left;
    transform: translateY(18px);
    transition: transform 0.6s var(--ease);
}

.reveal-gate.active .reveal-gate__panel {
    transform: none;
}

.reveal-gate__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.reveal-gate__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 22px;
}

.reveal-gate__body {
    margin-bottom: 20px;
}

.reveal-gate__body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.reveal-gate__body p:last-child {
    margin-bottom: 0;
}

.reveal-gate__body strong {
    color: var(--text-light);
}

.reveal-gate__health {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--text-mute);
    line-height: 1.7;
    margin-bottom: 28px;
}

.reveal-gate__health a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s var(--ease);
}

.reveal-gate__health a:hover {
    color: #ffffff;
}

.reveal-gate__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.reveal-gate__actions .btn-primary {
    justify-content: center;
    padding: 15px 28px;
}

.reveal-gate__cancel {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.3s var(--ease);
}

.reveal-gate__cancel:hover {
    opacity: 0.55;
}

.reveal-gate__fine {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.reveal-gate__fine a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reveal-gate__fine a:hover {
    color: #ffffff;
}

body.reveal-locked {
    overflow: hidden;
}

.footer-disclaimer {
    margin-top: 28px;
    max-width: 720px;
    color: var(--text-mute);
    font-size: 0.72rem;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.footer-disclaimer a {
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: #fff;
}

.legal-section p,
.legal-section li {
    color: var(--text-dim);
    line-height: 1.85;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.legal-section ul {
    padding-left: 1.2em;
    margin-bottom: 14px;
}

.legal-section a {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 18px;
}

.editorial-notice {
    max-width: 640px;
    margin: 0 auto 36px;
    padding: 18px 22px;
    border: 1px solid var(--line-soft);
    background: var(--bg-surface);
    text-align: left;
}

.editorial-notice__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.editorial-notice p {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.75;
    margin: 0;
}

.editorial-notice a {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- LOCKED MIRROR LINK + GET UNCENSORED --- */
.mirror-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.mirror-url.is-locked {
    filter: blur(5px);
    opacity: 0.55;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}

.mirror-url.is-revealed {
    animation: url-reveal 0.6s var(--ease);
}

@keyframes url-reveal {
    from {
        filter: blur(5px);
        opacity: 0.4;
    }

    to {
        filter: none;
        opacity: 1;
    }
}

.btn-uncensor {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 9px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-uncensor:hover {
    background: transparent;
    color: #ffffff;
}

.btn-uncensor i {
    display: none;
}

.uncensor-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 8px 0 36px;
}

.btn-uncensor--lg {
    padding: 17px 44px;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
}

.uncensor-hint {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    max-width: 420px;
    line-height: 1.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav>.btn-primary {
        display: none;
    }

    nav {
        height: 72px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 24px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 18px 0;
        font-size: 0.82rem;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 160px 0 90px;
    }

    .mirror-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mirror-actions {
        width: 100%;
    }

    .btn-uncensor {
        flex: 1;
        text-align: center;
    }

    .reveal-gate__panel {
        padding: 36px 22px;
    }

    .reveal-gate__title {
        font-size: 1.45rem;
    }

    .reveal-gate__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .reveal-gate__actions .btn-primary {
        width: 100%;
    }

    .reveal-gate__cancel {
        text-align: center;
    }
}
