/* Layout CSS - Layout, positioning, sections, panels */

.page-root {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    padding-top: 0; /* TEMP: Remove top padding since header is hidden */
}

/* Top nav bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 30;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none; /* TEMP: Header temporarily disabled */
}

.site-header.scrolled {
    background: rgba(4, 7, 12, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
    display: none; /* TEMP: Header temporarily disabled */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    opacity: 0.9;
    flex-shrink: 0;
}

.site-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.75;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    color: #f5f5f5;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin: 0 1.5rem;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.site-nav a:hover {
    opacity: 1;
}

.site-cta {
    border-radius: 999px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #f5f5f5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.site-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-changelog-btn {
    border-radius: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.15);
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-left: 16px;
}

.site-changelog-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.6);
    color: #ff8787;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Hero section */
.hero-main {
    padding: 0;
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.hero-inner > .hero-visual {
    margin-top: 0;
    padding-top: 0;
}

.hero-text {
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-kicker {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 16px;
    color: #f5f5f5;
}

.hero-heading {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    margin: 0 0 20px;
    color: #f5f5f5;
    font-weight: 700;
}

.hero-copy {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
    color: #f5f5f5;
    margin-bottom: 0;
}

/* Planet preview: takes up big visual area like Landio hero - positioned at top */
.hero-visual {
    display: flex;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    order: -1;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-planet-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    background: radial-gradient(circle at top, #101827 0%, #050910 55%, #010307 100%);
    box-shadow: none;
}

.hero-planet-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Removed object-fit: cover to prevent scaling issues */
}

/* Soft vignette over canvas */
.hero-planet-vignette {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    mix-blend-mode: soft-light;
    z-index: 1;
}

/* Dark gradient at bottom of planet container */
.hero-planet-bottom-gradient {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(5, 9, 16, 1.0) 0%, rgba(5, 9, 16, 0.8) 40%, rgba(5, 9, 16, 0.4) 70%, transparent 100%);
    z-index: 2;
}

/* Preloader bar */
.hero-preloader {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 12;
    overflow: hidden;
}

.hero-preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    background-size: 200% 100%;
    transition: width 0.3s ease;
    animation: preloader-shimmer 2s infinite;
}

.hero-preloader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@keyframes preloader-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll down indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.3s ease;
    opacity: 1;
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(-4px);
}

