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

:root {
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #141416;
    --border: #1e1e22;
    --border-subtle: #18181b;
    --text: #e4e4e7;
    --text-secondary: #8b8b94;
    --text-muted: #5a5a63;
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.12);
    --accent-glow: rgba(167, 139, 250, 0.06);
    --white: #fafafa;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
}

::selection {
    background: var(--accent-dim);
    color: var(--white);
}

/* --- Container --- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    gap: 6px;
}

.logo-text {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links .nav-cta {
    color: var(--accent);
    padding: 7px 16px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-links .nav-cta:hover {
    background: var(--accent-dim);
    border-color: rgba(167, 139, 250, 0.4);
}

/* --- Mobile Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.mobile-menu .nav-cta {
    color: var(--accent);
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    text-align: center;
    margin-top: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0b;
}

.btn-primary:hover {
    background: #b89dfc;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--white);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-sub {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 48px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.value p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Product Card --- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-bottom: 32px;
}

.product-header {
    margin-bottom: 24px;
}

.product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.product-name {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 4px;
}

.product-tagline {
    font-size: 15px;
    color: var(--text-muted);
}

.product-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 40px;
}

/* --- Platform Layers --- */
.product-layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.layer {
    padding: 28px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.layer:hover {
    border-color: var(--border);
}

.layer-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}

.layer h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.layer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Features --- */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-cta {
    padding-top: 4px;
}

/* --- Comparison Table --- */
.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.compare-table thead th {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 16px;
}

.compare-table thead th.highlight {
    color: var(--accent);
}

.compare-table td {
    color: var(--text-secondary);
}

.compare-table td.highlight {
    color: var(--white);
    font-weight: 500;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Editions --- */
.editions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.edition-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.edition-card-highlight {
    border-color: rgba(167, 139, 250, 0.3);
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.04) 0%, var(--bg-card) 100%);
}

.edition-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-top: 16px;
    margin-bottom: 4px;
}

.edition-license {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.edition-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.edition-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.edition-cta {
    margin-top: 28px;
}

/* --- Contact --- */
.section-contact {
    text-align: center;
}

.contact-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin: -24px auto 36px;
}

.contact-actions {
    margin-bottom: 36px;
}

.contact-actions .btn {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.social-link:hover {
    color: var(--text);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: right;
    align-items: center;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu.open {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-title br {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-card {
        padding: 28px 20px;
    }

    .product-layers {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-features {
        gap: 10px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .contact-links {
        flex-wrap: wrap;
    }

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

    .edition-card {
        padding: 28px 20px;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    .section-title {
        margin-bottom: 32px;
    }
}