/* ============================================
   ChainIntel AI — Global Styles
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: #111827;
    --bg-card-hover: #1a2340;
    --bg-surface: rgba(17, 24, 39, 0.8);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --red-400: #f87171;
    --red-500: #ef4444;
    --yellow-400: #facc15;

    --border-color: rgba(148, 163, 184, 0.1);
    --border-color-hover: rgba(148, 163, 184, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-text: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));

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

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

/* ============================================
   Animated Background
   ============================================ */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: glowFloat 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--blue-500);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--purple-500);
    top: 40%;
    right: -150px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: var(--cyan-500);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-ai {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 1px;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--blue-500);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-500);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 800px;
    margin: 0 auto 64px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

/* Hero Terminal */
.hero-visual {
    max-width: 750px;
    margin: 0 auto;
}

.terminal-window {
    background: #0d1117;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(59, 130, 246, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    min-height: 300px;
}

.terminal-line {
    opacity: 0;
    transform: translateY(5px);
    animation: terminalFadeIn 0.3s ease forwards;
}

.terminal-line[data-delay="0"] { animation-delay: 0.5s; }
.terminal-line[data-delay="800"] { animation-delay: 1.3s; }
.terminal-line[data-delay="1600"] { animation-delay: 2.1s; }
.terminal-line[data-delay="2400"] { animation-delay: 2.9s; }
.terminal-line[data-delay="3200"] { animation-delay: 3.7s; }
.terminal-line[data-delay="4000"] { animation-delay: 4.5s; }
.terminal-line[data-delay="4400"] { animation-delay: 4.9s; }
.terminal-line[data-delay="5000"] { animation-delay: 5.5s; }
.terminal-line[data-delay="5200"] { animation-delay: 5.7s; }
.terminal-line[data-delay="5800"] { animation-delay: 6.3s; }
.terminal-line[data-delay="6400"] { animation-delay: 6.9s; }
.terminal-line[data-delay="7000"] { animation-delay: 7.5s; }
.terminal-line[data-delay="7600"] { animation-delay: 8.1s; }
.terminal-line[data-delay="8200"] { animation-delay: 8.7s; }
.terminal-line[data-delay="8600"] { animation-delay: 9.1s; }

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

.t-prompt { color: var(--green-400); margin-right: 8px; }
.t-command { color: var(--text-primary); }
.t-info { color: var(--blue-500); margin-right: 8px; }
.t-warning { color: var(--yellow-400); margin-right: 8px; }
.t-success { color: var(--green-400); margin-right: 8px; }
.t-text { color: var(--text-secondary); }
.t-bold { font-weight: 600; }
.t-danger { color: var(--red-400); font-weight: 600; }
.t-highlight { color: var(--cyan-400); }
.t-blank { display: block; height: 8px; }

/* ============================================
   3D Cube
   ============================================ */

.cube-scene {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cube-wrapper {
    width: 340px;
    height: 340px;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.cube-wrapper:active {
    cursor: grabbing;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(-35deg);
    transition: none;
    will-change: transform;
}

.cube.auto-rotating {
    animation: cubeAutoRotate 20s linear infinite;
}

@keyframes cubeAutoRotate {
    0%   { transform: rotateX(-25deg) rotateY(0deg); }
    100% { transform: rotateX(-25deg) rotateY(360deg); }
}

/* Cube faces */
.cube-face {
    position: absolute;
    width: 290px;
    height: 290px;
    left: 50%;
    top: 50%;
    margin-left: -145px;
    margin-top: -145px;
    background: rgba(15, 22, 41, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backface-visibility: visible;
    display: flex;
    flex-direction: column;
}

.face-front  { transform: translateZ(145px); }
.face-back   { transform: rotateY(180deg) translateZ(145px); }
.face-right  { transform: rotateY(90deg)  translateZ(145px); }
.face-left   { transform: rotateY(-90deg) translateZ(145px); }
.face-top    { transform: rotateX(90deg)  translateZ(145px); }
.face-bottom { transform: rotateX(-90deg) translateZ(145px); }

/* Face label */
.face-label {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 8px 0 6px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: auto;
}

/* 7x7 Grid on each face */
.face-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    padding: 10px;
    flex: 1;
}

/* Individual cell (mini cube) */
.cell {
    position: relative;
    border-radius: 4px;
    aspect-ratio: 1;
}

.cell.safe {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.cell.bad {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: badPulse 3s ease-in-out infinite;
}

@keyframes badPulse {
    0%, 100% { background: rgba(239,68,68,0.2); }
    50%      { background: rgba(239,68,68,0.35); }
}

.cell.deployer {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.cell.bad i {
    position: absolute;
    top: 0;
    right: 1px;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    color: var(--red-500);
    line-height: 1;
}

/* Cube Legend */
.cube-legend {
    display: flex;
    gap: 20px;
    margin-top: 28px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.safe {
    background: rgba(59, 130, 246, 0.5);
    border: 1px solid var(--blue-500);
}

.legend-dot.bad {
    background: rgba(239, 68, 68, 0.5);
    border: 1px solid var(--red-500);
}

.legend-dot.deployer {
    background: rgba(139, 92, 246, 0.5);
    border: 1px solid var(--purple-500);
}

.cube-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   Chains Section
   ============================================ */

.chains-section {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.chains-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.chains-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

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

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

/* ============================================
   Section Common
   ============================================ */

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

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-500); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple-500); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan-500); }
.feature-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--orange-500); }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green-500); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); color: var(--pink-500); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.02), transparent);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr 300px;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    min-width: 80px;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.step-list li svg {
    color: var(--green-400);
    flex-shrink: 0;
}

