/* Spill The Tea — Landing Page */

:root {
    --primary: #E8832A;
    --primary-dark: #D4692A;
    --primary-light: #F5A623;
    --primary-glow: rgba(232, 131, 42, 0.15);
    --text: #2D2D2D;
    --text-muted: #6B7280;
    --bg: #FAFAF8;
    --white: #FFFFFF;
    --border: #E5E5E0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --success: #059669;
    --error: #DC2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(165deg, #FFF7F0 0%, #FFF1E6 40%, #FFE8D4 100%);
    border-bottom: 1px solid #F0D9C4;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 131, 42, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 56px;
    text-align: center;
    position: relative;
}

.logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 2px 8px rgba(232, 131, 42, 0.15));
}

.tagline {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.sub-tagline {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(232, 131, 42, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(232, 131, 42, 0.4);
    transform: translateY(-1px);
}

/* ── How It Works ─────────────────────────────────────────────────── */

.how-it-works {
    padding: 56px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 220px;
    padding: 0 16px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.step h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-divider {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin-top: 20px;
    flex-shrink: 0;
}

/* ── Features ─────────────────────────────────────────────────────── */

.features {
    padding: 64px 0;
    background: var(--bg);
}

.features h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FEF3E8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Trust Bar ────────────────────────────────────────────────────── */

.trust-bar {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.trust-card svg {
    color: var(--primary);
    margin-bottom: 12px;
}

.trust-card strong {
    display: block;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}

.trust-card span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Signup ────────────────────────────────────────────────────────── */

.signup-section {
    padding: 64px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, #FFF7F0 100%);
}

.signup-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 16px;
}

.signup-form {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group > label:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-group.vertical {
    flex-direction: column;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.15s;
    background: var(--white);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #CCC;
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--primary);
    background: #FEF3E8;
    box-shadow: 0 0 0 1px var(--primary);
}

.radio-label input,
.checkbox-label input {
    accent-color: var(--primary);
}

.radio-label small,
.checkbox-label small {
    color: var(--text-muted);
    font-weight: 400;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(232, 131, 42, 0.25);
    margin-top: 4px;
}

.submit-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(232, 131, 42, 0.35);
}

.submit-button:disabled {
    background: #B0B0B0;
    box-shadow: none;
    cursor: not-allowed;
}

/* ── Success ──────────────────────────────────────────────────────── */

.success-message {
    text-align: center;
    background: var(--white);
    padding: 56px 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    max-width: 640px;
    margin: 0 auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.success-message h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.telegram-prompt {
    margin-top: 28px;
    font-weight: 600;
}

.telegram-button {
    display: inline-block;
    background: #0088cc;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin: 14px 0;
    transition: background 0.2s;
}

.telegram-button:hover {
    background: #006daa;
}

.telegram-note {
    font-size: 13px;
    color: var(--text-muted);
}

.telegram-qr {
    display: none;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.telegram-qr.visible {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.telegram-code {
    display: block;
    background: #F3F4F6;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: monospace;
    margin-top: 8px;
    user-select: all;
    cursor: pointer;
    color: var(--text);
}

/* ── Error ────────────────────────────────────────────────────────── */

.error-message {
    text-align: center;
    background: #FEF2F2;
    color: var(--error);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-weight: 500;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 48px 0;
    background: #2D2D2D;
    color: #999;
    font-size: 14px;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 16px;
    opacity: 0.9;
    filter: brightness(1.3);
}

footer p {
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 12px;
    color: #777;
}

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero-content {
        padding: 48px 20px 40px;
    }

    .logo {
        max-width: 600px;
    }

    .tagline {
        font-size: 18px;
    }

    .sub-tagline {
        font-size: 15px;
    }

    .sub-tagline br {
        display: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-divider {
        width: 2px;
        height: 24px;
        margin: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .signup-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
    }

    .checkbox-group {
        flex-direction: column;
    }
}
