/* ==========================================================================
   GasShield AI — Luxury Web3 Landing Page Stylesheet
   Design Philosophy: Cyber Noir, Neon Emerald, Glassmorphism, High-Density Tech
   ========================================================================== */

:root {
  --bg-dark: #06080e;
  --bg-secondary: #0c101a;
  --bg-card: rgba(16, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 30, 48, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 245, 155, 0.35);
  --accent-emerald: #00f59b;
  --accent-cyan: #00d2ff;
  --accent-gold: #ffb800;
  --accent-red: #ff4757;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #53627a;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   BACKGROUND GLOWING ORBS
   -------------------------------------------------------------------------- */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
  top: -100px;
  left: 20%;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 40%;
  right: -150px;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7928ca 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
}

/* --------------------------------------------------------------------------
   NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
}

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

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

.brand-shield-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.15), rgba(0, 210, 255, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 245, 155, 0.25);
}

.brand-shield-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-emerald);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 15px rgba(0, 245, 155, 0.4);
  border: 1px solid rgba(0, 245, 155, 0.35);
  object-fit: cover;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 10px rgba(0, 245, 155, 0.3);
  object-fit: cover;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

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

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-emerald);
}

.nav-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-ref-badge {
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.nav-ref-link:hover .nav-ref-badge {
  background: rgba(0, 245, 155, 0.18);
  border-color: rgba(0, 245, 155, 0.45);
  color: #00f59b;
}

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

.btn-nav-paper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-paper:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(0, 245, 155, 0.4);
}

.btn-nav-launch {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #040810;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(0, 245, 155, 0.35);
  transition: all 0.2s ease;
}

.btn-nav-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 245, 155, 0.55);
}

.btn-nav-admin {
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.28);
  color: var(--accent-emerald);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-nav-admin:hover {
  background: rgba(0, 245, 155, 0.18);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(0, 245, 155, 0.25);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   TELEMETRY LIVE RIBBON
   -------------------------------------------------------------------------- */
.telemetry-ribbon {
  background: rgba(12, 16, 26, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: nowrap;
}

.ribbon-track {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: blink-pulse 2s infinite;
}

@keyframes blink-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ribbon-label {
  color: var(--text-dim);
}

.ribbon-val {
  color: var(--text-main);
  font-weight: 700;
}

.ribbon-highlight {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 20px 60px;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent-emerald);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-emerald) 20%, var(--accent-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-subtext strong {
  color: #fff;
}

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

.btn-hero-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #00f59b 0%, #00d2ff 100%);
  color: #040810;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-sans);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 245, 155, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 245, 155, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: brightness(1.05);
}

.btn-hero-primary-glow .btn-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-sans);
  text-align: left;
  border: 1px solid rgba(0, 245, 155, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-glass:hover {
  transform: translateY(-2px);
  background: rgba(0, 245, 155, 0.1);
  border-color: #00f59b;
  box-shadow: 0 12px 32px rgba(0, 245, 155, 0.2);
}

.btn-hero-glass .btn-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-text-col {
  display: flex;
  flex-direction: column;
}

.btn-hero-primary-glow .btn-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #040810;
  line-height: 1.25;
}

.btn-hero-primary-glow .btn-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(4, 8, 16, 0.75);
  margin-top: 2px;
}

.btn-hero-glass .btn-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
  line-height: 1.25;
}

.btn-hero-glass .btn-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 2px;
}

.btn-arrow {
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-hero-primary-glow:hover .btn-arrow,
.btn-hero-glass:hover .btn-arrow {
  transform: translateX(3px);
}

/* Quick Access Links Ribbon */
.hero-quick-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.quick-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

.quick-link-item {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link-item:hover {
  color: var(--accent-emerald);
  background: rgba(0, 245, 155, 0.08);
  border-color: rgba(0, 245, 155, 0.35);
  transform: translateY(-1px);
}

/* Hero Metrics Bar */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(6, 8, 14, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.metric-card {
  text-align: center;
  position: relative;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #00f59b 20%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (3 SIMPLE STEPS)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(6, 8, 14, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 155, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 245, 155, 0.1);
}

.step-card.highlight-step {
  border: 1px solid rgba(0, 245, 155, 0.35);
  background: linear-gradient(180deg, rgba(0, 245, 155, 0.06) 0%, rgba(15, 23, 42, 0.7) 100%);
  box-shadow: 0 12px 32px rgba(0, 245, 155, 0.12);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  width: fit-content;
  margin-bottom: 20px;
}

.step-badge.highlight {
  background: linear-gradient(90deg, rgba(0, 245, 155, 0.2), rgba(0, 210, 255, 0.2));
  color: #00f59b;
  border-color: rgba(0, 245, 155, 0.4);
}

.step-icon-wrap {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  flex-grow: 1;
  margin-bottom: 24px;
}

.step-footer-link a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.step-footer-link a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 245, 155, 0.6);
}

.step-footer-tag span {
  font-size: 11px;
  font-weight: 700;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   SECTION WRAPPERS
   -------------------------------------------------------------------------- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto 90px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   INTERACTIVE GAS SAVINGS CALCULATOR
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}

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

.calc-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.calc-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.15), rgba(0, 210, 255, 0.1));
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: #1e2638;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  margin: 12px 0 6px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.strategy-badge-active {
  background: rgba(0, 245, 155, 0.06);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Calculator Output Panel */
.calc-output-panel {
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.calc-vs-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-side {
  flex: 1;
  text-align: center;
}

.calc-side-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-cost-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
}

.calc-cost-number.green {
  color: var(--accent-emerald);
}

.calc-sub-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.calc-vs-symbol {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0 10px;
}

