/* Geist variable font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-bg: #010409;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-dim: rgba(255, 255, 255, 0.6);
    --color-link: #6ca3ff;
    --color-link-hover: #8bb8ff;

    /* Typography */
    --font-body: "Geist", sans-serif;
    --font-title: "Geist", sans-serif;
    --font-size-base: 1rem;
    --font-size-hero: 1.25rem;
    --font-size-title: 0.95rem;
    --letter-spacing-title: 0.12em;
    --line-height: 1.6;

    /* Layout */
    --page-max-width: 800px;

    /* Spacing */
    --spacing-base: 1rem;
    --spacing-sm: 0.75rem;
    --spacing-xs: 0.25rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: var(--line-height);
    margin: 0;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

h2,
h3 {
    font-weight: normal;
}

h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-family: var(--font-title);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 0.35rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: var(--spacing-base);
    opacity: 0.9;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-medium);
}

a:hover {
    color: var(--color-link-hover);
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 100;
    pointer-events: none;
}

.top-nav > * {
    pointer-events: auto;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.site-title {
    font-family: var(--font-title);
    font-size: var(--font-size-title);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-title);
    margin: 0;
    color: var(--color-text);
    text-transform: uppercase;
    opacity: 0.85;
}

.nav-link {
    color: var(--color-text);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity var(--transition-medium);
    font-size: 0.875rem;
}

.nav-link:hover {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

/* Static stars background */
.static-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.static-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle linear infinite;
}

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

.hero-content {
    max-width: var(--page-max-width);

    text-align: center;

    position: relative;

    z-index: 2;
}

/* Loader (hero status pre-loader) */
.loader {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
    border-radius: 50%;
    perspective: 800px;
    position: relative;
}

.inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one 1s linear infinite;
    border-bottom: 3px solid #efeffa;
}

.inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two 1s linear infinite;
    border-right: 3px solid #efeffa;
}

.inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 1s linear infinite;
    border-top: 3px solid #efeffa;
}

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.hero-status {
    font-size: var(--font-size-base);

    color: var(--color-text-muted);

    margin-bottom: var(--spacing-md);
}

.hero-cta {
    font-size: var(--font-size-base);

    color: var(--color-text-muted);

    margin-top: var(--spacing-sm);
}

/* static text can remain as fallback – kept same color */
.hero-cta-static {
    display: inline-block;
}

/* the animated code-style CTA */
.hero-cta-code {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}

/* Optional: subtle caret/cursor for typewriter */
.hero-cta-code::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.05em;
    margin-left: 2px;
    background: rgba(255, 255, 255, 0.8);
    vertical-align: -0.1em;
    opacity: 0;
    animation: hero-caret-blink 1s steps(1) infinite;
}

/* We'll let JS toggle a class when typing is done */
.hero-cta-code.hero-cta-code--typing::after {
    opacity: 1;
}

@keyframes hero-caret-blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.hero-link--tachyon {
    position: relative;

    color: var(--color-link);

    text-shadow:
        0 0 8px rgba(89, 177, 247, 0.9),
        0 0 16px rgba(89, 177, 247, 0.8),
        0 0 32px rgba(89, 177, 247, 0.7),
        0 0 48px rgba(89, 177, 247, 0.6),
        0 0 64px rgba(89, 177, 247, 0.5);
    animation: tachyon-glow 5000ms infinite;
}

/* Enhance on hover but keep it subtle */

.hero-link--tachyon:hover {
    animation-play-state: paused;
    text-shadow:
        0 0 10px rgba(89, 177, 247, 1),
        0 0 22px rgba(89, 177, 247, 0.9),
        0 0 40px rgba(89, 177, 247, 0.8),
        0 0 64px rgba(89, 177, 247, 0.7),
        0 0 90px rgba(89, 177, 247, 0.6);
}

@keyframes tachyon-glow {
    0% {
        text-shadow:
            0 0 6px rgba(89, 177, 247, 0.6),
            0 0 14px rgba(89, 177, 247, 0.5),
            0 0 26px rgba(89, 177, 247, 0.4),
            0 0 40px rgba(89, 177, 247, 0.35),
            0 0 60px rgba(89, 177, 247, 0.3);
    }
    50% {
        text-shadow:
            0 0 10px rgba(89, 177, 247, 1),
            0 0 24px rgba(89, 177, 247, 0.9),
            0 0 40px rgba(89, 177, 247, 0.8),
            0 0 70px rgba(89, 177, 247, 0.75),
            0 0 110px rgba(89, 177, 247, 0.7);
    }
    100% {
        text-shadow:
            0 0 6px rgba(89, 177, 247, 0.6),
            0 0 14px rgba(89, 177, 247, 0.5),
            0 0 26px rgba(89, 177, 247, 0.4),
            0 0 40px rgba(89, 177, 247, 0.35),
            0 0 60px rgba(89, 177, 247, 0.3);
    }
}

.hero-text {
    font-size: var(--font-size-hero);
    line-height: var(--line-height);
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
}

.hero-link {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.hero-link:hover {
    color: var(--color-link-hover);
}

.hero-cta {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.token-tachyon,
.token-workflow,
.token-outcome,
.token-colon {
    color: #62cdfd; /* tachyonspec, workflow, outcome, : */
}

.token-control {
    color: #dbc772;
}

.token-string,
.token-spec-mode {
    color: #bc784e; /* "agentic_coding", "specification_first" */
}

.token-paren {
    color: #ffbb11; /* ( and ) */
}

.token-brace {
    color: #ac6db6; /* { and } */
}

/* ===== ABOUT SECTION ===== */

.about-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 4rem 1.5rem 3rem;
    background:
        radial-gradient(
            circle at top,
            rgba(108, 163, 255, 0.08),
            transparent 60%
        ),
        var(--color-bg);
}

.about-inner {
    width: 100%;
    max-width: var(--page-max-width);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 0.25rem;
}

.about-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    text-transform: none;
    margin-bottom: 1rem;
}

.about-block {
    margin-bottom: 1rem;
}

.about-block p {
    font-size: 0.95rem;
    line-height: var(--line-height);
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-heading {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-nav {
        padding: 1.5rem;
    }

    .hero-section {
        padding: var(--spacing-base);
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 3rem 1.25rem 2.5rem;
    }

    .about-title {
        font-size: 1.4rem;
    }
}
