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

:root {
    --night-950: #060608;
    --night-900: #0d0d14;
    --night-800: #13131f;
    --night-700: #1a1a2e;
    --night-600: #252540;
    --ember: #ff6b35;
    --ember-dim: #c44d1e;
    --ember-glow: #ff8c5a;
    --mist: #a8a8c0;
    --mist-dim: #6b6b85;
    --mist-bright: #d4d4e8;
    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--night-950);
    color: var(--mist-bright);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--ember);
    color: var(--night-950);
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--night-600);
    border-radius: 2px;
}

/* ── NOISE TEXTURE ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── AMBIENT GLOWS ── */
.glow-top {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(
        ellipse,
        rgba(255, 107, 53, 0.08) 0%,
        transparent 65%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.glow-bottom-right {
    position: fixed;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        ellipse,
        rgba(107, 90, 255, 0.05) 0%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(6, 6, 8, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-logo .dot {
    color: var(--mist-bright);
    font-size: 18px;
    animation: flicker 4s ease-in-out infinite;
}
.nav-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--mist-bright);
    letter-spacing: -0.02em;
}

.nav-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist-dim);
    tabular-nums: auto;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ember);
    border: 1px solid rgba(255, 107, 53, 0.4);
    padding: 7px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
}
.nav-cta:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--ember);
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--mist-bright);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero-title .accent {
    color: var(--ember);
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--mist);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
}

/* ── EMAIL FORM ── */
.email-form-wrap {
    width: 100%;
    max-width: 440px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.65s forwards;
}

.email-form {
    display: flex;
    gap: 8px;
    background: var(--night-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px 6px 6px 20px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.email-form:focus-within {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.06);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--mist-bright);
    min-width: 0;
    padding: 20px;
}
.email-input::placeholder {
    color: var(--mist-dim);
}

.email-btn {
    flex-shrink: 0;
    background: var(--ember);
    color: var(--night-950);
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}
.email-btn:hover {
    background: var(--ember-glow);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.email-btn:active {
    transform: scale(0.97);
}

.form-note {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--mist-dim);
    margin-top: 12px;
    opacity: 0.6;
}

.success-msg {
    display: none;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ember);
    margin-top: 12px;
}

/* ── SOCIAL PROOF ── */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.8s forwards;
}
.proof-avatars {
    display: flex;
}
.proof-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--night-700);
    border: 2px solid var(--night-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--mist);
    margin-left: -8px;
}
.proof-avatar:first-child {
    margin-left: 0;
}
.proof-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist-dim);
}
.proof-text strong {
    color: var(--mist-bright);
    font-weight: 500;
}

/* ── MOCK FEED PREVIEW ── */

/* ===== PRODUCT HUNT NOTICE ===== */
.ph {
    margin-top: 18px;
    font-size: 13px;
    color: #ff7a45;
    opacity: 0.9;
}
.explainer {
    margin-top: 36px;
    max-width: 520px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 14, 20, 0.7);
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}
.explainer h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
.explainer p {
    font-size: 14px;
    color: #a7a7ba;
}

/* ── FEATURES SECTION ── */
.features-section {
    position: relative;
    z-index: 1;
    padding: 0 24px 120px;
    max-width: 960px;
    margin: 0 auto;
}

.features-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--mist-bright);
    margin-bottom: 16px;
}
.features-sub {
    text-align: center;
    font-size: 15px;
    color: var(--mist-dim);
    font-weight: 300;
    margin-bottom: 64px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(13, 13, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 28px;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 16px;
}
.feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--mist-bright);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 13px;
    color: var(--mist-dim);
    line-height: 1.65;
    font-weight: 300;
}

/* ── QUOTE SECTION ── */
.quote-section {
    position: relative;
    z-index: 1;
    padding: 0 24px 120px;
    text-align: center;
}

.big-quote {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 3rem);
    letter-spacing: -0.025em;
    color: var(--mist-bright);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.2;
}
.big-quote em {
    font-style: italic;
    color: var(--ember);
    font-weight: 700;
}

.quote-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist-dim);
    opacity: 0.5;
    letter-spacing: 0.08em;
}

/* ── FINAL CTA ── */
.final-cta {
    position: relative;
    z-index: 1;
    padding: 0 24px 80px;
    text-align: center;
}

.final-cta-box {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(13, 13, 20, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.final-cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 53, 0.4),
        transparent
    );
}

.final-cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    color: var(--mist-bright);
    margin-bottom: 12px;
}
.final-cta-sub {
    font-size: 14px;
    color: var(--mist-dim);
    font-weight: 300;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--mist-dim);
    letter-spacing: -0.02em;
}
.footer-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--mist-dim);
    opacity: 0.4;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    nav {
        padding: 16px 20px;
    }
    .nav-time {
        display: none;
    }
    .hero {
        padding: 100px 20px 60px;
    }
    .features-section,
    .preview-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .final-cta-box {
        padding: 36px 24px;
    }
    footer {
        padding: 24px 20px;
    }
    .email-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
    }
    .email-btn {
        border-radius: 12px;
        padding: 12px;
    }
}