.calc-savings-banner {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(0, 245, 155, 0.12));
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.savings-lead {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.savings-huge-usd {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent-gold);
  margin: 4px 0;
}

.savings-pct-tag {
  display: inline-block;
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   PILLARS ARCHITECTURE
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar-card:nth-child(5) {
  grid-column: span 2;
  border-color: rgba(0, 245, 155, 0.35);
  background: linear-gradient(135deg, rgba(0, 245, 155, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.pillar-icon-box {
  font-size: 28px;
  margin-bottom: 12px;
}

.pillar-tier {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pillar-metric-tag {
  display: inline-block;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.25);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   SMART CONTRACT TERMINAL & OPCODE TABLE
   -------------------------------------------------------------------------- */
.contract-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.code-terminal {
  background: #090d15;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.terminal-bar {
  background: #121824;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
  overflow-x: auto;
}

.keyword { color: #f43f5e; font-weight: 600; }
.function-name { color: #38bdf8; font-weight: 700; }
.type { color: #a855f7; }
.comment { color: #64748b; font-style: italic; }
.number { color: #f59e0b; }

/* Opcode Table */
.opcode-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.opcode-table-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.opcode-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.opcode-table th, .opcode-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.opcode-table th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.green-text {
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
}

.gold-text {
  color: var(--accent-gold);
  font-weight: 700;
  font-family: var(--font-mono);
}

.total-row {
  border-top: 2px solid rgba(0, 245, 155, 0.3) !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   EXTENSION EMBED SECTION
   -------------------------------------------------------------------------- */
.extension-studio-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 35px;
  align-items: center;
}

.extension-frame-outer {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 155, 0.15);
}

.studio-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.studio-side-desc h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.studio-side-desc p {
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #c0d1ea;
}

/* --------------------------------------------------------------------------
   GRANTS SECTION
   -------------------------------------------------------------------------- */
.grants-box {
  background: linear-gradient(180deg, rgba(0, 245, 155, 0.05), rgba(12, 16, 26, 0.9));
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
}

.grants-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  background: rgba(0, 245, 155, 0.12);
  border: 1px solid rgba(0, 245, 155, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.grants-box h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.grants-box p {
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 15px;
}

.grant-targets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 35px;
}

.grant-target-card {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.grant-logo {
  font-size: 24px;
  margin-bottom: 8px;
}

.grant-target-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.grant-target-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.grants-action-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.faq-chevron {
  font-size: 20px;
  color: var(--accent-emerald);
  transition: transform 0.25s;
}

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

.faq-answer p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 18px;
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

.faq-item.open .faq-answer {
  max-height: 250px;
}

/* --------------------------------------------------------------------------
   SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060a;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

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

.footer-links-row {
  display: flex;
  gap: 18px;
}

.footer-links-row a {
  color: var(--text-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --------------------------------------------------------------------------
   VIRAL REFERRAL & AFFILIATE HUB
   -------------------------------------------------------------------------- */
.referral-hub-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 10, 19, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.12);
  position: relative;
  overflow: hidden;
}

.referral-hub-card::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.referral-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px auto;
}

.referral-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0 10px 0;
  letter-spacing: -0.5px;
}

.referral-header p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ref-col {
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-col-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
}

.ref-col-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.ref-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}

.highlight-cyan {
  color: #38bdf8;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.ref-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.ref-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  border: 2px solid #fff;
  transition: transform 0.1s;
}

.ref-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ref-earnings-display {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(0, 245, 155, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.earnings-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.earnings-huge {
  font-size: 38px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono);
  margin: 6px 0;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.earnings-annual {
  font-size: 13px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.ref-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.ref-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perk-check {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 14px;
}

.ref-input-group label {
  font-size: 13px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.ref-wallet-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.ref-wallet-field:focus {
  border-color: #38bdf8;
}

.btn-connect-ref {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-connect-ref:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.generated-link-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gen-label {
  font-size: 12px;
  color: var(--text-muted);
}

.link-copy-row {
  display: flex;
  gap: 8px;
}

.ref-link-field {
  flex: 1;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.btn-copy-ref-link {
  background: linear-gradient(135deg, #38bdf8, #00f59b);
  border: none;
  border-radius: 10px;
  color: #07090e;
  font-weight: 700;
  font-size: 13px;
  padding: 0 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-copy-ref-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.social-share-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}

.social-label {
  font-size: 12px;
  color: var(--text-muted);
}

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

.btn-social {
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-x { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.btn-x:hover { background: #16181c; border-color: #fff; }

.btn-tg { background: rgba(36, 161, 222, 0.15); color: #24a1de; border-color: rgba(36, 161, 222, 0.3); }
.btn-tg:hover { background: rgba(36, 161, 222, 0.3); }

.btn-wa { background: rgba(37, 211, 102, 0.15); color: #25d366; border-color: rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: rgba(37, 211, 102, 0.3); }

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-headline { font-size: 38px; }
  .steps-grid { grid-template-columns: 1fr; }
  .calculator-card, .contract-showcase-grid, .extension-studio-wrapper, .pillars-grid, .referral-grid {
    grid-template-columns: 1fr;
  }
  .referral-hub-card { padding: 25px 20px; }
  .pillar-card:nth-child(5) {
    grid-column: span 1;
  }
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card:not(:last-child)::after { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 30px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-hero-primary-glow, .btn-hero-glass { width: 100%; justify-content: center; }
  .hero-quick-ribbon { flex-direction: column; gap: 6px; }
  .hero-metrics-grid { grid-template-columns: 1fr; }
  .grant-targets-row { grid-template-columns: 1fr; }
  .calc-presets { grid-template-columns: 1fr; }
  .btn-nav-paper { display: none; }
}
