/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #010105;
    --bg-light: #000127;
    --bg-mid: #181C28;
    --text-primary: #ECECEC;
    --text-secondary: rgba(236, 236, 236, 0.55);
    --accent: #0F9EB4;
    --accent-dark: #026675;
    --gradient-start: #3366CC;
    --gradient-end: #263F80;
    --surface-03: rgba(255, 255, 255, 0.03);
    --surface-06: rgba(255, 255, 255, 0.06);
    --surface-10: rgba(255, 255, 255, 0.10);
    --surface-15: rgba(255, 255, 255, 0.15);
    --bull: #4A9476;
    --bear: #A62C2B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Honeycomb Canvas ===== */
#honeycomb {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, white 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}
#honeycomb.visible {
    opacity: 0.04;
}

/* ===== Background gradient ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 1, 39, 0.6) 100%);
    z-index: -1;
}

/* ===== Layout ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 48px;
    padding-top: 72px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.logo-line {
    font-size: clamp(64px, 12vw, 88px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.15), rgba(15, 158, 180, 0.15));
    border: 1px solid var(--surface-10);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
}

/* ===== Mission ===== */
.mission {
    padding: 12px 0 56px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.mission-line {
    flex-shrink: 0;
    width: 4px;
    min-height: 100%;
    align-self: stretch;
    background: linear-gradient(180deg, var(--accent), var(--gradient-start));
    border-radius: 4px;
}

.mission blockquote {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(236, 236, 236, 0.55);
    letter-spacing: -0.3px;
    margin: 0;
    max-width: 640px;
}

/* ===== Features ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 0 64px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.feature-card {
    padding: 28px 24px;
    background: var(--surface-03);
    border: 1px solid var(--surface-06);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    background: var(--surface-06);
    border-color: var(--surface-10);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.12), rgba(51, 102, 204, 0.12));
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ===== CTA ===== */
.cta {
    padding: 48px 0 80px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.cta h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== Form ===== */
.signup-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface-06);
    border: 1px solid var(--surface-15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input::placeholder {
    color: rgba(236, 236, 236, 0.3);
}
.form-row input:focus {
    border-color: var(--accent);
    background: var(--surface-10);
}

.form-row button {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--bg-dark);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    position: relative;
}
.form-row button:hover {
    background: rgba(255, 255, 255, 0.95);
}
.form-row button:active {
    transform: scale(0.97);
}
.form-row button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button loading spinner */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(1, 1, 5, 0.2);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
}
button.loading .btn-text {
    visibility: hidden;
}
button.loading .btn-spinner {
    display: block;
}

.form-error {
    font-size: 13px;
    color: var(--bear);
    margin-top: 10px;
    min-height: 20px;
}

/* ===== Success message ===== */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 158, 180, 0.08), rgba(51, 102, 204, 0.08));
    border: 1px solid rgba(15, 158, 180, 0.2);
    border-radius: 16px;
    text-align: left;
    animation: fadeUp 0.5s ease-out forwards;
}
.success-message[hidden] {
    display: none;
}
.success-message svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.success-message strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--surface-06);
    font-size: 12px;
    color: rgba(236, 236, 236, 0.25);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .features {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row button {
        width: 100%;
    }

    .hero {
        min-height: 35vh;
        padding-top: 36px;
    }
}