.hero-scroll-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-text {
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

.hero-scroll-arrow {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    animation: bounce-arrow 2s infinite;
    transition: transform 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-arrow {
    transform: translateY(4px);
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* Camera Animation Control */
.camera-animation-control {
    position: absolute;
    left: calc(25% - 60px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 20 !important;
    pointer-events: auto;
}

.camera-anim-dot {
    position: relative;
    width: 12px;
    height: 12px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.camera-anim-dot:hover {
    transform: scale(1.3);
}

.camera-anim-dot-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: rgba(180, 180, 180, 0.8) !important;
    border: 2px solid rgba(180, 180, 180, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
}

.camera-anim-dot.active .camera-anim-dot-inner {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

.camera-anim-dot.completed .camera-anim-dot-inner {
    background: rgba(200, 200, 200, 0.9) !important;
    border-color: rgba(200, 200, 200, 0.9) !important;
}

.camera-anim-line {
    position: relative;
    width: 2px !important;
    height: 60px;
    background: rgba(180, 180, 180, 0.6) !important;
    margin: 0;
    overflow: hidden;
    opacity: 1 !important;
}

.camera-anim-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: none;
}

.camera-anim-line.completed .camera-anim-line-progress {
    height: 100%;
}

.camera-label {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
    pointer-events: none;
    text-align: right;
    width: 70px;
    font-weight: 500;
    color: rgba(240, 240, 240, 0.9);
    margin-bottom: 8px;
}

.camera-icon {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    position: relative;
    flex-shrink: 0;
}

.camera-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 4px;
    height: 4px;
    border-radius: 1px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.camera-label-text {
    flex: 0 0 auto;
}

.camera-anim-dot:hover .camera-label,
.camera-anim-dot.active .camera-label {
    opacity: 0.8 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.camera-anim-dot.active .camera-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    opacity: 0.8 !important;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .camera-animation-control {
        left: 20px;
    }
    
    .camera-anim-dot::after {
        display: none;
    }
}

@media (max-width: 1200px) {
    .camera-animation-control {
        left: calc(20% - 60px);
    }
}

/* Hero Overlay Content */
.hero-overlay {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12% 0 8%;
    padding-left: calc(25%);
    z-index: 10;
    pointer-events: none;
}

.hero-overlay-content {
    max-width: 600px;
    pointer-events: auto;
}

.hero-overlay-logo {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-overlay-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.hero-overlay-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px 0;
    text-shadow: 
        2px 2px 0px rgba(220, 38, 38, 0.8),
        -2px -2px 0px rgba(220, 38, 38, 0.8),
        2px -2px 0px rgba(220, 38, 38, 0.8),
        -2px 2px 0px rgba(220, 38, 38, 0.8);
    line-height: 1.1;
}

.hero-overlay-description {
    font-size: 16px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-overlay-micro-line {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    margin-top: 6px;
    line-height: 1.35;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpSubtle 0.8s ease-out 0.4s forwards;
}

.hero-overlay-footnote {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.65;
}

.hero-overlay-info {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-overlay-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-overlay-info-item:nth-child(1) {
    animation-delay: 0.6s;
}

.hero-overlay-info-item:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-overlay-info-item:nth-child(3) {
    animation-delay: 0.8s;
}

.hero-overlay-info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.hero-overlay-info-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -8px;
}

.hero-overlay-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-overlay-cta-primary {
    padding: 14px 32px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: none;
}

.hero-overlay-cta-primary:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.hero-overlay-cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.hero-overlay-cta-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-overlay-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 10px;
    padding-left: 2px;
}

/* Responsive adjustments for overlay */
@media (max-width: 860px) {
    .hero-overlay {
        top: -60px;
        padding: 0 5%;
        justify-content: center;
    }
    
    .hero-overlay-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-overlay-logo {
        display: flex;
        justify-content: center;
    }
    
    .hero-overlay-info {
        justify-content: center;
        gap: 32px;
    }
    
    .hero-overlay-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-overlay-title {
        font-size: 36px;
    }
    
    .hero-overlay-info {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .hero-overlay-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-overlay-cta-primary,
    .hero-overlay-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive: stack on small screens */
@media (max-width: 860px) {
    .site-nav {
        display: none; /* keep it simple for now */
    }
    
    .hero-main {
        padding: 0;
    }
    
    .hero-visual {
        padding: 0;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    .hero-inner {
        gap: 32px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .hero-planet-container {
        max-width: 100%;
    }
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.features {
    max-width: 960px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* form */
.cta {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Particle Controls Panel (Left Side) */
.particle-controls-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 600px;
    max-height: calc(100vh - 160px + 400px);
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.particle-controls-panel h3,
.controls-panel h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.minimize-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.minimize-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.particle-controls-panel.minimized .panel-content,
.controls-panel.minimized .panel-content {
    display: none;
}

.particle-controls-panel.minimized .panel-header,
.controls-panel.minimized .panel-header {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.particle-controls-panel.minimized,
.controls-panel.minimized {
    max-height: auto;
    overflow: visible;
    padding: 1rem 1.5rem;
}

.minimize-btn.collapsed {
    transform: rotate(0deg);
}

.minimize-btn.expanded {
    transform: rotate(0deg);
}

.particle-controls-panel small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.7;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Controls Panel */
.controls-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 280px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.controls-panel h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.control-group {
    margin-bottom: 0.4rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.control-group label span:first-child {
    min-width: 80px;
    font-weight: 500;
}

.control-group .value {
    min-width: 50px;
    text-align: right;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.2rem 0.3rem;
}

/* Compact input styling */
.control-group input[type="number"] {
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
    height: auto;
}

/* Compact reset button */
.control-group .reset-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
    width: auto;
}

/* Section headers - more compact */
.control-group h3 {
    margin: 0 0 0.4rem 0 !important;
    font-size: 0.85rem !important;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.2;
}

/* Override inline h3 styles for compact spacing */
.control-group h3[style*="margin: 0 0 0.75rem"] {
    margin-bottom: 0.4rem !important;
}

/* Section divider spacing - override inline styles for compact layout */
.control-group[style*="margin-top: 1.5rem"] {
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
}

/* First section header without border */
.control-group[style*="margin-top: 1.5rem"]:not([style*="border-top"]) {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cta {
        flex-direction: column;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 3rem 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    .particle-controls-panel {
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .controls-panel {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .control-group label {
        flex-wrap: wrap;
    }
    
    .control-group input[type="range"] {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 2rem 1rem;
    }
}

/* Tab System */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -1px;
}

.tab-button:hover {
    color: var(--text-color);
    background: var(--bg-secondary);
    border-radius: 4px 4px 0 0;
}

.tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Site-wide footer */
.site-footer {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(245, 245, 245, 0.72);
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.site-footer.site-footer--overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    border-top: none;
    z-index: 13;
    pointer-events: auto;
}

/* Splash overlay: fade each section independently */
.site-footer.site-footer--overlay .site-footer-line,
.site-footer.site-footer--overlay .site-footer-links,
.site-footer.site-footer--overlay .site-footer-copyright {
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.site-footer.site-footer--overlay .site-footer-line:hover,
.site-footer.site-footer--overlay .site-footer-line:focus-within,
.site-footer.site-footer--overlay .site-footer-links:hover,
.site-footer.site-footer--overlay .site-footer-links:focus-within,
.site-footer.site-footer--overlay .site-footer-copyright:hover,
.site-footer.site-footer--overlay .site-footer-copyright:focus-within {
    opacity: 1;
}

.site-footer.site-footer--overlay .site-footer-inner {
    padding-top: 0;
    padding-bottom: 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.site-footer.site-footer--overlay .site-footer-links a {
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    justify-content: space-between;
}

.site-footer-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.site-footer-mark {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.9;
}

.site-footer-product {
    color: rgba(245, 245, 245, 0.8);
}

.site-footer-links {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    flex: 0 0 auto;
}

.site-footer-links a {
    color: rgba(245, 245, 245, 0.72);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer-links a:hover {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.site-footer-copyright {
    opacity: 0.75;
    white-space: nowrap;
}

/* Legal pages wrapper */
.legal-page {
    width: 100%;
    padding: 72px 24px 56px;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-back {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(245, 245, 245, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-back:hover {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.legal-title {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.96);
}

.legal-intro {
    margin: 0 0 18px;
    color: rgba(245, 245, 245, 0.82);
}

.legal-section {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.legal-section ul {
    margin: 0;
    padding-left: 18px;
}

.legal-section li {
    margin: 0 0 10px;
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
}

.legal-link {
    color: rgba(245, 245, 245, 0.86);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.legal-contact {
    margin: 22px 0 0;
    color: rgba(245, 245, 245, 0.85);
}

.legal-note {
    margin: 10px 0 0;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .site-footer-inner {
        padding: 16px 16px;
    }

    .legal-page {
        padding: 56px 16px 44px;
    }
}

