/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #161616;
    --bg-secondary: #1c1c1c;
    --bg-tertiary: #222222;
    --bg-light: #f5f5f5;

    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --text-dark: #1a1a1a;

    --accent-orange: #9B59D0;
    --accent-amber: #7B42A8;
    --accent-glow: rgba(155, 89, 208, 0.6);

    --grid-line: rgba(255, 255, 255, 0.06);
    --grid-dot: rgba(155, 89, 208, 0.3);

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;

    /* Typography */
    --font-primary: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Dot pattern background */
    background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: 40px 40px;
    font-size: 16px;
    font-weight: 100;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.nav-logo .logo-image {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

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

.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Nav bottom grid line */
.nav-grid-line {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--grid-line);
}

.nav-grid-line .intersection-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Grid Overlay System
   ============================================ */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grid-line);
    overflow: hidden;
}

/* Light pulse animation */
.grid-line::before,
.grid-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.15) 80%,
            transparent 100%);
    animation: pulse-up 8s ease-in-out infinite;
}

.grid-line::after {
    animation-delay: 4s;
}

/* Stagger animations for each line */
.grid-line.left::before {
    animation-delay: 0s;
}

.grid-line.left::after {
    animation-delay: 5s;
}

.grid-line.center::before {
    animation-delay: 2s;
}

.grid-line.center::after {
    animation-delay: 6s;
}

.grid-line.right::before {
    animation-delay: 1s;
}

.grid-line.right::after {
    animation-delay: 4s;
}

@keyframes pulse-up {
    0% {
        bottom: -150px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

.grid-line.left {
    left: calc(50% - 600px);
}

.grid-line.center {
    left: 50%;
}

.grid-line.right {
    left: calc(50% + 600px);
}

/* ============================================
   Intersection Dots
   ============================================ */
.intersection-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--grid-dot);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 6px var(--grid-dot);
}

/* ============================================
   Main Content & Snap Scroll
   ============================================ */
html {
    scroll-behavior: auto;
    /* Disable smooth scroll for snap */
}

.main-content {
    position: relative;
    z-index: 2;
}

.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Horizontal grid line near bottom of each section */
.snap-section::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grid-line);
    pointer-events: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--grid-line);
    padding-top: 80px;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(22, 22, 22, 0.75), rgba(22, 22, 22, 0.75)), url('images/networkearth.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* Overlay is handled by the gradient */
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: var(--section-padding);
}

.hero-headline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.headline-prefix {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Courier New', monospace;
    font-size: 32px;
    color: var(--accent-orange);
}

.glitch-bracket {
    animation: glitch-flicker 3s infinite;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes glitch-flicker {

    0%,
    92%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    93% {
        opacity: 0.8;
        transform: translateX(-2px);
    }

    94% {
        opacity: 1;
        transform: translateX(2px);
    }

    95% {
        opacity: 0.6;
        transform: translateX(-1px);
    }

    96% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-headline {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    min-height: 1.2em;
    position: relative;
}

.headline-text {
    display: inline-block;
    position: relative;
}

.headline-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--accent-orange);
    animation: blink 0.7s step-end infinite;
}

.headline-text.typing-done::after {
    opacity: 0;
}

.headline-text.text-selected {
    background: var(--accent-orange);
    color: var(--bg-primary);
    padding: 0 4px;
    margin: 0 -4px;
}

.headline-text.text-selected::after {
    opacity: 0;
}

/* Glitch effect for text */
@keyframes text-glitch {

    0%,
    100% {
        text-shadow: none;
    }

    92% {
        text-shadow: 2px 0 var(--accent-orange), -2px 0 #00ffff;
    }

    94% {
        text-shadow: -2px 0 var(--accent-orange), 2px 0 #00ffff;
    }

    96% {
        text-shadow: none;
    }
}

.headline-glitch {
    animation: text-glitch 4s infinite;
}

.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tagline-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--grid-line), transparent);
}

/* ============================================
   Manifesto Section
   ============================================ */
.manifesto-section {
    display: block;
    /* Override flex from .snap-section */
    height: 300vh;
    /* Allow for extra scrolling while snapped */
    position: relative;
    scroll-snap-align: start;
    z-index: 5;
}

