/* Hades Audiobook Player: subsite of kingmode.co.
   Same glass design language as the main site, retinted to Hades'
   ember-orange / crimson identity. Standalone stylesheet. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #030303;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #999999;
    --ember-1: #ff7a1a;   /* Hades logo orange */
    --ember-2: #ff2a2a;   /* App accent crimson */
    --km-1: #ff2a5f;      /* Kingmode crimson (brand mark only) */
    --km-2: #8a2be2;      /* Kingmode purple  (brand mark only) */
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    /* clip (not hidden) so decorative off-canvas phones can't create a
       horizontal scroll container that swipes/scrollIntoView could drag */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Ambient Background Glows: underworld embers */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.45;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--ember-1) 0%, transparent 70%);
}

.glow-2 {
    top: 35%; right: -15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--ember-2) 0%, transparent 70%);
    animation-delay: -5s;
    opacity: 0.35;
}

.glow-3 {
    bottom: -20%; left: 15%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, #6a1b9a 0%, transparent 70%);
    opacity: 0.25;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-glow { animation: none; }
    html { scroll-behavior: auto; }
}

/* Typography */
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -2px; line-height: 1.08; margin-bottom: 24px; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -1px; margin-bottom: 16px; font-weight: 700; }
h3 { font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.65; font-size: 1.05rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--ember-1), var(--ember-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-km {
    background: linear-gradient(135deg, var(--km-1), var(--km-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 3, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand-divider { color: rgba(255, 255, 255, 0.25); font-weight: 400; }
.brand-icon { width: 26px; height: 26px; border-radius: 7px; display: block; }
.brand-hades {
    background: linear-gradient(135deg, var(--ember-1), var(--ember-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; list-style: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--ember-1); }

/* Buttons */
.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; font-weight: 600; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 122, 26, 0.25);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(255, 122, 26, 0.45);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ember-1);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 60px;
    align-items: center;
    padding: 140px 6% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-lead { font-size: 1.2rem; margin-bottom: 28px; max-width: 560px; }

.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.chip {
    padding: 7px 15px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: #d8d8d8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.chip-muted { color: var(--text-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-actions a { text-decoration: none; color: var(--text-main); }
.hero-actions .btn-primary { color: var(--bg-color); }

/* Phone frames */
.phone {
    border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0a0a0a;
    padding: 10px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(255, 90, 26, 0.12);
    overflow: hidden;
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

.hero-visual { display: flex; justify-content: center; }
.phone-hero { width: min(320px, 80vw); transform: rotate(2.5deg); }

/* Stat strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 40px;
}

.stat {
    text-align: center;
    padding: 26px 18px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--ember-1), var(--ember-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat span { color: var(--text-muted); font-size: 0.9rem; }

/* Sections */
.section {
    padding: 90px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading p { max-width: 640px; margin: 0 auto; }

.kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ember-1);
    margin-bottom: 14px;
}

.kicker-hot {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 122, 26, 0.08);
    border: 1px solid rgba(255, 122, 26, 0.25);
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.duo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 32px 28px;
    border-radius: 22px;
    background: rgba(20, 20, 20, 0.45);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
        rgba(255, 122, 26, 0.08),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 42, 42, 0.08));
    border: 1px solid rgba(255, 122, 26, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.93rem; color: #a1a1aa; }

/* Split sections (copy + phones) */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 70px;
    align-items: center;
}

.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }

/* Grid items default to min-width:auto; without this, wide children
   (like the model-tier cards) force the column past the viewport on phones */
.split-copy, .split-visual { min-width: 0; }

.split-copy > p { margin-bottom: 20px; max-width: 560px; }

.check-list { list-style: none; margin: 6px 0 24px; }

.check-list li {
    position: relative;
    padding: 8px 0 8px 34px;
    color: #c9c9cf;
    line-height: 1.55;
    font-size: 0.98rem;
}

.check-list li strong { color: var(--text-main); font-weight: 600; }

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030303' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat,
        linear-gradient(135deg, var(--ember-1), var(--ember-2));
}

.split-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

.split-visual .phone-front {
    width: min(280px, 68vw);
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
}

.split-visual .phone-back {
    width: min(250px, 60vw);
    position: absolute;
    z-index: 1;
    transform: rotate(6deg) translateX(46%) scale(0.94);
    opacity: 0.85;
    filter: brightness(0.8);
}

/* AI subtitle model tiers */
.model-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 14px;
    margin-bottom: 20px;
    max-width: 560px;
}

.tier {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.tier-name { font-weight: 700; margin-bottom: 2px; }

.tier-size {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ember-1);
    margin-bottom: 8px;
}

.tier p { font-size: 0.85rem; }

.aside { font-size: 0.9rem; font-style: italic; max-width: 540px; }

/* Privacy statement */
.privacy-card {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 70px 8%;
    border-radius: 30px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 122, 26, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 80px rgba(255, 90, 26, 0.08) inset, 0 30px 80px rgba(0, 0, 0, 0.5);
}

.privacy-card h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 8px 0 20px; }
.privacy-card p { max-width: 640px; margin: 0 auto; }

/* Gallery */
.gallery {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 4px 26px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255, 122, 26, 0.35); border-radius: 4px; }

.gallery figure {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a0a0a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery figure:hover img {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 26, 0.45);
}

.gallery figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(3, 3, 3, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 4vh 5vw;
    cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-height: 82vh;
    max-width: 92vw;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.lightbox-caption { color: #d8d8d8; font-size: 0.95rem; }

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

/* CTA */
.cta-section { padding-top: 20px; }

.cta-card {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 8%;
    border-radius: 30px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 14px 40px rgba(255, 110, 26, 0.35);
}

.cta-card p { margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 44px 5%;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p { font-size: 0.9rem; }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 130px;
        gap: 50px;
    }
    .hero-lead, .split-copy > p { margin-left: auto; margin-right: auto; }
    .platform-chips, .hero-actions { justify-content: center; }

    .split { grid-template-columns: 1fr; gap: 50px; }
    .split-reverse .split-copy { order: 1; }
    .split-reverse .split-visual { order: 2; }
    .split-visual { min-height: 0; padding-right: 12vw; }
    .split-visual .phone-back { transform: rotate(6deg) translateX(38%) scale(0.94); }
}

@media (max-width: 768px) {
    .nav-links li:not(:last-child) { display: none; }
    .brand { font-size: 1rem; }
    .footer-content { justify-content: center; text-align: center; }
}
