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

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 36, 0.65);
  --bg-card-hover: rgba(28, 35, 56, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --primary-purple: #8a2be2;
  --accent-pink: #ff007f;
  --accent-green: #00f5a0;
  --accent-yellow: #ffb703;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --gradient-main: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8a2be2 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0,242,254,0.15) 0%, rgba(138,43,226,0.15) 100%);
  --gradient-accent: linear-gradient(135deg, #ff007f 0%, #7f00ff 100%);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(0, 242, 254, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #00f2fe, #7f00ff);
}

.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff007f, #4facfe);
}

.orb-3 {
  top: 40%;
  left: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #00f5a0, #00f2fe);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  50% { transform: scale(1.15) translate(20px, -15px); opacity: 0.45; }
  100% { transform: scale(0.95) translate(-15px, 20px); opacity: 0.3; }
}

/* Typography (Mobile First) */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #00f5a0 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile-First Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Mobile-First Navbar */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(12, 16, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

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

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.08);
}

.logo-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

/* Mobile Nav Drawer */
.nav-links {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: rgba(10, 14, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px rgba(0, 242, 254, 0.15);
}

.navbar.nav-open .nav-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:active {
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  padding: 10px 9px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar.nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons (Mobile First) */
.btn {
  padding: 9px 16px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 40px;
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-playstore {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: var(--text-main);
  border: 1px solid rgba(0, 245, 160, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.15);
  display: none;
}

.btn-playstore:hover {
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.2) 0%, rgba(0, 242, 254, 0.15) 100%);
  border-color: var(--accent-green);
  color: #fff;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  min-height: 48px;
}

/* Hero Section (Mobile First) */
.hero-section {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--primary-cyan);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-pill span.dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(15px, 4vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
  width: 100%;
}

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

.hero-cta-group .btn-playstore {
  display: inline-flex;
}

/* Stats Ribbon (Mobile First: 2-column grid) */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 8px 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Visual Showcase Container */
.showcase-container {
  position: relative;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.showcase-img-wrapper {
  position: relative;
  max-width: 960px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.8);
}

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

/* Section Header (Mobile First) */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 60px auto 36px;
}

.section-tag {
  color: var(--primary-cyan);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 6vw, 40px);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(14px, 3.5vw, 17px);
}

/* Features Grid (Mobile First: 1 column) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.15);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--primary-cyan);
}

.feature-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Simulators Section (Mobile First: 1 column) */
.interactive-section {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(18, 22, 36, 0.4) 0%, rgba(10, 13, 22, 0.8) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0;
}

.simulators-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sim-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

.sim-title {
  font-size: 19px;
}

/* AI Tester Inputs (Mobile First) */
.ai-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-input {
  width: 100%;
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
}

.ai-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.ai-input-group .btn {
  width: 100%;
}

.preset-queries {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover,
.preset-chip:active {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.ai-response-box {
  background: rgba(5, 7, 12, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-code);
  font-size: 12px;
  color: #a7f3d0;
  min-height: 140px;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Leverage Slider Box (Mobile First) */
.leverage-box {
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.slider-value {
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 16px;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  accent-color: var(--accent-pink);
}

.calc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  border: 1px solid var(--border-color);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Network Support Section (Mobile First) */
.chains-section {
  padding: 60px 0;
  text-align: center;
}

.chains-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.chain-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.chain-badge:hover {
  transform: translateY(-3px);
  border-color: var(--primary-cyan);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.2);
}

.chain-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

/* Security Banner (Mobile First: 1 column centered) */
.security-banner {
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
  margin: 40px 0 60px;
}

.security-badge {
  width: 72px;
  height: 72px;
  background: rgba(0, 245, 160, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.3);
}

/* Footer (Mobile First: 1 column stack) */
footer {
  border-top: 1px solid var(--border-color);
  padding: 44px 0 24px;
  background: rgba(5, 7, 12, 0.95);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 10px;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ==========================================================================
   Progressive Enhancement Breakpoints (Mobile First - min-width)
   ========================================================================== */

/* Small Devices / Phablets (min-width: 576px) */
@media (min-width: 576px) {
  .container {
    padding: 0 20px;
  }

  .btn-playstore {
    display: inline-flex;
  }

  .hero-cta-group {
    flex-direction: row;
    width: auto;
  }

  .hero-cta-group .btn {
    width: auto;
  }

  .ai-input-group {
    flex-direction: row;
  }

  .ai-input-group .btn {
    width: auto;
  }
}

/* Medium Devices / Tablets (min-width: 768px) */
@media (min-width: 768px) {
  .navbar {
    top: 20px;
    padding: 12px 28px;
    width: 90%;
  }

  .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

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

  .mobile-menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: 28px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    padding: 0;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: transparent;
  }

  .btn {
    padding: 10px 22px;
    font-size: 14px;
  }

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

  .hero-section {
    padding-top: 170px;
    padding-bottom: 100px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
  }

  .stat-item {
    padding: 0;
  }

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

  .feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
  }

  .feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    font-size: 26px;
  }

  .interactive-section {
    padding: 90px 0;
  }

  .sim-box {
    padding: 32px;
    border-radius: var(--radius-lg);
  }

  .metric-card {
    padding: 12px;
  }

  .chains-grid {
    gap: 20px;
  }

  .chain-badge {
    padding: 16px 28px;
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Large Devices / Desktops (min-width: 1024px) */
@media (min-width: 1024px) {
  .simulators-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .security-banner {
    grid-template-columns: 1fr 2fr;
    text-align: left;
    padding: 48px;
    border-radius: var(--radius-lg);
  }

  .security-badge {
    width: 100px;
    height: 100px;
    font-size: 48px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
