/* ─── The Daily DXY — Stylesheet ─── */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --green: #10b981;
    --gold: #f59e0b;
    --border: #1e293b;
    --radius: 12px;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo { font-size: 1.5rem; }

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 60%),
        var(--bg-primary);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #8b5cf6, var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ─── Signup Form ─── */
.signup-container {
    width: 100%;
    max-width: 480px;
}

.signup-form {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.signup-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.signup-form input::placeholder {
    color: var(--text-secondary);
}

.signup-form button {
    padding: 1rem 1.75rem;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.signup-form button:hover {
    background: #2563eb;
}

.signup-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Flash Messages */
.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent);
}

/* ─── Features ─── */
.features {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features h2, .how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

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

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── How It Works ─── */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Sample CTA ─── */
.sample-cta {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

/* ─── Archive ─── */
.archive-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.archive-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.archive-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.archive-item:hover {
    border-color: var(--accent);
}

.archive-arrow {
    color: var(--text-secondary);
}

.archive-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.archive-empty p { margin-bottom: 1.5rem; }

/* ─── Unsubscribe ─── */
.unsub-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.unsub-container h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.unsub-container p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.unsub-container a {
    color: var(--accent);
}

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

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        padding: 1rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        padding: 1rem;
    }
}
