/*
 * Rayzen Beats — Steampunk Gothic Industrial Theme
 * Inspired by the official Rayzen Beats logo
 * Colors: Aged Brass/Gold · Steel Blue · Dark Charcoal · Warm Cream
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
    /* Backgrounds — dark warm charcoal */
    --bg:                          #0d0b08;
    --surface:                     #141210;
    --surface-container-lowest:    #080705;
    --surface-container-low:       #1a1714;
    --surface-container:           #22201a;
    --surface-container-high:      #2a2720;
    --surface-container-highest:   #343028;

    /* PRIMARY: Steel Blue (dominant — used for buttons, accents, icons) */
    --primary:                     #7BBFDE;
    --on-primary:                  #04090d;
    --primary-container:           rgba(123, 191, 222, 0.12);
    --on-primary-container:        #7BBFDE;

    /* SECONDARY: Aged Brass (subtle detail only — borders, corner rivets) */
    --secondary:                   #B8913B;
    --on-secondary:                #060401;
    --secondary-container:         rgba(184, 145, 59, 0.08);
    --on-secondary-container:      #C4A95C;

    --tertiary:                    #5EA8CF;

    /* Text */
    --on-surface:                  #E8E0D0;
    --on-surface-variant:          #9A8F7A;
    --on-background:               #E8E0D0;

    /* Borders — blue tint */
    --outline:                     rgba(123, 191, 222, 0.22);
    --outline-variant:             rgba(123, 191, 222, 0.08);
    --border:                      rgba(123, 191, 222, 0.18);

    /* NO heavy shadows — flat industrial look */
    --shadow:                      none;
    --shadow-glow:                 none;
    --shadow-blue:                 none;

    /* Typography */
    --font-heading:                'Roboto', system-ui, sans-serif;
    --font-body:                   'Roboto', system-ui, sans-serif;
    --font-accent:                 'Roboto', system-ui, sans-serif;
    --font-bold:                   'Roboto', system-ui, sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   BASE RESET & GLOBALS
══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--on-surface);
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 16px;
    letter-spacing: 0.015em;
}

/* Global heading letter-spacing */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: var(--font-heading) !important;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

/* BEATS-style bold heading (Anton) used where more punch needed */
.font-bold-heading {
    font-family: var(--font-bold) !important;
    letter-spacing: 0.04em;
}

/* Grain / noise texture over entire page */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 1;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
}

a {
    color: inherit;
    text-decoration: none;
}

