/* ══════════════════════════════════════════════════════════════
   HedgeBot Analytics — Design System (Cyber-Fintech Dark)
   Fonts: Inter (display) + Fira Code (data)
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-primary: #11161D;
  --bg-secondary: #1A222C;
  --bg-card: rgba(26, 34, 44, 0.7);
  --bg-glass: rgba(26, 34, 44, 0.5);
  --border-glass: #2A3441;
  --text-primary: #FFFFFF;
  --text-secondary: #8E99A8;
  --text-muted: #64748b;
  --accent-cyan: #00F0FF;
  --accent-violet: #9B51E0;
  --accent-blue: #00F0FF;
  --accent-orange: #F5A623;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --gradient-primary: linear-gradient(135deg, #00F0FF, #9B51E0);
  --gradient-hero: linear-gradient(135deg, #11161D 0%, #1A222C 40%, #11161D 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-data: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --shadow-glow-cyan: 0 0 15px rgba(0, 240, 255, 0.2);
  --shadow-glow-violet: 0 0 15px rgba(155, 81, 224, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.nav.scrolled {
  padding: 10px 40px;
  background: rgba(10, 14, 23, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-brand img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-brand:hover .logo-hex {
  transform: rotate(15deg);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

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

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #0a0e17;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

/* ── Mobile Menu ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ── Sections ── */
section {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Glass Cards ── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.glass-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.glass-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.glass-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Stat Cards ── */
.stat-card {
  text-align: center;
  padding: 28px 20px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0a0e17;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
  color: #0a0e17;
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ml {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-analytics {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Tabular figures for data tables and metrics */
.tabular-nums,
.stat-value,
.data-table {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Staggered children */
.stagger>* {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ── Animated Gradient Mesh (Hero Background) ── */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  animation: meshFloat1 12s ease-in-out infinite;
}

.mesh-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -50px;
  left: -50px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  animation: meshFloat2 15s ease-in-out infinite;
}

@keyframes meshFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-60px, 40px) scale(1.1);
  }

  66% {
    transform: translate(30px, -30px) scale(0.95);
  }
}

@keyframes meshFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -50px) scale(1.15);
  }
}

/* A third gradient orb */
.mesh-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  animation: meshFloat3 18s ease-in-out infinite;
}

@keyframes meshFloat3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(80px, 30px);
  }

  75% {
    transform: translate(-40px, -60px);
  }
}

/* ── Separator Line ── */
.separator {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), rgba(0, 212, 170, 0.2), var(--border-glass), transparent);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-violet), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Tech Stack Badges ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.tech-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ── Rental CTA Banner ── */
/* ── CTA Grid (side-by-side) ── */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.cta-grid .rental-cta {
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px;
  }
}

.rental-cta {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(139, 92, 246, 0.06));
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.rental-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.rental-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(0, 212, 170, 0.03) 25%, transparent 50%, rgba(139, 92, 246, 0.03) 75%, transparent 100%);
  animation: rentalSpin 8s linear infinite;
  pointer-events: none;
}

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

.rental-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 212, 170, 0.12), 0 4px 20px rgba(139, 92, 246, 0.08);
}

.rental-cta-content {
  position: relative;
  z-index: 1;
}

.rental-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(139, 92, 246, 0.15));
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.rental-cta-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.rental-cta-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.rental-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0088cc, #00aaee);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.rental-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.35);
  color: #fff;
}

.rental-cta-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rental-cta-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .rental-cta {
    margin: 0 20px;
    padding: 28px 24px;
  }
}

.footer {
  padding: 60px 40px 30px;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 24px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 30px;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
}

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

/* ── Data Table (subpages) ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(0, 212, 170, 0.04);
}

/* ── Feature List ── */
.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  section {
    padding: 80px 24px;
  }

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

