/* ============================================================
   KEROSWAP — Black / Red Theme
   Part 1: Variables, Reset, Base, Background FX, Nav, Hero,
           Swap Widget
   ============================================================ */

/* --------------------------------------------------
   VARIABLES
   -------------------------------------------------- */
:root {
    /* Core palette */
    --bg:              #050505;
    --bg-elevated:     #0a0a0a;
    --bg-card:         #0d0d0d;
    --bg-card-hover:   #121212;
    --bg-input:        #0f0f0f;

    /* Red spectrum */
    --red:             #ef4444;
    --red-bright:      #ff3737;
    --red-dim:         #b91c1c;
    --red-dark:        #7f1d1d;
    --red-glow:        rgba(239, 68, 68, 0.35);
    --red-glow-soft:   rgba(239, 68, 68, 0.12);
    --red-glow-faint:  rgba(239, 68, 68, 0.05);

    /* Text */
    --text-primary:    #f5f5f5;
    --text-secondary:  #a3a3a3;
    --text-tertiary:   #525252;
    --text-inverse:    #0a0a0a;

    /* Accents */
    --green:           #22c55e;
    --amber:           #f59e0b;

    /* Borders */
    --border:          rgba(255, 255, 255, 0.07);
    --border-hover:    rgba(239, 68, 68, 0.3);
    --border-red:      rgba(239, 68, 68, 0.2);

    /* Effects */
    --glow-red:        0 0 20px rgba(239, 68, 68, 0.25), 0 0 60px rgba(239, 68, 68, 0.08);
    --glow-red-strong: 0 0 30px rgba(239, 68, 68, 0.4), 0 0 80px rgba(239, 68, 68, 0.15);
    --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-pop:      0 8px 32px rgba(0, 0, 0, 0.8), 0 0 1px rgba(239, 68, 68, 0.15);

    /* Type */
    --font-display:    'Space Grotesk', sans-serif;
    --font-body:       'Inter', sans-serif;

    /* Layout */
    --container-max:   1200px;
    --nav-height:      72px;
    --radius-sm:       8px;
    --radius-md:       12px;
    --radius-lg:       16px;
    --radius-xl:       20px;

    /* Transitions */
    --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
    color: inherit;
    background: none;
}

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

::selection {
    background: var(--red);
    color: var(--text-inverse);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--red-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* --------------------------------------------------
   BACKGROUND LAYERS
   -------------------------------------------------- */

/* Noise texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, var(--red-glow-soft) 0%, transparent 70%);
    animation: orbFloat1 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(127, 29, 29, 0.1) 0%, transparent 70%);
    animation: orbFloat2 25s ease-in-out infinite alternate;
}

.orb-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, var(--red-glow-faint) 0%, transparent 70%);
    animation: orbFloat3 18s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-60px, 80px) scale(1.15); }
}

@keyframes orbFloat2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(80px, -60px) scale(0.9); }
}

@keyframes orbFloat3 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, -40px) scale(1.2); }
}

/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
}

/* --------------------------------------------------
   GENERIC / UTILITIES
   -------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 50%, var(--red-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-inline {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    color: var(--text-secondary);
}

/* --------------------------------------------------
   BUTTONS
   -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--red);
    color: var(--text-inverse);
    box-shadow: var(--glow-red);
}

.btn-primary:hover:not(:disabled) {
    background: var(--red-bright);
    box-shadow: var(--glow-red-strong);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--red-glow-faint);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-connected {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-connected:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Icon button (small square) */
.icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: var(--red);
    border-color: var(--border-hover);
    background: var(--red-glow-faint);
}

/* Wallet dot */
.wallet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-glow);
    animation: pulseDot 2s ease-in-out infinite;
}

.wallet-dot-green {
    background: var(--green);
    animation: none;
}

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

/* Pulse dot (hero badge) */
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--green);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------
   NAVIGATION
   -------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: all 0.3s var(--ease-out);
}

