/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #5a5a5a;
    --text-tertiary: #8a8a8a;
    
    --accent-red: #e11d48;
    --accent-red-hover: #be123c;
    --accent-red-light: rgba(225, 29, 72, 0.08);
    
    --border-color: #e5e5e5;
    --border-color-dark: #a3a3a3;
    --card-bg-hover: #fafafa;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

/* Grid Overlay Background Effect */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.color-red {
    color: var(--accent-red);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: lowercase;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.logo .dot {
    color: var(--accent-red);
    font-weight: 800;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background-color: var(--bg-primary);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.8s infinite ease-in-out;
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 6rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tagline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.line-separator {
    width: 40px;
    height: 1px;
    background-color: var(--border-color-dark);
}

.main-heading {
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.main-heading .text-gradient {
    color: var(--accent-red);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    font-weight: 400;
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SUBSCRIBE / WAITLIST SECTION
   ========================================================================== */
.subscribe-section {
    padding: 4rem 2rem 6rem 2rem;
}

.subscribe-box {
    border: 1px solid var(--text-primary);
    padding: 4rem;
    background-color: var(--bg-primary);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    z-index: -1;
}

.subscribe-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.subscribe-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 440px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.subscribe-form input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color-dark);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.subscribe-form input:focus {
    border-bottom-color: transparent;
}

.subscribe-form input:focus ~ .input-focus-line {
    transform: scaleX(1);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-arrow {
    transition: var(--transition-smooth);
}

.submit-button:hover .btn-arrow {
    transform: translateX(4px);
}

/* Form Message States */
.form-message {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-message.success {
    display: block;
    color: #10b981; /* Green success */
}

.form-message.error {
    display: block;
    color: var(--accent-red); /* Red failure */
}

/* Button Loading State */
.submit-button.loading {
    pointer-events: none;
    background-color: var(--border-color-dark);
    border-color: var(--border-color-dark);
}

.submit-button.loading .btn-text,
.submit-button.loading .btn-arrow {
    visibility: hidden;
    opacity: 0;
}

.loader {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .loader {
    display: block;
}

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

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

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

.footer-link:hover {
    color: var(--accent-red);
    padding-left: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 3rem;
    }
    
    .subscribe-box {
        gap: 2.5rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2.5rem;
    }

    
    .subscribe-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .hero-section {
        padding: 4rem 1.25rem 3rem 1.25rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .milestones-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}