button, .btn {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #5EA8CF; }

/* ══════════════════════════════════════════════════════════════
   STEAMPUNK BACKGROUND
══════════════════════════════════════════════════════════════ */
.steampunk-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Subtle blue vignette matching the primary color */
    background:
        radial-gradient(ellipse 55% 45% at 15% 25%, rgba(123, 191, 222, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 50% 55% at 85% 75%, rgba(123, 191, 222, 0.03) 0%, transparent 100%),
        radial-gradient(ellipse 100% 100% at 0%   0%, rgba(0, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
}

/* ══════════════════════════════════════════════════════════════
   INDUSTRIAL CARDS
══════════════════════════════════════════════════════════════ */
.glass-card {
    background: rgba(20, 18, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--outline);
    box-shadow: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
    position: relative;
}

/* Blue corner rivet accent on hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 18px; height: 18px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.glass-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 18px; height: 18px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(123, 191, 222, 0.45);
    box-shadow: none;
    transform: translateY(-2px);
}
.glass-card:hover::before,
.glass-card:hover::after {
    opacity: 1;
}

.ambient-glow {
    box-shadow: var(--shadow-glow), var(--shadow);
}

/* Developer Chip */
.developer-chip {
    border: 1px solid var(--outline);
    background: rgba(123, 191, 222, 0.05);
    transition: all 0.3s ease;
    color: var(--primary) !important;
}
.developer-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   FEATURE ICON WRAP
══════════════════════════════════════════════════════════════ */
.feature-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(123, 191, 222, 0.07);
    color: var(--primary);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
    position: relative;
}
.feature-icon-wrap::before {
    content: '●';
    position: absolute;
    top: 3px; left: 3px;
    font-size: 5px;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
}
.feature-icon-wrap::after {
    content: '●';
    position: absolute;
    bottom: 3px; right: 3px;
    font-size: 5px;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
}
.glass-card:hover .feature-icon-wrap {
    background: var(--primary);
    color: var(--on-primary);
    transform: scale(1.08);
    box-shadow: none;
    border-color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   HERO LOGO VISUALIZER
══════════════════════════════════════════════════════════════ */
.logo-visualizer-container {
    position: relative;
    cursor: pointer;
}
.logo-visualizer-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: none;
    transition: opacity 0.4s ease;
}
.logo-visualizer-svg:hover {
    filter: none;
    opacity: 0.9;
}
.logo-visualizer-container.playing img {
    animation: skullBob 2.4s infinite ease-in-out;
    transform-origin: center;
    filter: none;
}

/* Soundwave bars (SVG inside logo) */
.soundwave-bars rect {
    transform-origin: bottom;
    transition: height 0.2s ease;
}
.logo-visualizer-container.playing .soundwave-bars.left rect:nth-child(1) { animation: wavePulse 1.2s infinite 0.1s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.left rect:nth-child(2) { animation: wavePulse 1.2s infinite 0.3s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.left rect:nth-child(3) { animation: wavePulse 1.2s infinite 0.5s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.left rect:nth-child(4) { animation: wavePulse 1.2s infinite 0.2s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.left rect:nth-child(5) { animation: wavePulse 1.2s infinite 0.4s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.right rect:nth-child(1) { animation: wavePulse 1.2s infinite 0.4s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.right rect:nth-child(2) { animation: wavePulse 1.2s infinite 0.2s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.right rect:nth-child(3) { animation: wavePulse 1.2s infinite 0.5s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.right rect:nth-child(4) { animation: wavePulse 1.2s infinite 0.3s ease-in-out; }
.logo-visualizer-container.playing .soundwave-bars.right rect:nth-child(5) { animation: wavePulse 1.2s infinite 0.1s ease-in-out; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2.2); }
}
@keyframes skullBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%       { transform: translateY(-5px) rotate(-0.8deg); }
    75%       { transform: translateY(5px)  rotate(0.8deg); }
}

/* ══════════════════════════════════════════════════════════════
   HERO WATERMARK BACKGROUND
══════════════════════════════════════════════════════════════ */
.hero-logo-bg { /* container — nothing needed here */ }

.hero-bg-watermark {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 70%;
    max-width: 680px;
    opacity: 0.055;
    filter: sepia(40%) blur(1.5px);
    pointer-events: none;
    user-select: none;
    object-fit: contain;
}
@media (max-width: 768px) {
    .hero-bg-watermark {
        width: 115%;
        right: -8%;
        opacity: 0.04;
    }
}

/* ══════════════════════════════════════════════════════════════
   DIALOGS
══════════════════════════════════════════════════════════════ */
.glass-dialog {
    background: rgba(16, 14, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--outline);
    border-radius: 2px;
    color: var(--on-surface);
    padding: 0;
    max-width: 460px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow);
}
.glass-dialog--large { max-width: 680px; }
.glass-dialog::backdrop {
    background: rgba(4, 3, 2, 0.92);
    backdrop-filter: blur(12px);
}
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--outline-variant);
}
.dialog-content { padding: 1.75rem; }
.dialog-content--scroll {
    max-height: 480px;
    overflow-y: auto;
}
.dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem 1.75rem;
    border-top: 1px solid var(--outline-variant);
}
.dialog-icon-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.dialog-icon-btn:hover {
    background: var(--surface-container-high);
    color: var(--on-surface);
}
.dialog-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}
.dialog-list-item:hover {
    background: var(--surface-container-high);
    border-color: var(--outline);
    transform: translateX(4px);
}
.dialog-text-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}
.dialog-text-btn:hover {
    color: var(--on-surface);
    background: var(--surface-container-high);
}
.dialog-filled-btn {
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid rgba(123, 191, 222, 0.5);
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    box-shadow: none;
    transition: all 0.25s ease;
}
.dialog-filled-btn:hover {
    transform: translateY(-1px);
    background: #5EA8CF;
    box-shadow: none;
}
.flag-icon {
    width: 26px; height: 20px;
    border-radius: 2px;
    object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════
   PHONE MOCKUP
══════════════════════════════════════════════════════════════ */
.phone-frame {
    width: 100%;
    max-width: 310px;
    height: 610px;
    border-radius: 28px;
    background: #09070400;
    border: 10px solid #1e1e24;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(123, 191, 222, 0.25), transparent);
    z-index: 30;
}
/* Scanline texture */
.phone-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 50;
    border-radius: 20px;
}
.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 22px;
    background: #241f18;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 20;
}
.phone-screen {
    flex: 1;
    background: radial-gradient(circle at 50% 25%, #1c160e 0%, #0a0806 100%);
    display: flex;
    flex-direction: column;
    padding: 24px 16px 16px;
    font-family: var(--font-body);
    position: relative;
    justify-content: space-between;
    z-index: 10;
}
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--on-surface-variant);
    font-size: 11px;
    font-weight: 600;
}
.phone-player-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    gap: 18px;
}
.phone-disc-container {
    width: 175px; height: 175px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #0e0e14, #0e0e14 2px, #16161e 3px, #16161e 5px);
    border: 6px solid #1e1e2a;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.phone-disc-cover {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--surface-container-high);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #0a0806;
}
.phone-disc-cover svg { width: 44px; height: 44px; }
.phone-disc-container.spinning { animation: spinDisc 8s linear infinite; }
@keyframes spinDisc { 100% { transform: rotate(360deg); } }

