/*
 * ProfitNest — Premium Public Website Design System
 * Inspired by Stripe, Revolut, Linear, Coinbase
 * Dark Luxury + Glassmorphism + Neon Green Accent
 */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    --bg-main: #080C12;
    --bg-elevated: #080C12;
    --bg-card: #131C2D;
    --bg-card-solid: #131C2D;
    --bg-glass: #131C2D;

    --green: #14F195;
    --green-dim: #0ED987;
    --green-glow: rgba(20, 241, 149, 0.15);
    --green-glow-strong: rgba(20, 241, 149, 0.3);
    --cyan: #00D4FF;
    --purple: #7B61FF;

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-tertiary: #5A6577;
    --text-dark: #0A0E15;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-green: rgba(20, 241, 149, 0.2);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
    --shadow-green: 0 0 20px rgba(20, 241, 149, 0.15);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

.text-green { color: var(--green); }
.text-gradient {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }
.section-sm { padding: 60px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 60px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-header .badge-pill { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════════
   BADGE / PILL
   ═══════════════════════════════════════════ */
.badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: var(--green-glow);
    border: 1px solid var(--border-green);
    color: var(--green); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 28px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all var(--transition); border: none; outline: none;
    white-space: nowrap;
}
.btn i { width: 18px; height: 18px; }

.btn-primary {
    background: var(--green);
    color: var(--text-dark);
}
.btn-primary:hover {
    background: var(--green-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20,241,149,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20,241,149,0.1);
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-lg { height: 56px; padding: 0 36px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════ */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.glass-card:hover {
    border-color: var(--border-green);
    transform: translateY(-6px);
    box-shadow: var(--shadow-green), var(--shadow-md);
}

.glass-card-gradient {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    position: relative;
    padding: 1px;
}
.glass-card-gradient::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.glass-card-gradient:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-green);
}
.glass-card-gradient > .card-inner {
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 1px);
    height: 100%;
}

/* Solid cards */
.solid-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.solid-card:hover {
    border-color: var(--border-green);
    transform: translateY(-6px);
    box-shadow: var(--shadow-green), var(--shadow-md);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 48px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(8, 12, 20, 0.65);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(8, 12, 20, 0.92);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: #FFF;
}
.nav-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    color: #000;
}
.nav-logo-icon i { width: 20px; height: 20px; }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .btn { padding: 9px 20px; font-size: 13px; }

