/* ========== ONIX - Main Styles ========== */
/* Optimized for performance with will-change hints */

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

:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --accent: #c9f31d;
    --accent2: #a8cc18;
    --white: #f5f5f5;
    --gray: #888888;
    --dark-gray: #1a1a1a;
}

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    will-change: transform;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}
.cursor.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(201, 243, 29, 0.1);
}

/* ========== TITLE INTRO OVERLAY ========== */
.title-intro {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: transform 0.4s ease;
    will-change: transform;
}
.navbar.hidden {
    transform: translateY(-100%);
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    opacity: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links, .nav-cta { opacity: 0; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--accent);
    color: var(--bg);
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(201, 243, 29, 0.3);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 6rem 4rem 2rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    text-align: left;
    position: relative;
    z-index: 2;
}
.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== INDUSTRY DASHBOARD ========== */
.ind-dashboard {
    width: 100%;
    max-width: 520px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    height: 480px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 0.5px 0 rgba(255,255,255,0.1);
    position: relative;
    will-change: transform, opacity;
}
.ind-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,255,255,0.02) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Colorful glow behind dashboard */
.dash-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle,
        rgba(201, 243, 29, 0.12) 0%,
        rgba(201, 243, 29, 0.05) 30%,
        rgba(100, 200, 255, 0.03) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

/* Vertical Tabs */
.ind-tabs {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem;
    gap: 0.25rem;
    position: relative;
    min-width: 56px;
    z-index: 1;
}
.ind-tab-label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 0.6rem 0.3rem 0.4rem;
    font-weight: 600;
}
.ind-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.ind-tab .tab-icon { font-size: 1.1rem; }
.ind-tab .tab-name {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s;
    white-space: nowrap;
}
.ind-tab:hover .tab-name { color: var(--white); }
.ind-tab.active .tab-name { color: var(--white); }

/* Sliding active indicator */
.ind-tab-slider {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    z-index: 0;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 0.5px 0 rgba(255,255,255,0.15);
}

/* Content area */
.ind-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.ind-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.ind-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.ind-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
}
.ind-live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ========== BENTO GRID ========== */
.bento-grid {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    height: 180px;
}
.bento-grid.bento-tradies,
.bento-grid.bento-builders,
.bento-grid.bento-solar,
.bento-grid.bento-insurance,
.bento-grid.bento-agencies {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.bento-box {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.12),
        inset 0 0.5px 0 rgba(255,255,255,0.06);
}
.bento-box:hover {
    border-color: rgba(201, 243, 29, 0.2);
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
}
.bento-box.s-round,
.bento-box.s-pill,
.bento-box.s-cut,
.bento-box.s-sharp,
.bento-box.s-soft { border-radius: 16px; }
.bento-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    min-height: 1.4rem;
}
.bento-lbl {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.2rem;
    line-height: 1.2;
    opacity: 0;
}
.bento-change {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.25rem;
    opacity: 0;
}
.bento-change.down { color: #ff6b6b; }

/* ========== CHART AREA ========== */
.chart-container {
    flex: 1;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.2rem;
    height: 190px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 0.5px 0 rgba(255,255,255,0.08);
}
.chart-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.chart-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.chart-badge {
    background: rgba(201, 243, 29, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
}
.chart-area {
    width: 100%;
    height: 110px;
    position: relative;
}
.chart-area svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.3rem;
}

/* Bar chart */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 110px;
}
.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: background 0.3s;
    position: relative;
    will-change: height;
}
.chart-bar:hover { filter: brightness(1.3); }

/* Pie / Donut */
.chart-pie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 110px;
}
.chart-pie svg {
    width: 100px;
    height: 100px;
}
.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
}
.pie-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pie-legend-val {
    font-weight: 700;
    color: var(--white);
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
}

/* SVG styles */
.svg-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.svg-area { opacity: 0.8; }
.svg-dot {
    fill: var(--accent);
    filter: drop-shadow(0 0 4px rgba(201, 243, 29, 0.4));
}

