/* ========================
   KOGI Pre-Launch Website
   Inspired by Cleve.ai & InterviewCoder
   ======================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --purple-primary: #A78BFA;
    --purple-dark: #8B5CF6;
    --purple-darker: #6D28D9;
    --teal-accent: #00C9A7;
    --text-dark: #FFFFFF;
    --text-muted: #A0AEC0;
    --background: #0A0A0A;
    --background-secondary: #1A1A1A;
    --surface: #161616;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================
   Header
   ======================== */
.header {
    padding: var(--spacing-md) 0;
    background: var(--background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1A0B2E 0%, #0A0A0A 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-primary);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.mascot-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(167, 139, 250, 0.3));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.form-note {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ========================
   Social Proof Bar
   ======================== */
.social-proof {
    background: var(--background-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
}

.proof-text {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* ========================
   Glassmorphism
   ======================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================
   Email Signup Form
   ======================== */
.signup-container {
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.signup-form {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
    color: #6B7280;
}

.cta-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--purple-dark);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: scale(1.02);
    background: var(--purple-darker);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ========================
   Sections
   ======================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-title.white {
    color: white;
}

.section-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* About Section */
.about {
    background: var(--surface);
}

/* ========================
   Features Section
   ======================== */
.features {
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.feature-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================
   Comparison Section
   ======================== */
.comparison {
    background: linear-gradient(135deg, #1A0B2E 0%, #0A0A0A 100%);
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.comparison-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.comparison-column.new {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.comparison-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 16px;
}

.comparison-list li:last-child {
    border-bottom: none;
}

/* ========================
   Benefits Section
   ======================== */
.benefits {
    background: var(--surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    color: var(--text-dark);
    padding: var(--spacing-sm);
}

.check {
    font-size: 24px;
}

/* ========================
   Founder Section
   ======================== */
.founder {
    background: var(--background);
    padding: var(--spacing-xl) 0;
}

.founder-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.founder-greeting {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.founder-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.founder-signature {
    font-size: 18px;
    font-weight: 600;
    color: var(--purple-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
}

.founder-credit {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================
   CTA Section
   ======================== */
.cta-section {
    background: linear-gradient(135deg, #1A0B2E 0%, #0A0A0A 100%);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.privacy-note {
    margin-top: var(--spacing-md);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ========================
   Footer
   ======================== */
.footer {
    background: var(--background);
    color: white;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--purple-primary);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================
   Modal
   ======================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--teal-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto var(--spacing-md);
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.modal-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-visual {
        order: -1;
    }

    .mascot-large {
        max-width: 250px;
    }

    .section-title {
        font-size: 32px;
    }

    .signup-form {
        flex-direction: column;
    }

    .email-input,
    .cta-button {
        width: 100%;
    }

    .features-grid,
    .benefits-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: var(--spacing-sm);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .founder-card {
        padding: var(--spacing-lg);
    }

    .founder-greeting {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}