@media (max-width: 768px) {

  /* ── Nav ── */
  .nav {
    padding: 12px 16px;
  }

  .nav.scrolled {
    padding: 8px 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open a {
    font-size: 1rem;
    padding: 8px 0;
  }

  /* ── Sections ── */
  section {
    padding: 60px 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
  }

  .section-label {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }

  /* ── Glass Cards ── */
  .glass-card {
    padding: 24px 20px;
  }

  .glass-card:hover {
    transform: none;
  }

  .glass-card .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .glass-card .card-title {
    font-size: 1.05rem;
  }

  .glass-card .card-desc {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* ── Stat Cards ── */
  .stat-card {
    padding: 20px 14px;
  }

  .stat-value {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* ── Buttons ── */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

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

  /* ── Timeline ── */
  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    margin-bottom: 28px;
    padding-left: 16px;
  }

  .timeline-date {
    font-size: 0.7rem;
  }

  .timeline-title {
    font-size: 0.95rem;
  }

  .timeline-desc {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  /* ── Tech Stack ── */
  .tech-stack {
    gap: 10px;
  }

  .tech-badge {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  /* ── Footer ── */
  .footer {
    padding: 40px 16px 24px;
  }

  .footer-links {
    gap: 12px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }

  /* ── Separator ── */
  .separator {
    margin: 0 16px;
  }

  /* ── Screenshot ── */
  .screenshot-showcase {
    margin: 24px 0;
    border-radius: 12px;
  }

  .screenshot-showcase:hover {
    transform: none;
  }

  .screenshot-showcase .screenshot-caption {
    padding: 10px 14px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }

  /* ── Rental CTA ── */
  .rental-cta {
    margin-top: 40px !important;
  }

  .rental-cta-content {
    padding: 28px 20px;
  }

  .rental-cta-icon {
    font-size: 2rem;
  }

  .rental-cta-title {
    font-size: 1.1rem;
  }

  .rental-cta-desc {
    font-size: 0.85rem;
  }

  .rental-cta-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .rental-cta-note {
    font-size: 0.7rem;
  }

  /* ── Data Table ── */
  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .nav-brand span {
    display: none;
  }

  section {
    padding: 48px 12px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  .glass-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .glass-card .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .glass-card .card-title {
    font-size: 0.95rem;
  }

  .glass-card .card-desc {
    font-size: 0.82rem;
  }

  .stat-card {
    padding: 16px 10px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .tech-stack {
    gap: 8px;
  }

  .tech-badge {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .footer-links {
    gap: 10px 16px;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  .footer-copy {
    font-size: 0.68rem;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline-item {
    margin-bottom: 24px;
    padding-left: 12px;
  }

  .timeline-title {
    font-size: 0.88rem;
  }

  .timeline-desc {
    font-size: 0.78rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    width: auto;
  }

  .screenshot-showcase {
    border-radius: 10px;
  }

  .screenshot-showcase .screenshot-caption {
    font-size: 0.68rem;
    padding: 8px 12px;
  }

  .rental-cta-content {
    padding: 24px 16px;
  }

  .rental-cta-title {
    font-size: 1rem;
  }

  .rental-cta-desc {
    font-size: 0.8rem;
  }

  .rental-cta-desc br {
    display: none;
  }

  .rental-cta-btn {
    padding: 10px 20px;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  .cookie-banner {
    padding: 0 10px 10px;
  }

  .cookie-banner-inner {
    padding: 16px;
    border-radius: 12px;
  }

  .cookie-banner-title {
    font-size: 0.85rem;
  }

  .cookie-banner-desc {
    font-size: 0.75rem;
  }

  .cookie-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .glass-card {
    padding: 14px;
  }

  .glass-card .card-desc {
    font-size: 0.78rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ═══ Screenshot Showcase ═══ */
.screenshot-showcase {
  margin: 40px auto !important;
  max-width: 700px !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.06), 0 0 60px rgba(0, 212, 170, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08), 0 0 80px rgba(0, 212, 170, 0.08);
}

.screenshot-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-showcase .screenshot-caption {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.screenshot-showcase .screenshot-caption .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px auto !important;
  max-width: 900px !important;
}

.screenshot-grid .screenshot-showcase {
  margin: 0 !important;
  max-width: none !important;
}

/* ═══ Feature Row (revert.finance style) ═══ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.feature-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.feature-row.reverse .feature-row-text {
  order: 2;
}

.feature-row.reverse .feature-row-media {
  order: 1;
}

.feature-row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-label {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'Fira Code', 'Fira Code', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  font-family: 'Fira Code', 'Fira Code', monospace;
}

.feature-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.feature-row-media .screenshot-showcase {
  margin: 0 !important;
  max-width: none !important;
  border-radius: 12px;
}

.feature-row+.feature-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Feature Row responsive */
@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 40px 20px;
  }

  .feature-row.reverse .feature-row-text,
  .feature-row.reverse .feature-row-media {
    order: unset;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-desc {
    font-size: 0.85rem;
  }
}

/* ═══ Cookie Consent Banner ═══ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0 20px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-banner-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(15, 20, 35, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 16px;
  box-shadow: 0 -4px 30px rgba(255, 255, 255, 0.06), 0 0 60px rgba(0, 212, 170, 0.06);
}

.cookie-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.cookie-banner-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-details {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-details p {
  margin: 0 0 8px;
}

.cookie-details ul {
  margin: 0 0 8px;
  padding-left: 16px;
  list-style: none;
}

.cookie-details ul li {
  margin-bottom: 4px;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.cookie-btn-accept {
  background: var(--accent-green);
  color: var(--bg-primary);
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.3);
}

.cookie-btn-accept:hover {
  background: #00f5c8;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.5);
  transform: translateY(-1px);
}

.cookie-btn-details {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-btn-details:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-icon {
    display: none;
  }

  .cookie-banner-actions {
    flex-direction: row;
    margin-top: 12px;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ═══ Exchange Marquee (Infinite Scroll) ═══ */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  gap: 24px;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 12px));
  }

  /* Shift by half since duplicated */
}

/* ═══ Target Audience Section ═══ */
.audience-layout {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 48px;
  align-items: start;
}

.audience-heading {
  position: relative;
}

.audience-title {
  font-family: 'Montserrat', var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.audience-carousel {
  position: relative;
}

.audience-card {
  display: none;
  padding: 32px !important;
  border-top: 3px solid transparent;
}

.audience-card.active {
  display: block;
  animation: fadeIn 0.7s ease both;
}

.audience-card.fade-out {
  display: block;
  animation: fadeOut 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.audience-card.active[data-accent="gold"] {
  border-top-color: #F5A623;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.08);
}

.audience-card.active[data-accent="cyan"] {
  border-top-color: #00F0FF;
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.08);
}

.audience-card.active[data-accent="teal"] {
  border-top-color: #00D4AA;
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.08);
}

.audience-card.active[data-accent="purple"] {
  border-top-color: #9B51E0;
  box-shadow: 0 4px 24px rgba(155, 81, 224, 0.08);
}

.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.audience-icon svg {
  width: 24px;
  height: 24px;
}

.audience-card-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.audience-card[data-accent="gold"] .audience-card-label {
  color: #F5A623;
}

.audience-card[data-accent="cyan"] .audience-card-label {
  color: #00F0FF;
}

.audience-card[data-accent="teal"] .audience-card-label {
  color: #00D4AA;
}

.audience-card[data-accent="purple"] .audience-card-label {
  color: #9B51E0;
}

.audience-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.audience-card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .audience-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .audience-dots {
    justify-content: center;
  }
}

.exchange-badge-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 40px;
  font-family: 'Fira Code', 'Fira Code', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.exchange-badge-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06), 0 0 40px rgba(0, 212, 170, 0.1);
  color: #fff;
}

.ex-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.exchange-badge-pill:hover .ex-logo {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.4));
}

/* ═══ How It Works Grid & Animated Network ═══ */
.how-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.node-network-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  mix-blend-mode: screen;
}

