:root {
    /* Color Palette - Protocol Theme */
    --color-primary: #00ff57;
    /* Neon Green */
    --color-primary-dim: rgba(0, 255, 87, 0.1);
    --color-bg: #020617;
    /* Dark Slate 950 */
    --color-bg-alt: #0b1221;
    /* Slightly lighter */
    --color-surface: #1e293b;
    /* Card surface */
    --color-text: #f8fafc;
    /* White/Gray */
    --color-text-muted: #94a3b8;
    --color-accent: #facc15;
    /* Gold */

    /* Fonts - Clean & Modern */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Inter', sans-serif;
    /* Unified font */

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Extra bold for impact */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Tighter modern tracking */
}

.mono-text,
.mono-tag,
.overhead-label,
.coptright,
.stat-item {
    font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.5), var(--color-bg));
}

.particle {
    position: absolute;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    /* Reduced from 40px */
    width: auto;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-left: 10px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
    /* Increased gap since padding is gone */
    list-style: none;
    /* Background and radius removed for clean look */
}

.desktop-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    /* Changed to Body font for cleaner look */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 0;
    position: relative;
}

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

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--color-primary);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-heading);
    /* Ensure heading font for buttons */
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounding */
}

.cta-button.small {
    padding: 10px 28px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00cc45 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 87, 0.3);
}

.cta-button.small:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 87, 0.6);
    background: linear-gradient(135deg, #00ff57 0%, #33ff7a 100%);
}

.cta-button.big {
    padding: 16px 40px;
    font-size: 1rem;
}

.cta-button.primary {
    background: var(--color-primary);
    color: #000;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 87, 0.5);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.cta-button.secondary:hover {
    background: var(--color-primary-dim);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background-image: image-set(url('hero-bg-rivalry.webp') type('image/webp'),
            url('hero-bg-rivalry.png') type('image/png'));
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.7) 50%, rgba(2, 6, 23, 0.3) 100%);
    /* Stronger gradient for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.overhead-label {
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    display: block;
}

h1.glitch-text {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 24px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.highlight {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-primary);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Stats Strip */
/* Stats Strip */
.stats-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    background: var(--color-bg-alt);
    position: relative;
    z-index: 2;
}

.stats-strip .container {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    display: flex;
    flex-direction: row;
    /* Horizontal alignment */
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    opacity: 0.9;
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item .value {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.stat-item .label {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* --- New Redesign Sections --- */

/* Intro Section (Comparison) */
.intro-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Increased gap for better breathing room */
    align-items: center;
}

.intro-text h2 {
    font-size: 2.2rem;
    /* Reduced from 2.8rem for better fit */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 500px;
    /* Prevent it from getting too wide if screen is large */
}

.text-primary {
    color: var(--color-primary);
}

.intro-text p.lead {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.intro-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.intro-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visual-card {
    background: var(--color-surface);
    padding: 24px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    /* Align top for better multiline text */
    gap: 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.visual-card:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

.icon-box.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.icon-box.success {
    background: rgba(0, 255, 87, 0.1);
    color: var(--color-primary);
}

.visual-card.primary {
    border-color: var(--color-primary);
    background: linear-gradient(90deg, rgba(0, 255, 87, 0.03), transparent);
}

.visual-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.visual-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Steps Section - Creative Flow Redesign */
.steps-section {
    padding: 120px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

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

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 40px;
}

/* Glowing Connector Line */
.steps-connector {
    position: absolute;
    top: 40px;
    /* Aligns with icon center */
    left: 16%;
    width: 68%;
    height: 3px;
    background: #1e293b;
    /* Dark track */
    z-index: 0;
}

.steps-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 50%,
            transparent 100%);
    opacity: 0.5;
    box-shadow: 0 0 15px var(--color-primary);
}

.step-card {
    position: relative;
    padding: 20px;
    text-align: center;
    /* Removed Box Styling (Background/Border) for "No Card" look */
    background: transparent;
    border: none;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-5px);
    /* No border change on hover */
}

/* Icon - The checkpoints */
.step-icon {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    box-shadow: 0 0 30px rgba(0, 255, 87, 0.2);
    /* Stronger glow */
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    background: var(--color-primary);
    box-shadow: 0 0 50px rgba(0, 255, 87, 0.5);
}

.step-card:hover .step-icon svg {
    color: #000;
}

.step-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    transition: color 0.3s;
}

/* Number - Subtle integrated label */
.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
    margin: 0 auto;
    /* Center text block */
}

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

    .steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* On mobile, add a vertical line? Or just keep simple */
    .step-card {
        padding: 0;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
}

/* Advanced Features Grid */
.features-section {
    padding: 140px 0;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.features-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    background: linear-gradient(145deg, var(--color-surface) 0%, rgba(20, 30, 48, 0.8) 100%);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 255, 87, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    border-color: rgba(0, 255, 87, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    width: 100%;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--color-primary);
    transition: all 0.3s;
}

.feature-box:hover .icon-wrapper {
    background: var(--color-primary);
    color: #000;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-box h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.feature-box p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(0deg, #001a09 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.small-disclaimer {
    margin-top: 20px;
    font-size: 0.8rem !important;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

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

.footer-social a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Mobile Tweaks */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 6px 0;
}

.mobile-drawer {
    display: none;
}

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

    .mobile-menu-toggle {
        display: block;
    }

    h1.glitch-text {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Tweaks for New Sections */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-section {
        background-position: 70% center;
        /* Adjust image center for mobile */
    }
}

/* Performance + Responsive Overrides */
.badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 255, 87, 0.35);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: rgba(0, 255, 87, 0.06);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.intro-section,
.steps-section,
.features-section,
.final-cta {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 1101;
}

.mobile-drawer {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1100;
}

.mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 12px 24px 20px;
}

.mobile-drawer a {
    display: block;
    padding: 12px 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

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

    .desktop-nav ul {
        gap: 24px;
    }

    h1.glitch-text {
        font-size: clamp(2.2rem, 9vw, 4rem);
        line-height: 1.05;
    }

    .subheadline {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .intro-section,
    .steps-section,
    .features-section {
        padding: 90px 0;
    }

    .feature-box {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    header {
        backdrop-filter: none;
        background: rgba(2, 6, 23, 0.95);
    }

    .logo span {
        font-size: 1rem;
    }

    .cta-button.small {
        display: none;
    }

    .hero-section {
        min-height: 92vh;
        padding-top: calc(var(--header-height) + 24px);
        background-image: image-set(url('hero-bg-rivalry.webp') type('image/webp'),
                url('hero-bg-rivalry.png') type('image/png'));
        background-position: 62% center;
    }

    .hero-section::before {
        background: linear-gradient(160deg, rgba(2, 6, 23, 0.72) 0%, rgba(11, 18, 33, 0.62) 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        gap: 12px;
    }

    .cta-button.big {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .stats-strip {
        padding: 16px 0;
    }

    .stats-strip .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-item {
        justify-content: flex-start;
    }

    .section-header.center {
        margin-bottom: 56px;
    }

    .steps-container {
        gap: 44px;
    }

    .step-card h3 {
        font-size: 1.2rem;
    }

    .features-section h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-social {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    #particles {
        display: none;
    }
}
