/* ===================================================
   Horizon — Coming Soon
   Design system: solid colors, no gradients
   Palette: Deep charcoal + warm amber accent
   =================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors — all solid, no gradients */
    --bg: #0f0f12;
    --bg-elevated: #18181d;
    --bg-card: #1c1c23;
    --border: #2a2a33;
    --border-hover: #3a3a47;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #e8b339;
    --accent-hover: #f0c14b;
    --accent-soft: rgba(232, 179, 57, 0.12);
    --success: #4ade80;
    --error: #f87171;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Film grain overlay for texture */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* Particle network canvas */
.particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* --- Layout --- */
.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    animation: fadeInDown 0.8s var(--ease-out) both;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__logo {
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

.nav__name {
    font-family: var(--font-display);
}

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: var(--text);
}

/* --- Hero --- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0 4rem;
}

.hero__inner {
    max-width: 680px;
    width: 100%;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background-color: var(--bg-elevated);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.4);
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

/* Typewriter effect */
.typewriter {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
    border-right: 3px solid var(--accent);
    padding-right: 4px;
    display: inline-block;
    min-height: 1.1em;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both, caretBlink 1s step-end infinite;
}

.typewriter.is-deleting {
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both, caretBlink 0.5s step-end infinite;
}

@keyframes caretBlink {
    50% { border-color: transparent; }
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* --- Interactive Roadmap --- */
.roadmap {
    padding: 1rem 0 4rem;
    text-align: center;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.roadmap__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.roadmap__subtitle {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.roadmap__track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.roadmap__line {
    position: absolute;
    top: 14px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--border);
    z-index: 0;
}

.roadmap__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--accent);
    transition: width 0.5s var(--ease-out);
}

.roadmap__track[data-progress="3"] .roadmap__line::after { width: 25%; }
.roadmap__track[data-progress="2"] .roadmap__line::after { width: 50%; }
.roadmap__track[data-progress="1"] .roadmap__line::after { width: 75%; }
.roadmap__track[data-progress="0"] .roadmap__line::after { width: 100%; }

.roadmap__node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: transform 0.2s var(--ease);
}

.roadmap__node:hover {
    transform: translateY(-2px);
}

.roadmap__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg);
    border: 2px solid var(--border);
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.roadmap__node.is-active .roadmap__dot {
    border-color: var(--accent);
    background-color: var(--accent);
}

.roadmap__node.is-current .roadmap__dot {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.roadmap__node:hover .roadmap__dot,
.roadmap__node:focus-visible .roadmap__dot {
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.roadmap__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.3s var(--ease);
}

.roadmap__node.is-active .roadmap__label,
.roadmap__node:hover .roadmap__label,
.roadmap__node:focus-visible .roadmap__label {
    color: var(--text);
}

.roadmap__detail {
    max-width: 520px;
    margin: 0 auto;
    min-height: 140px;
}

.roadmap__detail-content {
    padding: 1.75rem 2rem;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    animation: fadeInUp 0.4s var(--ease-out) both;
}

.roadmap__detail-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background-color: var(--bg-card);
    margin-bottom: 1rem;
}

.roadmap__detail-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.roadmap__detail-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Subscribe Form --- */
.subscribe {
    max-width: 460px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.subscribe__field {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    transition: border-color 0.3s var(--ease);
}

.subscribe__field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.subscribe__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    min-width: 0;
}

.subscribe__input::placeholder {
    color: var(--text-dim);
}

.subscribe__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 100px;
    background-color: var(--accent);
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), transform 0.1s var(--ease);
}

.subscribe__btn:hover {
    background-color: var(--accent-hover);
}

.subscribe__btn:active {
    transform: scale(0.97);
}

.subscribe__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe__btn-icon {
    transition: transform 0.2s var(--ease);
}

.subscribe__btn:hover .subscribe__btn-icon {
    transform: translateX(3px);
}

.subscribe__message {
    margin-top: 1rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
    transition: opacity 0.2s var(--ease);
}

.subscribe__message.success {
    color: var(--success);
}

.subscribe__message.error {
    color: var(--error);
}

.hero__trust {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero__trust strong {
    color: var(--text-muted);
    font-weight: 600;
}

/* --- About Section --- */
.about {
    padding: 2rem 0 5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s both;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about__card {
    padding: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.about__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.about__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.about__card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.about__card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer__logo {
    color: var(--accent);
    font-size: 1.25rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer__social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-soft);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page {
        padding: 0 1.25rem;
    }

    .nav {
        padding: 1.25rem 0;
    }

    .nav__links {
        gap: 1.25rem;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .roadmap__track {
        padding: 0 0.5rem;
    }

    .roadmap__label {
        font-size: 0.7rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about__card {
        padding: 1.5rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .roadmap__track {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }

    .roadmap__line {
        display: none;
    }

    .roadmap__node {
        flex-direction: row;
        gap: 0.75rem;
    }

    .roadmap__label {
        font-size: 0.85rem;
    }

    .subscribe__field {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .subscribe__input {
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .subscribe__btn {
        justify-content: center;
        border-radius: var(--radius-sm);
        padding: 0.875rem;
    }

    .nav__links a {
        font-size: 0.85rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Focus Visibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input:focus-visible {
    outline: none;
}
