:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #8899aa;
    --accent: #007AFF;
    --accent-light: #3395ff;
    --font-display: 'Syncopate', sans-serif;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor planned for JS, or fallback */
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    box-shadow: 0 0 10px white, 0 0 20px var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Nav */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.5));
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 0;
    transition: all 0.5s var(--easing);
    overflow: hidden;
}

.btn-primary:hover {
    background: white;
    color: black;
}

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 8vw;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
}

.hero-title .line {
    display: block;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 2px white;
    position: relative;
}

.hero-subtitle {
    margin-top: 3rem;
    max-width: 500px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.waitlist-container {
    margin-top: 3rem;
    width: 100%;
    max-width: 400px;
}

.waitlist-form {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.waitlist-form:focus-within {
    border-color: var(--accent);
}

.waitlist-input {
    background: transparent;
    border: none;
    padding: 1rem 0;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.waitlist-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 0 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
    /* Keep custom cursor */
    transition: all 0.3s ease;
}

.waitlist-btn:hover {
    background: var(--accent);
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 50px;
    height: 1px;
    background: white;
}

/* Manifesto */
.manifesto-section {
    padding: 15vh 5%;
}

.editorial-heading {
    font-family: var(--font-serif);
    font-size: 4vw;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

/* Tech Grid */
.tech-section {
    padding: 10vh 5%;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.tech-card {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    position: relative;
    transition: transform 0.3s;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.card-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.tech-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    margin-top: 10vh;
    padding-bottom: 3rem;
    overflow: hidden;
}

.footer-marquee {
    font-family: var(--font-display);
    font-size: 8rem;
    white-space: nowrap;
    opacity: 0.05;
    line-height: 1;
    margin-bottom: 4rem;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.footer-content {
    display: flex;
    padding: 0 5%;
    gap: 5rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.footer-col a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col.right {
    margin-left: auto;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 12vw;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}