/* Step Visuals */
.step-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    animation: nodeFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes nodeFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.node-dot {
    width: 6px;
    height: 6px;
    background: var(--blue-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* AI Brain */
.ai-brain {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 8s linear infinite;
}

.ring-2 {
    width: 75%;
    height: 75%;
    animation: spin 6s linear infinite reverse;
    border-color: rgba(59, 130, 246, 0.3);
}

.ring-3 {
    width: 50%;
    height: 50%;
    animation: spin 4s linear infinite;
    border-color: rgba(6, 182, 212, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.brain-core {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

/* Risk Meter */
.risk-meter {
    width: 100%;
    max-width: 250px;
}

.meter-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.meter-fill {
    width: var(--risk);
    height: 100%;
    background: linear-gradient(90deg, var(--green-400), var(--yellow-400), var(--orange-400), var(--red-400));
    border-radius: 6px;
    transition: width 2s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.meter-low { color: var(--green-400); }
.meter-mid { color: var(--yellow-400); }
.meter-high { color: var(--orange-400); }
.meter-critical { color: var(--red-400); }

.meter-score {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: var(--orange-400);
}

.meter-score span {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   Risk Demo Section
   ============================================ */

.risk-demo {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-input-wrapper {
    margin-bottom: 32px;
}

.demo-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base);
}

.demo-input-group:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.demo-input-group svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.demo-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-mono);
    min-width: 0;
}

.demo-input::placeholder {
    color: var(--text-muted);
}

.demo-chain-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-primary);
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
}

.demo-chain-select option {
    background: var(--bg-card);
}

.demo-btn {
    flex-shrink: 0;
}

/* Demo Result */
.demo-result {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 1s forwards;
}

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

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.token-name {
    font-size: 18px;
    font-weight: 700;
}

.token-address {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-risk-badge {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-risk-badge.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-400);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 32px;
}

.risk-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.risk-score-circle svg {
    width: 100%;
    height: 100%;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--orange-400);
}

.score-max {
    font-size: 16px;
    color: var(--text-muted);
}

.risk-factors h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 8px;
}

.factor-item.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-400);
}

.factor-item.high {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-400);
}

.factor-item.medium {
    background: rgba(250, 204, 21, 0.1);
    color: var(--yellow-400);
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
}

.confidence {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confidence-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.confidence-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.confidence-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-500);
}

/* ============================================
   Use Cases Section
   ============================================ */

.use-cases {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02), transparent);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-align: center;
}

.use-case-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    color: var(--blue-500);
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.use-case-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--bg-card));
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-amount {
    margin-bottom: 8px;
}

.price {
    font-size: 42px;
    font-weight: 800;
}

.period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.pricing-features li svg {
    color: var(--green-400);
    flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-500);
}

.footer-links-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

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

/* Scroll reveal */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .cube-wrapper {
        width: 280px;
        height: 280px;
    }

    .cube-face {
        width: 240px;
        height: 240px;
        margin-left: -120px;
        margin-top: -120px;
    }

    .face-front  { transform: translateZ(120px); }
    .face-back   { transform: rotateY(180deg) translateZ(120px); }
    .face-right  { transform: rotateY(90deg)  translateZ(120px); }
    .face-left   { transform: rotateY(-90deg) translateZ(120px); }
    .face-top    { transform: rotateX(90deg)  translateZ(120px); }
    .face-bottom { transform: rotateX(-90deg) translateZ(120px); }

    .face-grid { gap: 2px; padding: 8px; }
    .cell { border-radius: 3px; }

    .features-grid,
    .use-cases-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-card {
        grid-template-columns: auto 1fr;
    }

    .step-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 5;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 20px;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .cube-wrapper {
        width: 240px;
        height: 240px;
    }

    .cube-face {
        width: 210px;
        height: 210px;
        margin-left: -105px;
        margin-top: -105px;
        border-radius: 8px;
    }

    .face-front  { transform: translateZ(105px); }
    .face-back   { transform: rotateY(180deg) translateZ(105px); }
    .face-right  { transform: rotateY(90deg)  translateZ(105px); }
    .face-left   { transform: rotateY(-90deg) translateZ(105px); }
    .face-top    { transform: rotateX(90deg)  translateZ(105px); }
    .face-bottom { transform: rotateX(-90deg) translateZ(105px); }

    .face-grid {
        padding: 6px;
        gap: 2px;
    }

    .cell { border-radius: 2px; }
    .cell.bad i { font-size: 5px; }
    .face-label { font-size: 8px; padding: 5px 0 4px; }
    .cube-legend { gap: 12px; margin-top: 20px; }
    .legend-item { font-size: 11px; }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .features-grid,
    .use-cases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        font-size: 48px;
    }

    .step-list li {
        justify-content: center;
    }

    .result-body {
        grid-template-columns: 1fr;
    }

    .demo-input-group {
        flex-wrap: wrap;
        padding: 12px;
    }

    .demo-input-group svg:first-child {
        display: none;
    }

    .demo-input {
        width: 100%;
        padding: 8px;
    }

    .demo-chain-select {
        flex: 1;
    }

    .demo-btn {
        flex: 1;
    }

    .result-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

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

    .cta-card {
        padding: 48px 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-brand {
        max-width: 100%;
    }

    .chains-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .terminal-body {
        font-size: 11px;
        padding: 12px;
    }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.3);
}

/* ============================================
   Selection
   ============================================ */

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}
