/* ============================================
   Savyn – Obsidian & Glass
   ============================================ */

:root {
    --bg: #050505;
    --text: #EDEDED;
    --text-dim: #888888;
    --accent: #D4AF37;
    /* Muted Gold */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);

    --serif: 'Fraunces', serif;
    --sans: 'Inter', sans-serif;

    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

#network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

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

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================================
   Navigation - Pill
   ============================================ */

.nav-pill {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content by default */
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 100px;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    /* Fix alignment */
    display: flex;
    align-items: center;
}

.nav-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
}

.nav-btn {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    /* Fix alignment */
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--accent);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-out) forwards;
}

.line:nth-child(1) {
    animation-delay: 0.2s;
}

.line:nth-child(2) {
    animation-delay: 0.4s;
}

.line:nth-child(3) {
    animation-delay: 0.6s;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* ============================================
   Manifesto
   ============================================ */

.manifesto {
    max-width: 800px;
    margin: 0 auto;
    padding: 10vh 2rem;
}

.text-block {
    margin-bottom: 30vh;
    /* Deep spacing for scroll flow */
    opacity: 0.2;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out);
}

.text-block.active {
    opacity: 1;
    transform: translateY(0);
}

.text-block p {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.text-block.highlight p {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--accent);
}

.text-block em {
    font-style: italic;
    color: #fff;
}

/* ============================================
   Privacy Pledge
   ============================================ */

.privacy-pledge {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 1) 0%, var(--bg) 70%);
}

.pledge-card {
    text-align: center;
    max-width: 600px;
}

.pledge-card h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pledge-card p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.signature {
    font-family: var(--serif);
    font-style: italic;
    margin-top: 2rem;
    color: var(--accent) !important;
}

/* ============================================
   Footer & Form
   ============================================ */

.footer-cta {
    text-align: center;
    padding: 15vh 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-cta p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.email-form {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.email-form:focus-within {
    border-color: var(--accent);
}

.email-form input {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    color: #fff;
    font-family: var(--sans);
    font-size: 1rem;
    width: 250px;
    outline: none;
}

.email-form button {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.email-form button:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer a,
.footer span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

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

.dot {
    opacity: 0.3;
}

.copyright span {
    opacity: 0.5;
    font-size: 0.8rem;
}

/* ============================================
   Animations
   ============================================ */

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-pill {
        width: 90%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        /* Reduced padding */
    }

    .hero {
        padding: 0 1.5rem;
    }

    .manifesto {
        padding: 10vh 1.5rem;
    }

    .privacy-pledge {
        padding: 2rem 1.5rem;
    }

    .footer-cta {
        padding: 15vh 1.5rem;
    }

    .footer {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 11vw;
        /* Responsive size to prevent overflow */
        line-height: 1.1;
    }

    .text-block {
        margin-bottom: 15vh;
        /* Tighter spacing */
    }

    .text-block p {
        font-size: 6vw;
        /* Responsive size */
        line-height: 1.4;
    }

    .text-block.highlight p {
        font-size: 8vw;
        /* Responsive size */
    }

    .pledge-card h2 {
        font-size: 9vw;
        /* Responsive size */
    }

    .email-form {
        width: 100%;
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    .email-form input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        border-radius: 12px;
        font-size: 1rem;
        /* Larger input text */
        padding: 1rem;
    }

    .email-form button {
        width: 100%;
        border-radius: 12px;
        font-size: 1rem;
        /* Larger button text */
        padding: 1rem;
    }
}