.nav-scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--red);
    filter: drop-shadow(0 0 6px var(--red-glow));
}

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

.logo-accent {
    color: var(--red);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--red);
    transition: width 0.25s var(--ease-out);
    border-radius: 1px;
}

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

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------
   HERO
   -------------------------------------------------- */
.hero {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 48px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px 64px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    width: fit-content;
}

.hero-badge .pulse-dot {
    margin-right: 4px;
}

/* Headline */
.hero h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

/* Sub */
.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

/* CTAs */
.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

/* Trust metrics */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.trust-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* --------------------------------------------------
   SWAP WIDGET
   -------------------------------------------------- */
.swap-widget-wrap {
    position: relative;
    z-index: 2;
}

.swap-card {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: visible;
}

/* Red glow accent on top edge */
.swap-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.6;
}

.swap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.swap-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.swap-settings {
    position: relative;
}

/* Slippage popover */
.slippage-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    min-width: 220px;
    box-shadow: var(--shadow-pop);
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
    pointer-events: none;
    transition: all 0.2s var(--ease-out);
    z-index: 50;
}

.slippage-popover.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.popover-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.slippage-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.slip-opt {
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.slip-opt:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.slip-opt.active {
    background: var(--red);
    color: var(--text-inverse);
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}

/* Swap fields */
.swap-field {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swap-field:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--red-glow-faint), 0 0 20px var(--red-glow-faint);
}

.swap-field-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.field-balance {
    font-size: 12px;
    color: var(--text-tertiary);
}

.field-balance span {
    color: var(--text-secondary);
    font-weight: 500;
}

.swap-field-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amount-input {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    min-width: 0;
    background: transparent;
    caret-color: var(--red);
}

.amount-input::placeholder {
    color: var(--text-tertiary);
}

.amount-input[readonly] {
    color: var(--text-secondary);
}

/* Token select button */
.token-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.token-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.chev {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.swap-field-bottom {
    display: flex;
    justify-content: flex-start;
}

.usd-value {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Flip button */
.swap-flip-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin: -6px 0;
}

.swap-flip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.swap-flip:hover {
    color: var(--red);
    border-color: var(--red-dark);
    transform: rotate(180deg);
    box-shadow: var(--glow-red);
}

/* Route info */
.swap-route {
    background: var(--red-glow-faint);
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.route-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.route-row span:first-child {
    color: var(--text-tertiary);
}

.route-row span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.route-path {
    color: var(--red) !important;
    font-size: 12px !important;
}

.impact-good   { color: var(--green) !important; }
.impact-warning { color: var(--amber) !important; }
.impact-bad    { color: var(--red-bright) !important; }

/* Swap button */
.btn-swap {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* Swap footer */
.swap-footer {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.swap-footer-text {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}
/* --------------------------------------------------
   SECTION HEADERS (shared)
   -------------------------------------------------- */
.section {
    position: relative;
    z-index: 1;
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--red-glow-faint);
    border: 1px solid var(--border-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
}

.section-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-primary);
    max-width: 640px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

/* --------------------------------------------------
   MARQUEE
   -------------------------------------------------- */
.marquee-section {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.5);
    overflow: hidden;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    padding: 8px 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s ease;
}

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

.marquee-item .token-icon {
    width: 20px;
    height: 20px;
}

.marquee-item .item-price {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
}

.marquee-item .item-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.item-change.up {
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
}

.item-change.down {
    color: var(--red-bright);
    background: var(--red-glow-faint);
}

.marquee-sep {
    color: var(--text-tertiary);
    opacity: 0.3;
    font-size: 12px;
}

/* --------------------------------------------------
   STATS
   -------------------------------------------------- */
.stats {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, var(--red-glow-faint) 0%, transparent 70%),
        var(--bg);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-red);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--red-glow-faint);
    border: 1px solid var(--border-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.1;
}

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