/* Mobile nav */
.mobile-toggle {
    display: none; background: transparent; border: none;
    color: var(--text-primary); padding: 8px;
}
.mobile-toggle i { width: 24px; height: 24px; }
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.6);
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav {
    display: none; position: fixed; top: 0; right: -300px; bottom: 0;
    width: 280px; z-index: 1001;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 24px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
}
.mobile-nav.active { right: 0; }
.mobile-nav-close {
    align-self: flex-end; background: none; border: none;
    color: var(--text-secondary); padding: 8px; cursor: pointer;
}
.mobile-nav-close i { width: 24px; height: 24px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.mobile-nav-links a {
    color: var(--text-secondary); font-size: 16px; font-weight: 500;
    padding: 14px 16px; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.mobile-nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.mobile-nav-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-actions .btn { width: 100%; }

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-section {
    min-height: 100vh; padding-top: 120px; padding-bottom: 80px;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-glow {
    display: none;
}
.hero-glow-1 {
    display: none;
}
.hero-glow-2 {
    display: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content > p { font-size: 18px; line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-image { position: relative; z-index: 1; }
.hero-image img { max-width: 100%; }

.trust-strip { display: flex; align-items: center; gap: 14px; }
.trust-avatars { display: flex; }
.trust-avatars img {
    width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid var(--bg-main);
    margin-right: -10px; object-fit: cover;
    background: var(--bg-card-solid);
}
.trust-text { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.trust-text strong { color: var(--text-primary); }

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════ */
.stats-strip {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; }
.stat-item { text-align: center; }
.stat-value { font-size: 36px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.02em; }
.stat-value .text-green { color: var(--green); }
.stat-label {
    font-size: 13px; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 6px;
}

/* ═══════════════════════════════════════════
   PLAN CARDS
   ═══════════════════════════════════════════ */
.plan-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    transition: all var(--transition);
}
.plan-card:hover {
    border-color: var(--border-green);
    transform: translateY(-6px);
    box-shadow: var(--shadow-green), var(--shadow-md);
}
.plan-card.recommended {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), var(--shadow-green);
    position: relative;
}
.plan-icon {
    display: flex; align-items: center; justify-content: flex-start;
    margin-bottom: 24px;
}
.plan-icon img { width: 72px; height: 72px; object-fit: contain; }
.plan-icon i { width: 48px; height: 48px; color: var(--green); }
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.plan-rate { font-size: 32px; font-weight: 900; color: var(--green); margin-bottom: 20px; }
.plan-rate span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.plan-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan-detail {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text-secondary);
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.plan-detail:last-child { border-bottom: none; }
.plan-detail i { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.plan-detail strong { color: var(--text-primary); margin-left: auto; }

/* ═══════════════════════════════════════════
   FEATURE / ICON CARDS
   ═══════════════════════════════════════════ */
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon i { width: 24px; height: 24px; }
.feature-icon.green { background: var(--green-glow); color: var(--green); }
.feature-icon.cyan { background: rgba(0,212,255,0.1); color: var(--cyan); }
.feature-icon.purple { background: rgba(123,97,255,0.1); color: var(--purple); }

/* ═══════════════════════════════════════════
   BLOG CARDS
   ═══════════════════════════════════════════ */
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card-img {
    height: 200px; overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body .badge-pill { margin-bottom: 12px; font-size: 11px; padding: 4px 10px; }
.blog-card-body h4 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 14px; margin-bottom: 16px; flex: 1; }
.blog-card-body a { font-size: 14px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════
   HOW IT WORKS / STEPS
   ═══════════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid var(--green); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    margin: 0 auto 20px;
    background: var(--bg-card-solid);
    position: relative; z-index: 2;
}
.step-card h4 { margin-bottom: 8px; }
.step-card p { font-size: 14px; }
/* Connecting line */
.steps-line {
    position: absolute; top: 28px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-green) 0, var(--border-green) 8px, transparent 8px, transparent 16px);
    z-index: 0;
}

/* ═══════════════════════════════════════════
   PAGE HERO (Inner Pages)
   ═══════════════════════════════════════════ */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,227,150,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .badge-pill { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px; font-family: var(--font);
    transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B98A8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}
.form-select option { background: var(--bg-card-solid); color: var(--text-primary); }

/* Alert messages */
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.alert i { width: 20px; height: 20px; flex-shrink: 0; }
.alert-success { background: rgba(0,227,150,0.08); border: 1px solid var(--border-green); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #EF4444; }

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-section {
    padding: 80px 0; text-align: center;
    background: linear-gradient(180deg, transparent, var(--bg-elevated));
}
.newsletter-form {
    display: flex; gap: 12px; max-width: 480px; margin: 24px auto 0;
}
.newsletter-form input {
    flex: 1; padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 15px;
}
.newsletter-form input:focus { outline: none; border-color: var(--green); }
.newsletter-form .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-primary); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 14px; color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
}
.footer-social a i { width: 18px; height: 18px; }
.footer-social a:hover {
    background: var(--green-glow);
    border-color: var(--border-green);
    color: var(--green);
}
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 30px; border-top: 1px solid var(--border);
    flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: var(--text-tertiary); }
.footer-bottom-links a:hover { color: var(--green); }

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    margin-bottom: 12px; overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-light); }
.faq-question {
    width: 100%; padding: 20px 24px;
    background: transparent; border: none;
    color: var(--text-primary); font-size: 16px; font-weight: 600;
    text-align: left; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.faq-question i {
    width: 20px; height: 20px; color: var(--text-tertiary);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px; line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
    text-align: center; padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(0,227,150,0.03));
    position: relative;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { font-size: 17px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   LEGAL / CONTENT PAGES
   ═══════════════════════════════════════════ */
.content-page { max-width: 800px; margin: 0 auto; padding: 60px 24px 100px; }
.content-page h3 { font-size: 20px; margin: 36px 0 12px; color: var(--text-primary); }
.content-page p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-right { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }
.slide-left { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .navbar { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav { display: flex; }

    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

    .hero-section { text-align: center; }
    .hero-content > p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .trust-strip { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 70%; margin: 0 auto; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .section-header { margin-bottom: 40px; }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { gap: 24px; }
    .stat-value { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .newsletter-form { flex-direction: column; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    .hero-section { padding-top: 100px; min-height: auto; }
    .hero-image img { max-width: 90%; }
    .steps-grid { grid-template-columns: 1fr; }
    .stat-item { min-width: 120px; }
}

/* User Dashboard Specific Mobile Fixes */
@media (max-width: 768px) {
    /* Forms inside cards */
    .glass-card form, .liquid-glass form { flex-direction: column; align-items: stretch !important; }
    .glass-card form > div, .liquid-glass form > div { width: 100% !important; flex: none !important; }
    .glass-card form button, .liquid-glass form button { width: 100%; margin-top: 10px; }

    /* Investment/Item Lists */
    .glass-card > div > div[style*="display:flex;align-items:center"] {
        flex-direction: column; text-align: center; gap: 12px !important;
    }
    .glass-card > div > div[style*="display:flex;align-items:center"] > div[style*="text-align:right"] {
        text-align: center !important; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    }
    .glass-card > div > div[style*="display:flex;align-items:center"] button,
    .glass-card > div > div[style*="display:flex;align-items:center"] a {
        width: 100%; justify-content: center;
    }

    /* Table Wrappers */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    /* Settings Layout & Deposit Layouts */
    .settings-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .settings-avatar-row { flex-direction: column; text-align: center; }
    div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    
    /* Hero Banners in Dashboard (Refer & Earn, etc) */
    .hero-banner-new { flex-direction: column; text-align: center; padding: 30px 20px !important; }
    .hbn-content { padding-right: 0 !important; }
    .hbn-img { position: relative !important; right: auto !important; bottom: auto !important; width: 200px !important; margin: 20px auto 0 !important; opacity: 0.9; }
    .ref-copy-box { flex-direction: column; }
    .ref-copy-btn { width: 100%; justify-content: center; }
}