/* Hero background elements */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 243, 29, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 243, 29, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 243, 29, 0.12) 0%, rgba(201, 243, 29, 0.04) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform;
}
.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.06) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    opacity: 0;
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 243, 29, 0.08);
    border: 1px solid rgba(201, 243, 29, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Hero title */
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
#hero-title {
    visibility: hidden;
    position: relative;
}
#hero-title.intro-active {
    position: fixed;
    z-index: 100000;
    visibility: visible;
    perspective: 1000px;
}
#hero-title.intro-active .line {
    overflow: visible;
    transform-style: preserve-3d;
}
#hero-title.ready {
    visibility: visible;
}
.hero h1 .line {
    display: block;
    overflow: hidden;
}
.hero h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-40deg);
    will-change: transform, opacity;
}
.hero h1 .char-space {
    display: inline-block;
    width: 0.3em;
}
.hero h1 .highlight {
    color: var(--accent);
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gray);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.hero-sub .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.btn-primary .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.btn-primary:hover .btn-shine { left: 100%; }
.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(201, 243, 29, 0.05);
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}
.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== MARQUEE ========== */
.marquee-section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: none;
    will-change: transform;
}
.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.marquee-item .sep {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== STATS ========== */
.stats {
    padding: 8rem 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}
.stat-card:hover::before { opacity: 1; }
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    letter-spacing: 0.05em;
}

/* ========== FEATURES (Horizontal Scroll) ========== */
.features-section {
    padding: 8rem 0;
    overflow: hidden;
}
.features-header {
    text-align: center;
    padding: 0 4rem;
    margin-bottom: 4rem;
}
.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
    opacity: 0;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.section-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}
.section-title .highlight {
    color: var(--accent);
}
.features-track {
    display: flex;
    gap: 2rem;
    padding: 0 4rem;
    width: max-content;
    will-change: transform;
}
.feature-card {
    width: 400px;
    min-height: 480px;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.4s;
}
.feature-card:hover { border-color: rgba(201, 243, 29, 0.3); }
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 243, 29, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover::after { opacity: 1; }
.feature-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(201,243,29,0.05) 0%, rgba(201,243,29,0.02) 100%);
}
.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-img.done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    background: linear-gradient(135deg, rgba(201,243,29,0.2) 0%, rgba(201,243,29,0.05) 100%);
    color: var(--accent);
    text-shadow: 0 0 40px rgba(201,243,29,0.5);
}
.feature-content {
    padding: 2rem 2.5rem 3rem;
}
.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}
.feature-number {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(201,243,29,0.15);
    line-height: 1;
}

/* ========== HOW IT WORKS - TYPEWRITER STYLE ========== */
.how-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.how-typewriter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

/* Left Side - Steps */
.typewriter-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tw-step {
    padding: 2rem;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.tw-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.tw-step.active {
    border-color: rgba(201, 243, 29, 0.3);
    box-shadow: 0 0 40px rgba(201, 243, 29, 0.08);
}

/* Completed steps keep a subtle highlight */
.tw-step.complete {
    border-color: rgba(201, 243, 29, 0.15);
}

.tw-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tw-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
    transition: opacity 0.3s;
}

/* Number stays bright once step is complete or active */
.tw-step.active .tw-num,
.tw-step.complete .tw-num {
    opacity: 1;
}

.tw-title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tw-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid transparent;
}

.tw-title.typing {
    border-right-color: var(--accent);
    animation: twBlink 0.6s step-end infinite alternate;
}

.tw-title.done {
    width: 100%;
    border-right: none;
}

@keyframes twBlink {
    50% { border-right-color: transparent; }
}

.tw-checkmark {
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tw-checkmark.show {
    opacity: 1;
    transform: scale(1);
}

.tw-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s ease, transform 1s ease; /* SLOW fade in */
}

/* Subtitle fades in slowly with its own class */
.tw-subtitle.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.tw-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tw-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #a8cc18);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.tw-step.complete .tw-progress-fill {
    width: 100%;
}