/* --------------------------------------------------
   CHAINS
   -------------------------------------------------- */
.chain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.chain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.chain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chain-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-red);
}

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

.chain-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    overflow: hidden;
}

.chain-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.chain-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.chain-tvl {
    color: var(--text-secondary);
    font-weight: 500;
}

.chain-tokens {
    font-size: 12px;
}

/* --------------------------------------------------
   FEATURES
   -------------------------------------------------- */
.features {
    background:
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(127, 29, 29, 0.06) 0%, transparent 70%),
        var(--bg);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Subtle corner glow on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--red-glow-faint) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--red-glow-faint);
    border: 1px solid var(--border-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------- */
.how-it-works {
    background: var(--bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.3s var(--ease-out);
}

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

/* Connector line (desktop) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--red-dark), transparent);
    z-index: 1;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--red-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    position: relative;
    z-index: 2;
}

.step:hover .step-num {
    background: var(--red);
    color: var(--text-inverse);
    border-color: var(--red);
    box-shadow: var(--glow-red);
}

.step-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------
   CTA SECTION
   -------------------------------------------------- */
.cta-section {
    padding: 96px 0 120px;
    position: relative;
    z-index: 1;
}

.cta-card {
    position: relative;
    background:
        radial-gradient(ellipse 80% 100% at 50% 100%, rgba(127, 29, 29, 0.15) 0%, transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

/* Top edge glow */
.cta-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* Bottom reflection */
.cta-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    max-width: 560px;
    line-height: 1.2;
}

.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

/* CTA background flourish */
.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, var(--red-glow-soft) 0%, transparent 70%);
    pointer-events: none;
}
/* --------------------------------------------------
   TOKEN SELECTOR MODAL
   -------------------------------------------------- */
.token-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.token-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.token-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-pop), var(--glow-red);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s var(--ease-snap);
    overflow: hidden;
}

.token-modal.open .token-modal-content {
    transform: translateY(0) scale(1);
}

/* Top edge accent */
.token-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.7;
}

.token-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.token-modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.token-modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.token-modal-close:hover {
    color: var(--red);
    border-color: var(--border-hover);
    background: var(--red-glow-faint);
}

.token-search-wrap {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.token-search {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.token-search::placeholder {
    color: var(--text-tertiary);
}

.token-search:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--red-glow-faint), 0 0 16px var(--red-glow-faint);
}

/* Token list */
.token-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.token-list::-webkit-scrollbar {
    width: 4px;
}

.token-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    text-align: left;
}

.token-row:hover {
    background: var(--red-glow-faint);
}

.token-row:active {
    background: rgba(239, 68, 68, 0.1);
}

.token-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--border);
    object-fit: cover;
}

.token-row-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

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

.token-row-name {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.token-row-price {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.token-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* --------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 260px;
    max-width: 380px;
    pointer-events: auto;
    animation: toastIn 0.3s var(--ease-snap) forwards;
    position: relative;
    overflow: hidden;
}

/* Colored left edge */
.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
}

.toast-success::before {
    background: var(--green);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-error::before {
    background: var(--red-bright);
    box-shadow: 0 0 8px var(--red-glow);
}

.toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--red);
}

.toast-success .toast-icon {
    color: var(--green);
}

.toast-error .toast-icon {
    color: var(--red-bright);
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast.hiding {
    animation: toastOut 0.25s var(--ease-out) forwards;
}

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

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

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--red-dark) 50%, transparent 90%);
    opacity: 0.4;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-brand .logo {
    font-size: 20px;
}

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

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--red);
    border-color: var(--border-hover);
    background: var(--red-glow-faint);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    color: var(--red);
    padding-left: 4px;
}

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

