/* ========================================
   EdgeActing Landing Page - Linear Style
   ======================================== */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Linear Style */
    --bg-base: #08090A;
    --bg-surface: #131416;
    --bg-elevated: #1C1D21;

    --text-primary: #F7F8F8;
    --text-secondary: #8A8F98;
    --text-tertiary: #5D6069;

    --brand-primary: #5E6AD2;
    --brand-violet: #6B58CC;
    --brand-cyan: #4EB2C6;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.02);

    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.0) 100%);

    /* Spacing */
    --container-max: 1200px;
    --grid-gap: 24px;
    --nav-height: 64px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Cosmic Background === */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-violet) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    top: 40%;
    right: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* === Navigation Bar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(8, 9, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-item a:hover {
    color: var(--text-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--bg-elevated);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary {
    background: #FFFFFF;
    color: #08090A;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #F7F8F8;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 9999px;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #8A8F98 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

/* === Section Styling === */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* === Bento Grid === */
.bento-grid {
    display: grid;
    gap: var(--grid-gap);
}

.five-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === Glass Cards === */
.glass-card {
    background: var(--glass-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-top-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Feature Cards === */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(94, 106, 210, 0.1);
    border-radius: 8px;
    color: var(--brand-primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Product Ecosystem === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: var(--grid-gap);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 48px;
}

.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(94, 106, 210, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    box-shadow: 0 20px 60px rgba(94, 106, 210, 0.1);
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-headline {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: rgba(94, 106, 210, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-features li {
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 600;
}

.product-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-link:hover {
    color: var(--brand-primary);
    gap: 12px;
}

/* === Technology Section === */
.technology-section {
    background: radial-gradient(ellipse at center, rgba(94, 106, 210, 0.05) 0%, transparent 60%);
}

.technology-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.technology-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 32px;
}

/* === Partnership Section === */
.partnership-section {
    text-align: center;
}

.partnership-content {
    max-width: 800px;
    margin: 0 auto;
}

.partnership-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.trust-item svg {
    color: var(--brand-primary);
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
    margin-top: 120px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--text-tertiary);
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright,
.contact {
    font-size: 13px;
    color: var(--text-tertiary);
}

.contact a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: var(--text-secondary);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .five-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }

    .trust-indicators {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .glass-card {
        padding: 24px;
    }

    .product-card {
        padding: 24px;
    }
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 9, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    max-width: 500px;
    width: 90%;
    padding: 48px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(94, 106, 210, 0.05);
    border: 1px solid rgba(94, 106, 210, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(94, 106, 210, 0.08);
    border-color: rgba(94, 106, 210, 0.2);
}

.contact-info svg {
    color: var(--brand-primary);
    flex-shrink: 0;
}

.email-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--brand-primary);
}

/* === Scroll Animations === */
@media (prefers-reduced-motion: no-preference) {
    .glass-card,
    .product-card {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .glass-card:nth-child(1) { animation-delay: 0.1s; }
    .glass-card:nth-child(2) { animation-delay: 0.2s; }
    .glass-card:nth-child(3) { animation-delay: 0.3s; }
    .glass-card:nth-child(4) { animation-delay: 0.4s; }
    .glass-card:nth-child(5) { animation-delay: 0.5s; }

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