/* Right Side - Maze Circle */
.maze-circle {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.maze-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Maze rings - subtle appearance */
.maze-ring {
    transform-origin: center;
}

/* Zigzag paths - subtle pulse */
.zigzag-path {
    animation: zigzagPulse 4s ease-in-out infinite;
}

.zigzag-path.middle-path {
    animation-delay: 1s;
}

@keyframes zigzagPulse {
    0%, 100% { opacity: 0.1; stroke-width: 1.5; }
    50% { opacity: 0.2; stroke-width: 2; }
}


/* Center glow - gentle pulse */
.center-glow {
    animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Center number display */
.maze-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.maze-center-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(201, 243, 29, 0.5);
}

/* Icon containers - separate for opposite rotation */
.maze-icons-outer,
.maze-icons-middle {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Individual icons */
.maze-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    top: 50%;
    left: 50%;
    opacity: 0;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) rotate(calc(-1 * var(--angle))) scale(0);
}

/* OUTER RING icons (radius 220px) */
.maze-icon.outer {
    --ring-distance: -220px;
}

/* MIDDLE RING icons (radius 140px) */
.maze-icon.middle {
    --ring-distance: -140px;
}

/* Visible state - position on ring */
.maze-icon.visible {
    opacity: 1;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translateY(var(--ring-distance))
        rotate(calc(-1 * var(--angle)))
        scale(1);
}

/* SVG icon styling */
.maze-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

/* Hover effect */
.maze-icon:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(201, 243, 29, 0.4);
}

.maze-icon:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .how-typewriter-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .maze-circle {
        width: 400px;
        height: 400px;
    }

    .maze-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .maze-icon.outer { --ring-distance: -175px; }
    .maze-icon.middle { --ring-distance: -110px; }

    .maze-center-num {
        font-size: 1.5rem;
    }
}

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

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 8rem 4rem;
    background: var(--bg2);
    overflow: hidden;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}
.testimonial-card {
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}
.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg);
    font-size: 0.85rem;
}
.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.testimonial-role {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========== PRICING ========== */
.pricing {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.pricing-card {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}
.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(201, 243, 29, 0.05), var(--bg2));
}
.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
}
.pricing-tier {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.pricing-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-amount span { font-size: 1.2rem; color: var(--gray); }
.pricing-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}
.pricing-features li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.pricing-features li .check {
    color: var(--accent);
    font-weight: bold;
}
.pricing-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.pricing-btn.primary {
    background: var(--accent);
    color: var(--bg);
}
.pricing-btn.secondary {
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
}
.pricing-btn:hover { transform: translateY(-2px); }

/* ========== CTA ========== */
.cta-section {
    padding: 10rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    white-space: nowrap;
    user-select: none;
    will-change: transform;
}
.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}
.cta-section p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    position: relative;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent);
    color: var(--bg);
    padding: 1.2rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s;
}
.cta-btn:hover {
    box-shadow: 0 0 60px rgba(201, 243, 29, 0.4);
}
.cta-btn .arrow {
    transition: transform 0.3s;
}
.cta-btn:hover .arrow { transform: translateX(4px); }

/* ========== FLOATING PARTICLES ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
}

/* ========== FOOTER ========== */
.footer {
    padding: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-left {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}
.footer-left span { color: var(--accent); }
.footer-center {
    display: flex;
    gap: 2rem;
}
.footer-center a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-center a:hover { color: var(--accent); }
.footer-right {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ========== MAGNETIC BUTTON EFFECT ========== */
.magnetic { display: inline-block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin-left: auto; margin-right: auto; }
    .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .how-grid { grid-template-columns: 1fr; }
    .how-visual { display: none; }
}
@media (max-width: 768px) {
    .navbar { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .stats { grid-template-columns: 1fr 1fr; padding: 4rem 2rem; }
    .hero { padding: 6rem 1.5rem 2rem; grid-template-columns: 1fr; }
    .hero-right { margin-top: 2rem; }
    .ind-dashboard { height: 440px; }
    .ind-tabs { min-width: 48px; }
    .ind-tab .tab-name { font-size: 0.5rem; }
    .features-header, .how-section, .testimonials, .pricing, .cta-section { padding-left: 2rem; padding-right: 2rem; }
    .footer { flex-direction: column; gap: 1.5rem; text-align: center; }
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