.node-network {
  width: 100%;
  height: 100%;
}

.animated-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-path 8s ease-in-out infinite alternate;
}

.animated-path.reverse {
  animation-direction: alternate-reverse;
  animation-duration: 6s;
}

@keyframes draw-path {
  0% {
    stroke-dashoffset: 2000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.pulse-node {
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    fill: #00d4aa;
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
    fill: #8b5cf6;
  }
}

.packet {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-visual {
    height: 350px;
    order: -1;
  }

  .marquee-wrapper {
    padding: 20px 0;
  }

  .exchange-badge-pill {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   PREMIUM EFFECTS — Phase 8
   ══════════════════════════════════════════════════════════════ */

/* ── Effect 1: Hero Ambient Glow Orbs ── */
.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform, opacity;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, transparent 70%);
  top: 10%;
  left: 20%;
  animation: orbBreathe1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  top: 30%;
  right: 15%;
  animation: orbBreathe2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 40%;
  animation: orbBreathe3 12s ease-in-out infinite;
}

@keyframes orbBreathe1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(30px, -20px) scale(1.15);
    opacity: 0.5;
  }
}

@keyframes orbBreathe2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.25;
  }

  50% {
    transform: translate(-40px, 25px) scale(1.2);
    opacity: 0.45;
  }
}