.manifesto-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.manifesto-content {
    max-width: var(--container-max);
    padding: 0 40px;
    text-align: center;
    position: relative;
}

.manifesto-text {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.manifesto-word {
    color: #444444;
    transition: color 0.15s ease-out;
}

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

/* ============================================
   Asset Allocation Section
   ============================================ */
.asset-section {
    min-height: 100vh;
    position: relative;
}

.asset-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
}

.asset-grid-reverse {
    direction: rtl;
}

.asset-grid-reverse>* {
    direction: ltr;
}

.asset-grid-reverse .asset-visual {
    border-left: none;
    border-right: 1px solid var(--grid-line);
}

.asset-content {
    padding: 60px 48px;
}

.asset-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.asset-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.asset-list {
    list-style: none;
    margin-bottom: 28px;
}

.asset-list li {
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
    padding-left: 20px;
    margin-bottom: 10px;
}

.asset-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Center Grid Line */
.center-grid-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grid-line);
}

.center-grid-line .intersection-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Asset Visual */
.asset-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    padding: 0;
    border-left: 1px solid var(--grid-line);
}

.platform-image {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-panel {
    width: 100%;
    min-height: 420px;
    padding: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(155, 89, 208, 0.2), transparent 40%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border-left: 1px solid var(--grid-line);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(155, 89, 208, 0.2);
    color: #cfa9ef;
    border: 1px solid rgba(155, 89, 208, 0.45);
    font-size: 11px;
    font-weight: 600;
}

.status-chip.muted {
    opacity: 0.85;
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.matrix-grid article {
    border: 1px solid var(--grid-line);
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
}

.matrix-grid h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.matrix-grid p {
    color: #b8a3ca;
    font-size: 13px;
}

.signal-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    align-items: end;
    min-height: 64px;
}

.signal-track span {
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #b780e5, #653580);
    opacity: 0.8;
}

.signal-track span:nth-child(1) {
    height: 22px;
}

.signal-track span:nth-child(2) {
    height: 44px;
}

.signal-track span:nth-child(3) {
    height: 30px;
}

.signal-track span:nth-child(4) {
    height: 58px;
}

.signal-track span:nth-child(5) {
    height: 36px;
}

.signal-track span:nth-child(6) {
    height: 48px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip-row span {
    padding: 6px 10px;
    border: 1px solid rgba(155, 89, 208, 0.4);
    color: #bfa4d5;
    font-size: 12px;
    background: rgba(155, 89, 208, 0.08);
}

.approval-rail {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.approval-rail div {
    padding: 10px;
    border: 1px solid var(--grid-line);
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

.approval-rail div:last-child {
    border-color: rgba(155, 89, 208, 0.45);
    color: #cfaae9;
}

.asset-row {
    display: grid;
    gap: 8px;
}

.asset-row span {
    font-size: 13px;
    color: #a992bb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.kanban-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.kanban-columns div {
    border: 1px solid var(--grid-line);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.kanban-columns h4 {
    font-size: 12px;
    color: #c7a7e3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kanban-columns p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.todo-row {
    font-size: 12px;
    color: #bca2d1;
    border-top: 1px solid var(--grid-line);
    padding-top: 10px;
}

.bar-chart-3d {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    perspective: 800px;
    transform-style: preserve-3d;
}

.bar {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-10deg) rotateY(-20deg);
}

.bar-1 {
    --bar-height: 200px;
    --bar-width: 60px;
    --bar-depth: 60px;
}

.bar-2 {
    --bar-height: 280px;
    --bar-width: 60px;
    --bar-depth: 60px;
}

.bar-3 {
    --bar-height: 140px;
    --bar-width: 60px;
    --bar-depth: 60px;
}

.bar-front {
    position: absolute;
    bottom: 0;
    width: var(--bar-width);
    height: var(--bar-height);
    background: linear-gradient(180deg, #9B59D0 0%, #7B42A8 50%, #5a2a82 100%);
    transform: translateZ(calc(var(--bar-depth) / 2));
    border-radius: 4px 4px 0 0;
}

.bar-right {
    position: absolute;
    bottom: 0;
    right: calc(var(--bar-depth) / -2);
    width: var(--bar-depth);
    height: var(--bar-height);
    background: linear-gradient(180deg, #7B42A8 0%, #5a2a82 100%);
    transform: rotateY(90deg);
    transform-origin: left center;
}

.bar-top {
    position: absolute;
    bottom: var(--bar-height);
    width: var(--bar-width);
    height: var(--bar-depth);
    background: linear-gradient(135deg, #b07ae0 0%, #9B59D0 100%);
    transform: rotateX(90deg) translateZ(calc(var(--bar-depth) / 2));
    transform-origin: bottom center;
}

.bar-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--bar-width) + 40px);
    height: 40px;
    background: radial-gradient(ellipse at center,
            rgba(155, 89, 208, 0.4) 0%,
            rgba(155, 89, 208, 0.1) 50%,
            transparent 70%);
    filter: blur(10px);
}

.chart-reflection {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 80px;
    background: radial-gradient(ellipse at center,
            rgba(155, 89, 208, 0.2) 0%,
            rgba(155, 89, 208, 0.05) 50%,
            transparent 70%);
    filter: blur(20px);
}

/* ============================================
   Trusted By Section
   ============================================ */
.trusted-section {
    background: var(--bg-light);
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.trusted-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.trusted-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logo-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.logo-item:hover {
    color: var(--text-dark);
}

.logo-item.featured {
    color: var(--text-dark);
    font-weight: 600;
}

.logo-item.faded {
    opacity: 0.5;
}

.logo-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   Feature Section
   ============================================ */
.feature-section {
    position: relative;
    padding: var(--section-padding) 0;
    min-height: 500px;
    border-bottom: 1px solid var(--grid-line);
}

.feature-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Feature Visual - Glow Element */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.glow-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.glow-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: linear-gradient(90deg,
            rgba(255, 107, 53, 0.15) 0%,
            rgba(255, 107, 53, 0.3) 50%,
            rgba(255, 107, 53, 0.15) 100%);
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.glow-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glow-dot.start {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-dot.start .dot-inner {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.glow-dot.end {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e05525 100%);
    box-shadow:
        0 0 20px var(--accent-glow),
        0 0 40px rgba(255, 107, 53, 0.3);
}

.glow-dot.end .dot-inner {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.glow-track {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(255, 107, 53, 0.2) 0%,
            rgba(255, 107, 53, 0.5) 50%,
            rgba(255, 107, 53, 0.2) 100%);
    border-radius: 2px;
    margin: 0 12px;
}

.glow-reflection {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at center,
            rgba(255, 107, 53, 0.3) 0%,
            rgba(255, 107, 53, 0.1) 40%,
            transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* Feature Content */
.feature-content {
    padding: 40px 0;
}

.feature-title {
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
    line-height: 1.7;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all var(--transition-medium);
    border: 1px solid var(--grid-line);
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 10;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 107, 53, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.learn-more-btn:hover {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
    color: var(--accent-orange);
}

.learn-more-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ============================================
   Features Grid Section
   ============================================ */
.features-grid-section {
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
}

.features-section-header {
    max-width: var(--container-max);
    margin: 0 auto 32px;
    padding: 0 24px;
}

.features-section-header .asset-title {
    font-size: 34px;
    margin-bottom: 12px;
}

.features-section-header .asset-description {
    max-width: 680px;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
}

.feature-cell {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--grid-line);
    background: var(--bg-primary);
}

/* Remove bottom border from last row */
.feature-cell:nth-last-child(-n+3) {
    border-bottom: none;
}

/* Add vertical borders between columns */
.feature-cell:nth-child(3n+2) {
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-cell-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-cell-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-cell:nth-child(3n+2) {
        border-left: none;
        border-right: none;
    }

    .feature-cell:nth-child(2n+1) {
        border-right: 1px solid var(--grid-line);
    }

    .feature-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .feature-cell:nth-last-child(3) {
        border-bottom: 1px solid var(--grid-line);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }

    .hero-headline-container {
        flex-direction: column;
        gap: 8px;
    }

    .headline-prefix {
        font-size: 24px;
        /* Optional, reduce size slightly for mobile if desired, or keep as is */
    }

    .grid-overlay {
        padding: 0 5%;
    }

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

    .nav-container {
        padding: 18px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

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

    .asset-content {
        padding: 40px 24px;
    }

    .asset-title {
        font-size: 32px;
    }

    .asset-visual {
        border-left: none;
        border-top: 1px solid var(--grid-line);
    }

    .asset-grid-reverse .asset-visual {
        border-right: none;
    }

    .mockup-panel {
        min-height: auto;
        border-left: none;
    }

    .center-grid-line {
        display: none;
    }

    .features-section-header {
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin: 0 20px;
    }

    .feature-cell,
    .feature-cell:nth-child(3n+2),
    .feature-cell:nth-last-child(-n+3) {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .feature-cell:last-child {
        border-bottom: none;
    }

    .kanban-columns,
    .matrix-grid,
    .approval-rail {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        order: 2;
    }

    .feature-content {
        order: 1;
        text-align: center;
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-description {
        margin-left: auto;
        margin-right: auto;
    }

    .logo-ticker {
        gap: 24px;
    }

    .logo-item span {
        display: none;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--grid-line);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    padding: 0 40px;
}

.cta-headline {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(155, 89, 208, 0.3);
}

.cta-sub {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ============================================
   Footer Section
   ============================================ */
.footer-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 80px 0 0;
    background: radial-gradient(circle at bottom center, rgba(155, 89, 208, 0.1), transparent 60%);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 140px;
    opacity: 0.9;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 400px;
    line-height: 1.5;
}

.footer-form-wrapper {
    background: rgba(22, 22, 22, 0.6);
    border: 1px solid var(--grid-line);
    padding: 60px;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    width: 100%;
}

.form-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.form-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

.tixmo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--grid-line);
    padding: 12px 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--accent-orange);
}

.submit-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 16px 32px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-orange);
    color: white;
}

.comprehensive-footer {
    width: 100%;
    background: rgba(14, 14, 14, 0.95);
    border-top: 1px solid var(--grid-line);
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-col p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    max-width: 250px;
    margin-bottom: 8px;
}

.compact-logo {
    width: 110px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

@media (max-width: 900px) {
    .cta-content {
        padding: 0 20px;
    }

    .cta-headline {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 0 20px 60px;
    }

    .footer-form-wrapper {
        padding: 40px 24px;
    }

    .form-title {
        font-size: 24px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .brand-col p {
        margin: 0 auto 16px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 20px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 20px var(--accent-glow),
            0 0 40px rgba(255, 107, 53, 0.3);
    }

    50% {
        box-shadow:
            0 0 30px var(--accent-glow),
            0 0 60px rgba(255, 107, 53, 0.4);
    }
}

.glow-dot.end {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-title,
.feature-description,
.learn-more-btn {
    animation: fade-in-up 0.6s ease-out forwards;
}

.feature-description {
    animation-delay: 0.1s;
}

.learn-more-btn {
    animation-delay: 0.2s;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    transition: all 3s ease-out;
}

.reveal-on-scroll.reveal-waiting {
    opacity: 0;
    transform: translateY(30px);
}

/* Custom reveal for learn-more buttons */
.learn-more-btn.reveal-on-scroll {
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s,
        transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s,
        background var(--transition-medium),
        border-color var(--transition-medium);
}

.learn-more-btn.reveal-on-scroll.reveal-waiting {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.asset-visual.reveal-on-scroll {
    transition-delay: 1s;
}

/* Staggered Grid Animation */
.feature-cell.reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-cell.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-cell.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-cell.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-cell.reveal-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

.feature-cell.reveal-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

.feature-cell.reveal-on-scroll:nth-child(7) {
    transition-delay: 0.7s;
}

.feature-cell.reveal-on-scroll:nth-child(8) {
    transition-delay: 0.8s;
}

.feature-cell.reveal-on-scroll:nth-child(9) {
    transition-delay: 0.9s;
}

/* ============================================
   Parallax Particles
   ============================================ */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Keep above background */
}

.particle {
    position: absolute;
    background: var(--accent-orange);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    opacity: 0.6;
    transition: transform 0.1s linear, opacity 0.3s ease;
    z-index: 1;
}

.particle.glowing {
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-orange);
}