:root {
    --bg-dark: #050505;
    --bg-surface: #0a0a0c;
    --bg-glass: rgba(10, 10, 12, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #5e6ad2;
    --accent-glow: rgba(94, 106, 210, 0.4);
    --success: #22c55e;
    --nav-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
}

.navbar-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links > a, .nav-item > a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-item:hover > a {
    color: var(--text-main);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: var(--nav-height);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1001;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.menu-column h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.menu-column a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.menu-column a span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.menu-column a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-column a:hover span {
    color: var(--text-main);
}

.account-menu {
    min-width: 240px;
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.nav-item:hover .account-menu {
    transform: translateY(0);
}

.account-menu .menu-column a {
    font-size: 0.875rem;
}

.account-menu hr {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 0.5rem 0;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.github-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-nav {
    background: var(--accent);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

.highlight {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 5rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    margin-top: 4rem;
    width: 100%;
    max-width: 1100px;
    perspective: 1000px;
    position: relative;
    z-index: 2;
}

.main-mockup {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover .main-mockup {
    transform: rotateX(0deg) scale(1.02);
}

/* Feature Carousel */
.feature-carousel-section {
    padding: 4rem 5%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

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

.carousel-track {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 120px;
}

.carousel-item {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.carousel-item.active {
    opacity: 1;
    display: block;
}

.carousel-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-nav .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-nav .dot.active {
    background: var(--accent);
}

/* Performance Section */
.performance-section {
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.performance-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.performance-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.chart-visual img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Sections */
section {
    padding: 10rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Architecture Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.3);
}

.comparison-table .melty-col {
    background: rgba(94, 106, 210, 0.03);
}

.comparison-table th.melty-col {
    color: var(--accent);
    background: rgba(94, 106, 210, 0.08);
}

.comparison-table td {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.comparison-table .negative {
    color: #ff5f56;
}

.comparison-table .positive {
    color: var(--success);
    font-weight: 700;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.pricing-card.indie {
    opacity: 0.9;
    transform: scale(0.96);
}

.pricing-card.commercial {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(94, 106, 210, 0.1);
    z-index: 10;
}

.glow-border {
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.badge-small {
    background: rgba(94, 106, 210, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.card-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.75rem;
    letter-spacing: -2px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    min-height: 50px;
}

.features {
    list-style: none;
    margin-bottom: 4rem;
    flex-grow: 1;
}

.features li {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features li strong {
    color: var(--text-main);
}

.full-width {
    width: 100%;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Footer */
.main-footer {
    background: #050505;
    border-top: 1px solid var(--border-glass);
    padding: 100px 5% 50px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}