.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* --------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------
   RESPONSIVE — TABLET (≤1024px)
   -------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --container-max: 900px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px 80px;
    }

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

    .hero h1 {
        font-size: 44px;
    }

    .hero-sub {
        margin: 0 auto;
    }

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

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

    .swap-card {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* --------------------------------------------------
   RESPONSIVE — MOBILE (≤768px)
   -------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    /* Nav collapses to hamburger */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s var(--ease-out);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: var(--red-glow-faint);
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--nav-height) + 32px);
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -0.5px;
    }

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

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .trust-value {
        font-size: 20px;
    }

    .trust-divider {
        display: none;
    }

    /* Swap widget */
    .swap-card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .amount-input {
        font-size: 22px;
    }

    .token-select {
        padding: 6px 10px;
        font-size: 13px;
    }

    .token-icon {
        width: 20px;
        height: 20px;
    }

    /* Stats */
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 24px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Chains */
    .chain-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .chain-card {
        padding: 20px;
    }

    .chain-logo {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Steps */
    .steps {
        gap: 14px;
    }

    .step {
        padding: 24px 20px;
    }

    /* Section headers */
    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
        padding: 0 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-sub {
        font-size: 14px;
    }

    /* CTA */
    .cta-section {
        padding: 64px 0 80px;
    }

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

    .cta-title {
        font-size: 26px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Marquee */
    .marquee-track {
        animation-duration: 25s;
        gap: 32px;
    }

    .marquee-item {
        font-size: 13px;
    }

    /* Toast */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* --------------------------------------------------
   RESPONSIVE — SMALL MOBILE (≤480px)
   -------------------------------------------------- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-cta {
        max-width: none;
    }

    .swap-card {
        padding: 12px;
    }

    .swap-field {
        padding: 12px;
    }

    .swap-field-main {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .amount-input {
        text-align: center;
    }

    .token-select {
        justify-content: center;
        width: 100%;
    }

    .swap-flip {
        width: 36px;
        height: 36px;
    }

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

    .trust-item {
        gap: 0;
    }

    .stat-card {
        padding: 18px;
        gap: 12px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Section tags shrink */
    .section-tag {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .section-title {
        font-size: 22px;
    }

    /* Slippage */
    .slippage-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .slip-opt {
        padding: 10px 4px;
    }
}

/* --------------------------------------------------
   RESPONSIVE — ULTRA SMALL (≤360px)
   -------------------------------------------------- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-trust {
        gap: 12px;
    }

    .trust-value {
        font-size: 17px;
    }

    .btn-primary,
    .btn-ghost {
        font-size: 13px;
        padding: 12px 18px;
    }

    .token-row-icon {
        width: 30px;
        height: 30px;
    }
}

/* --------------------------------------------------
   LARGE DESKTOP (≥1440px)
   -------------------------------------------------- */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .section-title {
        font-size: 46px;
    }

    .stat-grid,
    .chain-grid {
        gap: 24px;
    }
}

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

    .marquee-track {
        animation: none;
    }

    .orb {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    .pulse-dot::after {
        animation: none;
        display: none;
    }

    .toast {
        animation: none;
        opacity: 1;
    }
}

/* --------------------------------------------------
   PRINT (hide interactive elements)
   -------------------------------------------------- */
@media print {
    .nav,
    .swap-widget-wrap,
    .toast-container,
    .token-modal,
    #particles,
    .noise-overlay,
    .orb,
    .marquee-section,
    .footer-social {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 24px 0;
    }
}
/* ===== COMPACT CHAIN PILLS ===== */

.section-networks {
    padding: 48px 0;
}

.networks-header {
    text-align: center;
    margin-bottom: 24px;
}

.networks-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.networks-header .text-red {
    color: #ef4444;
}

.chain-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}

.chain-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.chain-pill:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.06);
    transform: translateY(-2px);
}

.chain-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.chain-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.chain-pill > span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .section-networks {
        padding: 36px 0;
    }
    .chain-pill-grid {
        gap: 8px;
    }
    .chain-pill {
        padding: 8px 14px;
    }
    .chain-pill > span:last-child {
        font-size: 0.8rem;
    }
}