.phone-track-info { text-align: center; width: 100%; }
.phone-track-title {
    color: var(--on-surface);
    font-size: 15px; font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.phone-track-artist {
    color: var(--primary);
    font-size: 11px; font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.05em;
}
.phone-waveform {
    width: 100%; height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 0 10px;
}
.phone-waveform-bar {
    flex: 1; height: 4px;
    background: rgba(123, 191, 222, 0.15);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.phone-disc-container.spinning ~ .phone-waveform .phone-waveform-bar {
    animation: wavePulsePhone 1.2s infinite ease-in-out;
}
.phone-waveform-bar:nth-child(odd)  { animation-duration: 0.8s; }
.phone-waveform-bar:nth-child(3n)   { animation-duration: 1.4s; }
.phone-waveform-bar:nth-child(5n)   { animation-duration: 1.1s; }
@keyframes wavePulsePhone {
    0%, 100% { height: 5px;  background: rgba(123, 191, 222, 0.3); }
    50%       { height: 30px; background: var(--primary); }
}

.phone-progress-bar { width: 100%; }
.phone-slider {
    width: 100%; height: 3px;
    border-radius: 1px;
    background: #2a2218;
    position: relative;
}
.phone-slider-fill {
    height: 100%;
    background: var(--secondary);
    width: 48%;
    border-radius: 1px;
    position: relative;
}
.phone-slider-fill::after {
    content: '';
    position: absolute;
    right: -5px; top: -4px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--tertiary);
    box-shadow: 0 0 8px rgba(184, 145, 59, 0.6);
}
.phone-time {
    display: flex;
    justify-content: space-between;
    color: var(--on-surface-variant);
    font-size: 10px; font-weight: 600;
    margin-top: 6px;
}
.phone-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 8px;
}
.phone-btn-mini {
    color: var(--on-surface-variant);
    font-size: 18px; cursor: pointer;
    transition: color 0.2s ease;
}
.phone-btn-mini:hover { color: var(--secondary); }
.phone-btn-main {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--on-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(184, 145, 59, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone-btn-main span { font-size: 26px; }
.phone-btn-main:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(184, 145, 59, 0.65);
}

/* ══════════════════════════════════════════════════════════════
   SCREENSHOTS CAROUSEL
══════════════════════════════════════════════════════════════ */
.screenshots-carousel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .screenshots-carousel-layout { grid-template-columns: 1fr 340px; }
}
.screenshots-chip {
    background: rgba(123, 191, 222, 0.08);
    color: var(--primary);
    border: 1px solid var(--outline);
}
.screenshots-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}
.screenshots-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 290px;
    border-radius: 22px;
}
.screenshots-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.screenshots-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}
.screenshots-device-frame {
    width: 270px; height: 540px;
    border-radius: 22px;
    overflow: hidden;
    border: 8px solid var(--outline);
    box-shadow: none;
}
.screenshots-nav-button {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--surface-container-high);
    border: 1px solid var(--outline);
    color: var(--on-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}
.screenshots-nav-button:hover {
    background: var(--primary);
    color: var(--on-primary);
    transform: scale(1.1);
    box-shadow: none;
    border-color: transparent;
}

/* Mobile responsive fix for carousel */
@media (max-width: 768px) {
    .screenshots-stage {
        gap: 0;
    }
    .screenshots-nav-button {
        position: absolute;
        width: 40px; height: 40px;
        background: rgba(42, 39, 32, 0.9);
        backdrop-filter: blur(4px);
    }
    #screenshots-prev { left: -5px; }
    #screenshots-next { right: -5px; }
    .screenshots-viewport {
        max-width: 260px;
    }
    .screenshots-device-frame {
        width: 260px;
        height: 520px;
    }
    .phone-frame {
        max-width: 260px;
        height: 520px;
    }
}
.screenshots-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.screenshots-indicators { display: flex; gap: 0.6rem; }
.screenshots-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--outline-variant);
    cursor: pointer;
    transition: all 0.3s ease;
}
.screenshots-indicator.is-active {
    width: 28px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: none;
}
.screenshots-preview-rail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.screenshots-preview-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 2px;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}
.screenshots-preview-card:hover,
.screenshots-preview-card.is-active {
    background: var(--surface-container-high);
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: -3px 0 0 0 var(--primary);
}
.screenshots-preview-thumb {
    width: 55px; height: 95px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--outline-variant);
}
.screenshots-preview-card.is-active .screenshots-preview-thumb {
    border-color: var(--secondary);
}
/* Accordion arrow */
#screenshots-icon.rotated { transform: rotate(180deg); }
#screenshots-icon { transition: transform 0.3s ease; }

