/* ========================================
   CO-KNIT — Coming Soon Landing Page
   ======================================== */

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

:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --grey: #888;
    --accent: #d4ff00;
    --font: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: default;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
}

/* ---- NAVBAR ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-icon {
    padding: 0.5rem;
    color: var(--grey);
    transition: color 0.3s;
}

.nav-icon:hover {
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- MOBILE MENU ---- */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color 0.3s;
}

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

/* ---- HERO ---- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent);
    border: 1px solid rgba(212, 255, 0, 0.3);
    padding: 0.4rem 1.2rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--grey);
    max-width: 460px;
    margin: 0 auto 3rem;
}

/* ---- WAITLIST ---- */

.waitlist-section {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.waitlist-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1rem;
}

.waitlist-form {
    margin-bottom: 1rem;
}

.input-wrapper {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 1rem 1.25rem;
    letter-spacing: 0.02em;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-submit:hover {
    background: #e6ff4d;
}

.btn-submit .btn-arrow {
    transition: transform 0.3s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(3px);
}

.waitlist-success {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.waitlist-success.show {
    display: block;
    animation: fadeUp 0.5s ease;
}

.waitlist-success.duplicate {
    color: var(--grey);
}

.waitlist-success.error {
    color: #ff4444;
}

.waitlist-count {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

/* ---- MARQUEE ---- */

.marquee {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.08);
}

.marquee-track span {
    flex-shrink: 0;
}

/* ---- FOOTER ---- */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 3rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--grey);
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

/* ---- ANIMATIONS ---- */

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrance animations */
.hero-tag,
.hero-title .title-line,
.hero-subtitle,
.waitlist-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-tag { animation-delay: 0.2s; }
.hero-title .title-line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .title-line:nth-child(2) { animation-delay: 0.55s; }
.hero-title .title-line:nth-child(3) { animation-delay: 0.7s; }
.hero-subtitle { animation-delay: 0.9s; }
.waitlist-section { animation-delay: 1.1s; }

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem 5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .btn-submit {
        justify-content: center;
        padding: 0.9rem;
    }

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

    .marquee {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }
}
