/* ============================================
   FTX 2.0 — "Trust Us This Time"
   Global Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12131a;
    --bg-tertiary: #1a1b26;
    --bg-card: #15161f;
    --bg-card-hover: #1c1d2b;
    --bg-input: #1a1b26;
    --border-color: #2a2b3a;
    --border-light: #333450;
    --text-primary: #e8e9f0;
    --text-secondary: #8b8ca7;
    --text-muted: #5a5b73;
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --green: #00d4aa;
    --green-bg: rgba(0, 212, 170, 0.1);
    --red: #ff4757;
    --red-bg: rgba(255, 71, 87, 0.1);
    --yellow: #ffc107;
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --gradient-green: linear-gradient(135deg, #00d4aa, #00b894);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 72px;
    --container-max: 1280px;
}

/* Reset */
*, *::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: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-primary);
}

img {
    max-width: 100%;
    display: block;
}

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

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.fine-print {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
    background: var(--gradient-primary);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.announcement-scroll {
    display: flex;
    gap: 80px;
    animation: scrollLeft 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.announcement-scroll span {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    padding: 0 20px;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 11, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.logo-version {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
}

.badge-new {
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-wide {
    min-width: 320px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-icon {
    font-size: 1.3rem;
    width: 36px;
    text-align: center;
}

.dropdown-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.nav-download {
    font-size: 0.85rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-light);
}

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

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.btn-xl {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
}

.btn-subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.btn-buy {
    background: var(--green);
    color: #0a0b0f;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

.btn-buy:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-sell {
    background: var(--red);
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

.btn-sell:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-panic {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    border: 2px solid #ff4757;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    animation: panicPulse 1.5s ease-in-out infinite;
}

@keyframes panicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.2); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -150px;
    left: -100px;
}

.floating-coins .coin {
    position: absolute;
    font-size: 2rem;
    left: var(--x);
    top: var(--y);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.15;
    user-select: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(15px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-disclaimer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   Live Ticker
   ============================================ */
.ticker-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow: hidden;
}

.ticker-container {
    overflow: hidden;
    padding: 12px 0;
}

.ticker-scroll {
    display: flex;
    gap: 32px;
    animation: tickerMove 30s linear infinite;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.ticker-name {
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-price {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
}

.ticker-change {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.ticker-change.up {
    color: var(--green);
    background: var(--green-bg);
}

.ticker-change.down {
    color: var(--red);
    background: var(--red-bg);
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.trust-badge:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.trust-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-secondary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.feature-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.feature-card-large .feature-icon-wrap {
    grid-column: 1;
}

.feature-icon-wrap {
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    display: inline-block;
}

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

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

.feature-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

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

.feature-stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
}

.feature-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Markets Section
   ============================================ */
.markets-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.markets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.market-tab {
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.2s;
}

.market-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.market-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.markets-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.markets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.markets-table thead {
    border-bottom: 1px solid var(--border-color);
}

.markets-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.markets-table td {
    padding: 16px 18px;
    border-top: 1px solid rgba(42, 43, 58, 0.5);
}

.markets-table tbody tr {
    transition: background 0.2s;
}

.markets-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.th-star { width: 40px; }
.th-chart { width: 120px; }
.th-action { width: 100px; }

.market-star {
    cursor: pointer;
    opacity: 0.3;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.market-star:hover, .market-star.active { opacity: 1; }

.market-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.market-name-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.market-name-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.market-price {
    font-family: var(--font-mono);
    font-weight: 600;
}

.market-change {
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.market-change.up {
    color: var(--green);
    background: var(--green-bg);
}

.market-change.down {
    color: var(--red);
    background: var(--red-bg);
}

.market-volume, .market-mcap {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.market-minichart {
    width: 100px;
    height: 32px;
}

.market-trade-btn {
    padding: 6px 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.2s;
}

.market-trade-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.markets-footer {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   Trading Preview Section
   ============================================ */
.trading-preview-section {
    padding: 100px 0;
}

.trading-preview {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.trading-mock {
    background: var(--bg-secondary);
}

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

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

.mock-pair-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: #f7931a20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-pair-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.mock-pair-price {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
}

.mock-pair-change {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--green-bg);
}

.mock-stats {
    display: flex;
    gap: 32px;
}

.mock-stats div {
    text-align: center;
}

.mock-stats small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mock-stats span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.mock-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 380px;
}

.mock-chart {
    padding: 20px;
    position: relative;
}

.mock-chart canvas {
    width: 100%;
    height: 100%;
}

.chart-overlay-tools {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    gap: 4px;
}

.chart-tool {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tool.active, .chart-tool:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.mock-orderbook {
    border-left: 1px solid var(--border-color);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.mock-orderbook h4 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.orderbook-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.orderbook-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    position: relative;
}

.orderbook-row::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.1;
}

.orderbook-row.ask::before {
    background: var(--red);
    width: var(--depth);
}

.orderbook-row.bid::before {
    background: var(--green);
    width: var(--depth);
}

.orderbook-row.ask .ob-price { color: var(--red); }
.orderbook-row.bid .ob-price { color: var(--green); }

.orderbook-spread {
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 6px 0;
}

.spread-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.spread-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mock-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.mock-trade-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ============================================
   Reserves Section
   ============================================ */
.reserves-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.reserves-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.reserve-total {
    grid-column: 1;
}

.reserve-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reserve-card-header h3 {
    font-size: 1rem;
    color: var(--text-secondary);
}

.reserve-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reserve-badge.verified {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.reserve-amount {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    margin-bottom: 24px;
}

.reserve-ratio {
    margin-bottom: 20px;
}

.ratio-bar {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ratio-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 100px;
    transition: width 1s ease;
}

.ratio-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.reserve-last-audit {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.reserves-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reserve-asset {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: all 0.2s;
}

.reserve-asset:hover {
    border-color: var(--border-light);
}

.reserve-asset-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.reserve-asset-info {
    flex: 1;
    min-width: 0;
}

.reserve-asset-info strong {
    display: block;
    font-size: 0.9rem;
}

.reserve-asset-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.reserve-asset-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
}

.reserve-asset-pct {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 48px;
    text-align: right;
}

/* ============================================
   Earn Section
   ============================================ */
.earn-section {
    padding: 100px 0;
}

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

.earn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.earn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-light);
}

.earn-card-featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.earn-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.earn-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.earn-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.earn-apy {
    margin-bottom: 24px;
}

.apy-value {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--green);
}

.apy-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.earn-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.earn-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-light);
}

.testimonial-stars {
    margin-bottom: 14px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 80px 0;
}

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

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

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s;
    opacity: 0.5;
}

.partner-logo:hover {
    opacity: 0.8;
    border-color: var(--border-light);
}

.partner-logo span {
    font-size: 2rem;
    margin-bottom: 8px;
}

.partner-logo small {
    font-size: 0.65rem;
    color: var(--red);
    display: block;
    margin-top: 4px;
}

/* ============================================
   App Section
   ============================================ */
.app-section {
    padding: 100px 0;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text {
    max-width: 500px;
}

.app-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.app-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.2s;
}

.app-store-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.app-store-icon {
    font-size: 1.5rem;
}

.app-store-btn small {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.app-store-btn strong {
    font-size: 1rem;
}

.app-qr {
    text-align: center;
    margin-top: 16px;
}

.qr-placeholder {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.qr-grid {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: black;
    line-height: 1.3;
}

.qr-grid span {
    display: block;
}

.app-qr small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Phone Mockup */
.app-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}

.phone-screen {
    padding: 0 12px 16px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 16px;
    font-weight: 700;
    font-size: 1.1rem;
}

.phone-balance {
    text-align: center;
    margin-bottom: 20px;
}

.phone-balance small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.phone-amount {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-mono);
}

.phone-change {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.phone-chart-placeholder {
    margin-bottom: 20px;
}

.phone-chart-svg {
    width: 100%;
    height: 60px;
}

.phone-assets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-asset {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-content > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--accent-primary);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

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

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

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

.footer-copyright p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   Chatbot Widget
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s;
    position: relative;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
}

.chatbot-icon {
    font-size: 1.5rem;
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--red);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    font-size: 1.5rem;
}

.chatbot-header small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 240px;
}

.chat-message.bot .chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.chat-message.user .chat-bubble {
    background: var(--accent-primary);
    color: white;
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--accent-primary);
}

.chatbot-input button {
    padding: 10px 18px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: background 0.2s;
}

.chatbot-input button:hover {
    background: var(--accent-secondary);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    display: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card-large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reserves-dashboard {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .partners-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-right .nav-download, .nav-right .theme-toggle {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card-large {
        grid-column: span 1;
    }
    .earn-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .mock-body {
        grid-template-columns: 1fr;
    }
    .mock-orderbook {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .mock-trade-panel {
        grid-template-columns: 1fr;
    }
    .app-content {
        grid-template-columns: 1fr;
    }
    .app-mockup {
        order: -1;
    }
    .hero-stats-row {
        gap: 24px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    .chatbot-window {
        width: calc(100vw - 48px);
        right: -12px;
    }
}

@media (max-width: 480px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
    .partners-logos {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats-row {
        flex-direction: column;
        gap: 16px;
    }
    .app-buttons {
        flex-direction: column;
    }
}

/* ============================================
   Animations / Scroll Effects
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page-specific overrides for sub-pages */
.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-content {
    padding: 80px 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}