/* ══════════════════════════════════════════════════════════════
   VERSION CHIPS & FOOTER CHIPS
══════════════════════════════════════════════════════════════ */
.version-chip {
    padding: 0.35rem 1rem;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    border: 1px solid var(--outline-variant);
}
.version-chip--stable {
    background: rgba(184, 145, 59, 0.1);
    color: var(--tertiary);
    border-color: var(--outline);
}
.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--surface-container-low);
    color: var(--on-surface-variant);
    border: 1px solid var(--outline-variant);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.03em;
}
.footer-chip:hover {
    background: var(--surface-container);
    color: var(--tertiary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 145, 59, 0.18);
}

/* ══════════════════════════════════════════════════════════════
   LOADING INDICATORS
══════════════════════════════════════════════════════════════ */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
}
.circular-progress {
    width: 38px; height: 38px;
    border: 3px solid var(--outline-variant);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Toast Notification */
.download-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--surface-container-highest);
    border: 1px solid var(--secondary);
    border-left: 3px solid var(--secondary);
    color: var(--on-surface);
    padding: 1rem 2rem;
    border-radius: 2px;
    box-shadow: var(--shadow-glow), var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.download-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   FONT UTILITY
══════════════════════════════════════════════════════════════ */
.font-accent { font-family: var(--font-accent); }

/* ══════════════════════════════════════════════════════════════
   GLOBAL BUTTON OVERRIDE — All pill buttons become angular
══════════════════════════════════════════════════════════════ */
.rounded-full { border-radius: 3px !important; }

/* Re-allow truly circular elements */
.phone-disc-container,
.phone-btn-main,
.phone-disc-cover,
.screenshots-nav-button,
.dialog-icon-btn,
.circular-progress {
    border-radius: 50% !important;
}

/* ══════════════════════════════════════════════════════════════
   PRIMARY (Download) BUTTONS — Steel Blue
══════════════════════════════════════════════════════════════ */
a.bg-primary,
button.bg-primary,
#hero-download-btn,
#nav-download-btn,
#windows-download-btn,
#android-download-btn {
    background: var(--primary) !important;
    color: #04090d !important;
    border: 1px solid rgba(123, 191, 222, 0.5) !important;
    font-family: var(--font-heading) !important;
    letter-spacing: 0.12em !important;
    box-shadow: none !important;
}
a.bg-primary:hover,
#hero-download-btn:hover,
#nav-download-btn:hover,
#windows-download-btn:hover,
#android-download-btn:hover {
    background: #5EA8CF !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════
   NAV LINK HOVER
══════════════════════════════════════════════════════════════ */
nav a:not(.no-underline):hover {
    color: var(--tertiary) !important;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADING STYLE
══════════════════════════════════════════════════════════════ */
/* Section subtitle underline accent */
h2.font-heading + p {
    position: relative;
}

/* ══════════════════════════════════════════════════════════════
   STEAMPUNK BRASS RULE (divider)
══════════════════════════════════════════════════════════════ */
.steampunk-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--outline);
}
.steampunk-divider::before,
.steampunk-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

/* ══════════════════════════════════════════════════════════════
   COMMUNITY DRIVEN SECTION — open source card
══════════════════════════════════════════════════════════════ */
.glass-card .border-outline-variant {
    border-color: var(--outline) !important;
}

/* ══════════════════════════════════════════════════════════════
   CHANGELOG / VERSIONS MARKDOWN STYLES
══════════════════════════════════════════════════════════════ */
#changelog-content h1,
#changelog-content h2,
#changelog-content h3 {
    color: var(--tertiary);
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--outline-variant);
}
#changelog-content li {
    color: var(--on-surface-variant);
    padding: 0.2rem 0;
}
#changelog-content li::marker { color: var(--secondary); }
#changelog-content code {
    background: var(--surface-container-high);
    color: var(--primary);
    padding: 0.1em 0.4em;
    border-radius: 2px;
    font-size: 0.85em;
}

/* ══════════════════════════════════════════════════════════════
   GEAR SPIN ANIMATION (decorative)
══════════════════════════════════════════════════════════════ */
@keyframes gearSpin { 100% { transform: rotate(360deg); } }
.gear-accent {
    display: inline-block;
    animation: gearSpin 10s linear infinite;
    color: var(--secondary);
    opacity: 0.6;
}
