/* ==========================================
   AegisRH AI - Matt Light Nordic Design System
   ========================================== */

:root {
    /* Color Palette - Matt Cream & Espresso */
    --bg-color: #FAF6EE;          /* Warm Creamy Yellowish-White */
    --bg-card: #FFFFFF;           /* Matte Eggshell White */
    --bg-terminal: #F4EFE6;       /* Warm Paper Gray/Cream */
    
    --border-color: rgba(46, 39, 30, 0.08);
    --border-glow-purple: rgba(153, 69, 255, 0.15);
    --border-glow-green: rgba(15, 159, 104, 0.15);
    
    --primary-color: #0F9F68;     /* Matte Sage Green */
    --secondary-color: #7C4DFF;   /* Soft Matte Indigo */
    --accent-color: #C59B27;      /* Matte Burnished Gold */
    
    --text-primary: #2E271E;      /* Deep Espresso Brown */
    --text-secondary: #7A7165;    /* Muted Taupe */
    --text-muted: #A39A8E;        /* Soft Warm Gray */
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* Interactive Neural Canvas Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Premium Subtle Grid Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(46, 39, 30, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 39, 30, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Custom Magnetic Cursor - Option C (iPad OS Style) */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
}

/* Hover/Magnet state */
.custom-cursor.magnet {
    width: 40px;
    height: 40px;
    background-color: rgba(20, 241, 149, 0.15); /* Translucent Sage Green */
    border: 1.5px solid var(--primary-color);
}

/* Over dark backgrounds (Terminal, Scanner) */
.custom-cursor.dark-bg {
    background-color: #FFFFFF;
}

.custom-cursor.dark-bg.magnet {
    background-color: rgba(20, 241, 149, 0.2);
    border-color: var(--primary-color);
}

/* Hide the old trailing glow completely */
.custom-cursor-glow {
    display: none !important;
}

/* Ambient Subtle Warm Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
    opacity: 0.08;
}

.glow-1 {
    top: 5%;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.glow-2 {
    top: 35%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.glow-3 {
    bottom: 5%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(46, 39, 30, 0.12);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(46, 39, 30, 0.02);
}

.btn-secondary:hover {
    background: #FAF6EE;
    border-color: var(--text-secondary);
    transform: translateY(-2px) scale(1.02);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(250, 246, 238, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.logo-text .badge {
    font-size: 10px;
    background: rgba(15, 159, 104, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

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

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(46, 39, 30, 0.02);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 48px;
    box-shadow: 0 10px 30px rgba(46, 39, 30, 0.03);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

/* Section Header Styles */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Terminal Section */
.terminal-section {
    padding: 100px 0;
    position: relative;
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}

/* Terminal Window styling - Dark Enclave Theme */
.terminal-window {
    background: #0C0D14; /* Deep Obsidian Black */
    border: 1px solid rgba(20, 241, 149, 0.2); /* Glowing Green Border */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(20, 241, 149, 0.08); /* Soft Green Aura */
    display: flex;
    flex-direction: column;
    height: 480px; /* Locked height to prevent layout shifting */
    position: relative;
}

.terminal-header {
    background: #06070B; /* Solid Black Header */
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

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

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.term-btn.close { background-color: #FF5F56; }
.term-btn.minimize { background-color: #FFBD2E; }
.term-btn.maximize { background-color: #27C93F; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #8F9CAE;
}

.terminal-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    /* Hide scrollbar for Chrome, Safari, Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge, Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Cyberpunk Line Colors */
.terminal-line {
    color: #E2E8F0; /* Off-white for general logs */
    line-height: 1.5;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

.terminal-line.system {
    color: #818CF8; /* Electric Violet */
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.3);
}

.terminal-line.prompt {
    color: #64748B; /* Muted Slate */
}

.terminal-line.input {
    color: #FFFFFF;
    font-weight: 500;
}

.terminal-line.input::before {
    content: "> ";
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-color);
}

.terminal-line.success {
    color: var(--primary-color);
    font-weight: 500;
    text-shadow: 0 0 8px rgba(20, 241, 149, 0.4);
}

.terminal-line.warning {
    color: #FBBF24; /* Electric Gold */
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.terminal-line.danger {
    color: #F87171; /* Coral Red */
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

.terminal-line.highlight {
    color: #38BDF8; /* Cyan */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Blinking Block Cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--primary-color);
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 6px var(--primary-color);
    animation: cursorBlink 1s infinite;
}

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

/* Laser Glowing Progress Bar */
.scanning-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.scanning-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #38BDF8);
    width: 0%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: loadBar 1.5s forwards ease-in-out;
}

@keyframes loadBar {
    to { width: 100%; }
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(46, 39, 30, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Strategy Controller */
.strategy-controller {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(46, 39, 30, 0.02);
}

.controller-title {
    font-size: 18px;
    margin-bottom: 24px;
}

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.strategy-btn {
    background: #FAF6EE;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.strategy-btn:hover {
    background: #FFFFFF;
    border-color: var(--text-secondary);
    transform: translateX(4px);
}

.strategy-btn.active {
    background: #FFFFFF;
    border-color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(46, 39, 30, 0.04);
}

.strategy-icon {
    font-size: 24px;
}

.strategy-info {
    display: flex;
    flex-direction: column;
}

.strategy-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.strategy-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Custom Input Box */
.custom-prompt-container {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.custom-prompt-container.hidden {
    display: none;
}

#custom-prompt-input {
    flex-grow: 1;
    background: #FAF6EE;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color 0.3s;
}

#custom-prompt-input:focus {
    border-color: var(--text-primary);
    outline: none;
    background: #FFFFFF;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

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

/* 3D Tilt Card Styling - Tactile Matte */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px 36px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 39, 30, 0.02);
}

/* Very subtle warm spotlight glow */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 200px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(46, 39, 30, 0.015), transparent 80%);
    pointer-events: none;
    z-index: 3;
}

.feature-card:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 15px 35px rgba(46, 39, 30, 0.04);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    transform: translateZ(30px);
    display: inline-block;
}

.feature-card-title {
    font-size: 22px;
    margin-bottom: 12px;
    transform: translateZ(20px);
}

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

/* Tokenomics Section */
.tokenomics-section {
    padding: 100px 0;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.flywheel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flywheel-title {
    font-size: 24px;
    color: var(--text-primary);
}

.flywheel-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

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

.flywheel-step {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.flywheel-step:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border-color);
}

.flywheel-step.active {
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(15, 159, 104, 0.05);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s;
}

.flywheel-step.active .step-num {
    color: var(--primary-color);
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.flywheel-step.active .step-content h4 {
    color: var(--primary-color);
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Calculator Card */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(46, 39, 30, 0.03);
    position: relative;
    overflow: hidden;
}

.calc-title {
    font-size: 24px;
    margin-bottom: 8px;
}

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

.calc-input-group {
    margin-bottom: 32px;
}

.calc-input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(46, 39, 30, 0.08);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46, 39, 30, 0.2);
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.calc-outputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.output-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FAF6EE;
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.output-item.highlighted {
    border-color: var(--primary-color);
    background: #FFFFFF;
}

.output-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.output-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

/* Fire/Flame Animation */
.fire-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.8;
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.flame-active {
    animation: flameBurn 1s infinite alternate ease-in-out;
}

@keyframes flameBurn {
    0% { transform: translateY(-50%) scale(1) rotate(-5deg); }
    100% { transform: translateY(-52%) scale(1.15) rotate(5deg); }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: #FFFFFF;
    padding: 80px 0 40px 0;
    margin-top: 100px;
}

/* Live Scanner Section - Dark Enclave Dashboard */
.scanner-section {
    padding: 100px 0;
}

.scanner-container {
    background: #0C0D14; /* Deep Obsidian Black matching Terminal */
    border: 1px solid rgba(20, 241, 149, 0.2); /* Glowing Green Border */
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(20, 241, 149, 0.05); /* Soft Green Aura */
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.scanner-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 600;
}

.pulse-dot.green {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    animation: pulse 1.5s infinite;
}

.scanner-legend {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #8F9CAE; /* Muted Slate */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-safe {
    background-color: rgba(20, 241, 149, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(20, 241, 149, 0.2);
}

.badge-danger {
    background-color: rgba(248, 113, 113, 0.1);
    color: #F87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.table-responsive {
    overflow-x: auto;
}

.scanner-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.scanner-table th {
    padding: 12px 16px;
    font-size: 13px;
    color: #8F9CAE; /* Muted Slate */
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.scanner-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    color: #E2E8F0;
}

.scan-row {
    animation: fadeInRow 0.5s ease-out;
    transition: background-color 0.3s;
}

.scan-row:hover {
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle hover */
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.token-meta {
    display: flex;
    flex-direction: column;
}

.token-name {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 15px;
}

.token-address {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8F9CAE;
    opacity: 0.7;
    margin-top: 2px;
}

.check-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.check-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.check-tag.pass {
    background-color: rgba(20, 241, 149, 0.08);
    color: var(--primary-color);
}

.check-tag.fail {
    background-color: rgba(248, 113, 113, 0.08);
    color: #F87171;
}

.score {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.score-high {
    color: var(--primary-color);
}

.score-medium {
    color: var(--accent-color);
}

.score-low {
    color: #F87171;
}

.btn-action {
    background-color: var(--primary-color);
    color: #FFFFFF !important;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-action:hover {
    background-color: #0d8b5b;
    transform: translateY(-1px);
}

.btn-disabled {
    background-color: rgba(255, 255, 255, 0.02);
    color: #8F9CAE !important;
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: not-allowed;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
}

.footer-left .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s, transform 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.disclaimer {
    line-height: 1.5;
}

/* Responsive Design & Fluid Flexibility */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    .hero-title { 
        font-size: clamp(36px, 7vw, 54px); 
    }
    .terminal-grid { 
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    .features-grid { 
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    .tokenomics-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .footer-container { 
        grid-template-columns: 1fr; 
        gap: 32px; 
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    .nav-links { 
        display: none; 
    }
    .nav-actions .btn-secondary {
        display: none; /* Hide 'Try Demo' on mobile and tablet to prevent header overflow */
    }
    .nav-actions {
        gap: 8px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    .hero-stats { 
        flex-direction: column; 
        gap: 20px; 
        padding: 20px; 
        width: 100%;
    }
    .stat-divider { 
        display: none; 
    }
    .terminal-window {
        height: 380px;
    }
    .terminal-body {
        padding: 16px;
        font-size: 12px; /* Scales down code for mobile screens */
    }
    .calculator-card {
        padding: 24px; /* More compact on mobile */
    }
    .output-item {
        padding: 12px 18px;
    }
    .output-value {
        font-size: 18px;
    }
    .section-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    /* Restore default cursor on touch devices */
    * { 
        cursor: auto !important; 
    }
    .custom-cursor, .custom-cursor-glow { 
        display: none !important; 
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .nav-actions .btn-secondary {
        display: none; /* Hide 'Try Demo' on very small screens to save space */
    }
}
