:root {
    /* Obsidian Inspired Palette */
    --bg-dark: #0f1015;
    --bg-panel: #181920;
    --bg-card: #20222b;
    --border-color: #2e303d;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    /* Accents */
    --violet-primary: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, 0.25);
    --lavender: #c4b5fd;
    --orange-accent: #f97316;
    --yellow-accent: #fbbf24;

    /* Layout */
    --max-w: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.5;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--orange-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet-primary) 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--violet-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--lavender);
    background: rgba(196, 181, 253, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 16, 21, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    mix-blend-mode: screen;
    object-fit: contain; 
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-logo {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo:hover {
    transform: translateY(-8px) scale(1.05);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.bg-panel {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--violet-primary), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #3b3d4a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-layer::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 12px;
    width: 24px;
    height: 12px;
    border: 2px solid var(--lavender);
    border-radius: 4px;
    box-shadow: 0 8px 0 -2px rgba(196, 181, 253, 0.5);
}

.icon-distill::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 16px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--orange-accent);
    box-shadow: 0 12px 0 -4px var(--yellow-accent);
}

.icon-ide::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 12px;
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--violet-primary);
    border-bottom: 2px solid var(--violet-primary);
}

.icon-ide::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 10px;
    height: 2px;
    background: var(--lavender);
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
}

.comparison-card.quark {
    border-color: rgba(139, 92, 246, 0.4);
    position: relative;
    box-shadow: 0 0 40px var(--violet-glow);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.badge-primary {
    background: rgba(139, 92, 246, 0.2);
    color: var(--lavender);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-muted);
}

.comparison-card.quark .comparison-list li {
    color: var(--text-main);
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.comparison-list .negative::before {
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 5L5 15M5 5L15 15" stroke="%23f87171" stroke-width="2" stroke-linecap="round"/></svg>') center no-repeat;
}

.comparison-list .positive::before {
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 6L8 14L4 10" stroke="%234ade80" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center no-repeat;
}

/* Contact CTA */
.contact-container {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1));
    pointer-events: none;
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-content p {
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    gap: 1rem;
    min-width: 400px;
}

.input-field {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--violet-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.btn-submit {
    white-space: nowrap;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .contact-form {
        width: 100%;
        min-width: unset;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}
