:root {
    --bg-dark: #060b11;
    --bg-deep: #09131c;
    --primary-cyan: #00f0ff;
    --primary-green: #00ff88;
    --accent-gold: #ffcc00;
    --accent-pink: #ff0077;
    --text-light: #e2f1f8;
    --text-muted: #8ba2b5;
    --glass-bg: rgba(9, 21, 31, 0.75);
    --glass-border: rgba(0, 255, 136, 0.2);
    --font-cyber: 'Orbitron', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 45%);
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, .cyber-font {
    font-family: var(--font-cyber);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.7), 0 0 20px rgba(0, 240, 255, 0.5);
    color: #fff;
}

.gold-glow {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
    color: var(--accent-gold);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.15);
}

.btn-cyber {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 240, 255, 0.2));
    border: 1px solid var(--primary-green);
    color: #fff;
    padding: 0.85rem 2rem;
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-cyber:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    color: #060b11;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 11, 17, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.cyber-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-green);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ai-narrator-bar {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(10, 25, 38, 0.9);
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 0.75rem;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-cyan);
}

.ai-controls {
    display: flex;
    gap: 0.75rem;
}

.btn-ai {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ai:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

.ai-body {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: #0d2230;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ai-text-box {
    flex-grow: 1;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-green);
    min-height: 50px;
}

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--primary-green);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.visual-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.visual-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cyber-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: rgba(6, 11, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-cyan);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--primary-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
}

.bio-stats {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.stat-label {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
}

.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.story-card {
    margin-bottom: 4rem;
    position: relative;
}

.story-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.story-step {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    font-family: var(--font-cyber);
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.story-title {
    font-size: 1.5rem;
    color: #fff;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.story-image-full {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.story-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    background: #03070b;
    border-top: 1px solid rgba(0, 255, 136, 0.15);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.safecreative-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100%, 440px);
    padding: 1rem 1.25rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-light);
    background: linear-gradient(120deg, rgba(0, 255, 136, 0.1), rgba(0, 240, 255, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.safecreative-badge:hover,
.safecreative-badge:focus-visible {
    border-color: var(--primary-green);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.25);
    transform: translateY(-2px);
}

.safecreative-mark {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
    box-shadow: inset 0 0 12px rgba(255, 204, 0, 0.12), 0 0 12px rgba(255, 204, 0, 0.12);
}

.safecreative-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.safecreative-label,
.safecreative-id {
    color: var(--text-muted);
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.safecreative-label {
    color: var(--primary-green);
}

.safecreative-title {
    font-family: var(--font-cyber);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.safecreative-arrow {
    color: var(--primary-cyan);
    font-size: 1.25rem;
}

.footer-credits {
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.6;
}

#genesis {
    scroll-margin-top: 110px;
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 99;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0.6rem;
    color: var(--primary-cyan);
    background: rgba(6, 11, 17, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2), inset 0 0 14px rgba(0, 255, 136, 0.08);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    color: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.4), inset 0 0 14px rgba(0, 255, 136, 0.12);
    outline: none;
}

.back-to-top svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.back-to-top svg circle {
    fill: var(--primary-green);
    stroke: none;
}

@media (max-width: 900px) {
    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
}

@media (max-width: 600px) {
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }
}