html {
    scroll-behavior: smooth;
}
:root {
    --bg: #0a0a0c;
    --card-bg: #16161a;
    --text: #f9f9f9;
    --accent: #635bff;
    --muted: #a1a1aa;
    --gradient: linear-gradient(90deg, #635bff, #00ffc2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
nav { padding: 1.5rem 0; border-bottom: 1px solid #27272a; position: sticky; top: 0; background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(10px); z-index: 100; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
/* Logo Styling */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* This controls the exact distance between icon and text */
    text-decoration: none;
}

.logo {
    font-weight: 800; 
    letter-spacing: 0.5px;
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1; /* Prevents vertical offset */
}

.logo span {
    font-weight: 200; /* Ultra-light for 'SCALAR' to help pronunciation */
    color: var(--muted);
    margin-left: 1px;
}


/* Hero Brand Styling */
.brand-split {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.brand-split span {
    font-weight: 200;
    letter-spacing: 0px;
    opacity: 0.9;
}
.nav-links a { color: var(--muted); text-decoration: none; margin-left: 2rem; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 8rem 0 5rem; text-align: center; }
.badge { background: #1e1e24; color: var(--accent); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 2rem; display: inline-block; }
h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sub-headline { font-size: 1.25rem; color: var(--muted); max-width: 700px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn-primary { background: var(--accent); color: white; padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-primary:hover { filter: brightness(1.2); box-shadow: 0 0 20px rgba(99, 91, 255, 0.4); }
.btn-secondary { color: var(--text); border: 1px solid #27272a; padding: 1rem 2rem; border-radius: 8px; text-decoration: none; margin-left: 1rem; }
.btn-sm { background: var(--accent); padding: 0.5rem 1.2rem; border-radius: 6px; color: white; text-decoration: none; font-size: 0.8rem; }

/* Sections */
.problem { padding: 5rem 0; text-align: center; border-top: 1px solid #27272a; }
.problem h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.problem p { color: var(--muted); max-width: 800px; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 5rem 0; }
.card { background: var(--card-bg); padding: 3rem 2rem; border-radius: 12px; border: 1px solid #27272a; transition: 0.3s; }
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card .icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Why XSP Section */
.why-xsp {
    padding: 8rem 0;
    background-color: #0d0d10;
}

.xsp-header {
    text-align: center;
    margin-bottom: 4rem;
}

.xsp-header h2 {
    font-size: 3rem;
    margin-top: 1rem;
}

/* Comparison Table */
.comparison-table {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid #27272a;
    overflow: hidden;
    margin-top: 2rem;
}

/* Table Row Hover Effect */
.comp-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #27272a;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease; /* Smooth entry for the hover */
}

/* The Glow Effect on Hover */
.comp-row:not(.header):hover {
    background-color: rgba(99, 91, 255, 0.05); /* Very subtle Electric Blue tint */
    border-left: 4px solid var(--accent); /* Accent bar on the left */
    transform: translateX(5px); /* Slight 'push' effect */
}

/* Make the Veloscalar Column always pop slightly */
.comp-row .check {
    color: #00FFC2;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 255, 194, 0.03); /* Subtle green glow constant background */
    transition: background 0.3s ease;
}

.comp-row:hover .check {
    background: rgba(0, 255, 194, 0.1); /* Intensify glow on row hover */
}

/* Ensure the header doesn't move or glow */
.comp-row.header:hover {
    transform: none;
    background: #1e1e24;
    border-left: none;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .comp-row {
        grid-template-columns: 1fr; /* Stack them on mobile */
        gap: 0.75rem;
    }
    .comp-row.header {
        display: none; /* Hide headers on small screens */
    }
}

.cta-final { 
    padding: 8rem 0; 
    text-align: center; 
    background: radial-gradient(circle at center, #1e1b4b 0%, #0a0a0c 100%); 
}

.cta-wrapper {
    margin-top: 2.5rem; /* This replaces the leaked '2rem' text */
    display: flex;
    justify-content: center;
}

.cta-final p {
    color: var(--muted);
    margin-bottom: 0; /* Ensures no extra spacing below the text */
}
footer { padding: 3rem 0; text-align: center; color: #52525b; font-size: 0.8rem; border-top: 1px solid #27272a; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .btn-secondary { display: block; margin: 1rem 0 0; }
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto; 
    padding: 3rem;
    border: 1px solid var(--accent);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute; right: 20px; top: 10px;
    color: var(--muted); font-size: 2rem; cursor: pointer;
}

form input, form select {
    width: 100%; padding: 1rem; margin-top: 1rem;
    background: #0a0a0c; border: 1px solid #27272a;
    border-radius: 8px; color: white;
}

form button { width: 100%; margin-top: 2rem; border: none; cursor: pointer; }