:root {
    --bg-deep: #0c0e14;
    --bg-surface: #1a1d26;
    --border: #4a4f5c;
    --text-primary: #c8ced8;
    --text-display: #e8ecf2;
    --accent-green: #7af0c4;
    --accent-copper: #d4956a;
    --glow: rgba(122, 240, 196, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    font-variant-ligatures: none;
    font-feature-settings: "tnum";
}

/* Cursor Navigation */
#cursor-nav {
    position: fixed;
    right: 3vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-dot.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 8px var(--glow);
}

.nav-dot:hover {
    border-color: var(--accent-copper);
}

/* Sections */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 12vh 15vw;
}

/* Opening */
#opening {
    justify-content: flex-start;
}

.opening-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.opening-content {
    position: relative;
    z-index: 2;
    padding-top: 15vh;
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    color: var(--text-display);
    letter-spacing: -0.02em;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.wordmark.visible {
    opacity: 1;
}

.tagline {
    margin-top: 2rem;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
}

.cursor {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
}

.blink-forever {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* SVG Curves */
.curve-bg, .curve-fg {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 1.5px;
    stroke-linecap: round;
}

.curve-bg {
    opacity: 0.2;
}

.curve-fg {
    opacity: 0.5;
}

.section-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dot {
    fill: var(--accent-green);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dot.visible {
    opacity: 0.6;
}

/* Path draw animation */
.curve-bg, .curve-fg {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.curve-bg.drawn {
    stroke-dashoffset: 0;
    transition-duration: 3s;
}

.curve-fg.drawn {
    stroke-dashoffset: 0;
    transition-duration: 1.8s;
}

/* SVG hover */
.curve-bg:hover, .curve-fg:hover {
    stroke-width: 3px;
    filter: drop-shadow(0 0 8px rgba(122, 240, 196, 0.3));
    cursor: pointer;
}

/* Section content */
.section-content {
    position: relative;
    z-index: 2;
    max-width: 48ch;
}

.content-left {
    margin-right: auto;
}

.content-right {
    margin-left: auto;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
    color: var(--text-display);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-text {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-prompt {
    color: var(--border);
    font-family: 'Space Mono', monospace;
}

.terminal-output {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent-green);
    opacity: 0.8;
}

/* Footer */
.footer-links {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-links.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-copper);
}

/* Chrome reflection bands */
.chrome-band {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(200,206,216,0.03), transparent);
    background-size: 50% 100%;
    animation: chrome-sweep 12s linear infinite;
}

.chrome-band-2 {
    animation-delay: -6s;
    opacity: 0.5;
}

@keyframes chrome-sweep {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}