@keyframes orbBreathe3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }

  50% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.4;
  }
}


/* ── Effect 2: Spotlight Card Borders ── */
.glass-card {
  position: relative;
  overflow: visible;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 212, 170, 0.55),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 212, 170, 0.04),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover::before,
.glass-card:hover::after {
  opacity: 1;
}

/* Ensure card children are above pseudo-elements */
.glass-card>* {
  position: relative;
  z-index: 1;
}


/* ── Effect 3: 3D Tilt Screenshots ── */
.screenshot-wrap {
  perspective: 800px;
  overflow: visible;
}

.screenshot-wrap img {
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.screenshot-wrap:hover img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Glare overlay */
.screenshot-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
      rgba(255, 255, 255, 0.06),
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.screenshot-wrap:hover::after {
  opacity: 1;
}

/* LIVE badge pulse */
.badge-live {
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}


/* ── Effect 4: SVG Draw-on-Scroll ── */
.animated-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 0.05s linear;
}

.animated-path.drawing {
  /* JS controls stroke-dashoffset */
}

.pulse-node {
  transition: r 0.5s ease, opacity 0.5s ease;
}

.pulse-node.flash {
  animation: nodeFlash 0.8s ease-out;
}

@keyframes nodeFlash {
  0% {
    r: 8;
    filter: drop-shadow(0 0 0 rgba(0, 212, 170, 0));
  }

  50% {
    r: 14;
    filter: drop-shadow(0 0 16px rgba(0, 212, 170, 0.8));
  }

  100% {
    r: 8;
    filter: drop-shadow(0 0 0 rgba(0, 212, 170, 0));
  }
}

/* Step numbers glow when reached */
.step-number {
  transition: all 0.5s ease;
}

.step-number.active {
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.5), 0 0 40px rgba(0, 212, 170, 0.2);
  transform: scale(1.1);
}


/* ── Effect 5: Magnetic CTA + Glow Hover ── */
.btn-primary {
  transition: all 0.3s ease, transform 0.15s ease-out;
  will-change: transform, box-shadow;
}

.btn-primary:hover {
  box-shadow:
    0 0 20px rgba(0, 212, 170, 0.4),
    0 0 40px rgba(0, 212, 170, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-primary.magnetic {
  transition: transform 0.12s ease-out;
}

.nav-cta {
  transition: all 0.3s ease, transform 0.15s ease-out;
}

.nav-cta:hover {
  box-shadow:
    0 0 16px rgba(0, 212, 170, 0.35),
    0 0 30px rgba(0, 212, 170, 0.1);
}

/* CTA rental cards glow */
.rental-cta {
  transition: all 0.4s ease, transform 0.15s ease-out;
}

.rental-cta:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 30px rgba(0, 212, 170, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Telegram button glow */
.btn-telegram {
  transition: all 0.3s ease;
}

.btn-telegram:hover {
  box-shadow:
    0 0 20px rgba(42, 171, 238, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}