:root {
    --primary: #00F0FF;
    --secondary: #FF00E5;
    --accent: #39FF14;
    --bg: #0A0A0F;
    --surface: #12121A;
    --text: #FFFFFF;
    --muted: #8B92A0;
    --border: #1E1E2E;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 80px; /* Account for sticky nav height */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 30px); }
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    color: var(--primary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Utility */
.cyan { color: var(--primary); }
.magenta { color: var(--secondary); }
.green { color: var(--accent); }
.blue { color: #5087ff; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(10, 10, 15, 0.9);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.subhead {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.cta-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.cta-btn.sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.secondary-link {
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.secondary-link:hover {
    color: var(--text);
}

/* Terminal Preview */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent);
    pointer-events: none;
}

.glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(0, 240, 255, 0.1);
}

.glass-card {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-preview {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease-out;
}

.terminal-preview:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-header .title {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.terminal-body .line {
    margin-bottom: 0.5rem;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Features */
.features {
    padding: 8rem 5%;
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--muted);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--surface);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: var(--muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cyan { color: var(--primary); }

.modal-header p {
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

#lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#lead-email {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s;
}

#lead-email:focus {
    border-color: var(--primary);
}

.cta-btn.full {
    width: 100%;
}

.hidden { display: none; }

#modal-feedback {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

#modal-feedback h3 {
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

#modal-feedback p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Login Modal Extras */
.premium-modal {
    max-width: 440px;
}

.auth-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 229, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); }
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* Premium OAuth Buttons */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.oauth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.oauth-btn:hover::before {
    left: 100%;
}

.oauth-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.oauth-btn:active {
    transform: translateY(0);
}

.oauth-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Google Button Specific */
.google-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #1f1f1f;
    border-color: rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

/* GitHub Button Specific */
.github-btn {
    background: rgba(36, 41, 47, 0.9);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.github-btn:hover {
    background: rgba(36, 41, 47, 1);
    box-shadow: 0 8px 24px rgba(36, 41, 47, 0.5);
}

/* Auth Footer */
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.security-badge svg {
    opacity: 0.6;
}

/* Mobile Optimizations (@Milo) */
@media (max-width: 768px) {
    .premium-modal {
        max-width: 90vw;
        margin: 1rem;
    }

    .auth-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .oauth-btn {
        padding: 16px 20px;
        font-size: 0.9rem;
    }

    .oauth-icon {
        width: 18px;
        height: 18px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-header p {
        font-size: 0.85rem;
    }

    .security-badge {
        font-size: 0.75rem;
    }
}

/* Touch-friendly tap targets (@Milo) */
@media (hover: none) and (pointer: coarse) {
    .oauth-btn {
        min-height: 48px; /* iOS/Android recommended minimum */
        padding: 16px 24px;
    }

    .close-modal {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Feature Lists (@Rowan) */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Social Proof Section (@Rowan) */
.social-proof {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

/* How It Works Section (@Rowan) */
.how-it-works {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    padding: 2.5rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    color: var(--primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-explainer {
    padding: 3rem;
    margin-top: 3rem;
}

.platform-explainer h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.explainer-point {
    display: flex;
    gap: 1.5rem;
}

.point-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.point-icon.magenta {
    background: rgba(255, 0, 229, 0.05);
    border-color: rgba(255, 0, 229, 0.2);
}

.point-icon.green {
    background: rgba(57, 255, 20, 0.05);
    border-color: rgba(57, 255, 20, 0.2);
}

.point-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.point-content p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.proof-stat {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Testimonial */
.testimonial-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial {
    padding: 3rem;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Mobile adjustments for new sections (@Milo) */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .proof-grid {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .quote-icon {
        font-size: 3rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .oauth-btn::before,
    .auth-icon {
        animation: none;
    }

    .oauth-btn {
        transition: none;
    }
}
