/* ===================================
   IDEX — P2P OAuth Marketplace
   INDIE / HACKER / EXPERIMENTAL
   Dark theme · Lime accents · Terminal feel
   Anti-corporate · Zine aesthetic
   =================================== */

:root {
  /* ---- Dark Palette ---- */
  --bg-base: #0c0c0c;
  --bg-surface: #141414;
  --bg-elevated: #1c1c1c;
  --border-default: #2a2a2a;
  --border-rough: #3a3a3a;

  /* ---- Text ---- */
  --text-primary: #efefef;
  --text-secondary: #888888;
  --text-muted: #555555;

  /* ---- Accents ---- */
  --accent-lime: #a3e635;
  --accent-orange: #f97316;
  --accent-yellow: #fbbf24;
  --accent-red: #ef4444;

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Motion ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Animation Base ---- */
.marketplace-card,
.feature-card,
.step-item,
.stat-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.marketplace-card.is-visible,
.feature-card.is-visible,
.step-item.is-visible,
.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Badge: Experimental (reusable)
   =================================== */
.badge-experimental {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-orange);
  border: 1px dashed var(--accent-orange);
  border-radius: 3px;
  padding: 3px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
}

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

/* Grid pattern background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(163, 230, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(140px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.06) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
}

.hero-overlay {
  position: relative;
  width: 100%;
  min-height: 700px;
  background: transparent;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.hero-content {
  text-align: left;
  color: var(--text-primary);
  padding: 0;
  max-width: none;
  z-index: 3;
  position: relative;
}

/* Hero badge — experimental / indie */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: transparent;
  border: 1px dashed var(--accent-orange);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s var(--ease-out-expo) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-lime);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(163, 230, 53, 0.5);
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--text-primary);
  animation: fadeInUp 0.9s 0.15s var(--ease-out-expo) both;
}

.hero-accent {
  color: var(--accent-lime);
  -webkit-text-fill-color: var(--accent-lime);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 0 40px rgba(163, 230, 53, 0.2);
  animation: none;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
  animation: fadeInUp 0.9s 0.3s var(--ease-out-expo) both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.45s var(--ease-out-expo) both;
}

/* Buttons — outline lime, indie sharp */
.btn-primary-large,
.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s var(--ease-out-expo);
  border: 1px solid transparent;
  letter-spacing: 0.3px;
}

.btn-primary-large {
  background: transparent;
  color: var(--accent-lime);
  border-color: var(--accent-lime);
}

.btn-primary-large:hover {
  background: var(--accent-lime);
  color: #0c0c0c;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--accent-lime);
}

.btn-secondary-large {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-rough);
}

.btn-secondary-large:hover {
  color: var(--accent-lime);
  border-color: var(--accent-lime);
  border-style: solid;
  transform: translateY(-2px);
}

.hero-stats-inline {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 0.9s 0.6s var(--ease-out-expo) both;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.hero-stat-pill svg {
  opacity: 0.5;
  color: var(--accent-lime);
}

/* ===================================
   Hero 2-Column Layout + Character
   =================================== */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 40px;
}

.hero-character {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-character-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-character-frame svg {
  width: 100%;
  height: auto;
  animation: char-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(163, 230, 53, 0.15));
}

@keyframes char-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

/* Floating element drift animations */
.float-el-1 { animation: float-drift-1 8s ease-in-out infinite; }
.float-el-2 { animation: float-drift-2 7s ease-in-out infinite; }
.float-el-3 { animation: float-drift-3 9s ease-in-out infinite; }
.float-el-4 { animation: float-drift-4 6s ease-in-out infinite; }

@keyframes float-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -8px); }
}
@keyframes float-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, 5px); }
}
@keyframes float-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -4px); }
}
@keyframes float-drift-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3px, -6px); }
}

/* ===================================
   Hero 2-Column Layout + Character
   =================================== */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: none;
}

.hero-buttons {
  justify-content: flex-start;
}

.hero-stats-inline {
  justify-content: flex-start;
}

.hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-character {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-character-frame {
  width: 100%;
  max-width: 380px;
}

.hero-character-frame svg {
  width: 100%;
  height: auto;
  animation: char-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(163, 230, 53, 0.18));
}

@keyframes char-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

/* Floating SVG elements inside character */
.hero-character-frame .float-el-1 { animation: char-float-1 4s ease-in-out infinite; }
.hero-character-frame .float-el-2 { animation: char-float-2 5s 0.5s ease-in-out infinite; }
.hero-character-frame .float-el-3 { animation: char-float-3 4.5s 1s ease-in-out infinite; }
.hero-character-frame .float-el-4 { animation: char-float-4 5.5s 0.8s ease-in-out infinite; }

@keyframes char-float-1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-4px, -8px); }
}
@keyframes char-float-2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(5px, -6px); }
}
@keyframes char-float-3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(4px, -5px); }
}
@keyframes char-float-4 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-3px, -7px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content { text-align: center; }
  .hero-buttons  { justify-content: center; }
  .hero-stats-inline { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-character { order: -1; }
  .hero-character-frame { max-width: 260px; }
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
  padding: 56px 20px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 20px 24px;
  position: relative;
}

/* Dashed vertical dividers between stats */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  border-right: 1px dashed var(--border-rough);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 10px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(163, 230, 53, 0.15);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===================================
   Marketplace Section
   =================================== */
.marketplace-section {
  padding: 100px 20px;
  background-color: var(--bg-base);
  position: relative;
}

/* Section Label — code comment style */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: var(--accent-lime);
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.marketplace-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 2px solid var(--accent-lime);
  border-radius: 4px;
  padding: 36px 32px;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
}

.marketplace-card-glow {
  display: none;
}

.marketplace-card:hover {
  border-color: var(--border-rough);
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--accent-lime);
}

.marketplace-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 4px;
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.12);
  color: var(--accent-lime);
  transition: all 0.25s var(--ease-out-expo);
}

.marketplace-card-buy .marketplace-icon { color: var(--accent-lime); }
.marketplace-card-sell .marketplace-icon { color: var(--accent-orange); border-color: rgba(249, 115, 22, 0.15); background: rgba(249, 115, 22, 0.06); }
.marketplace-card-history .marketplace-icon { color: var(--accent-yellow); border-color: rgba(251, 191, 36, 0.15); background: rgba(251, 191, 36, 0.06); }
.marketplace-card-inventory .marketplace-icon { color: var(--text-primary); border-color: var(--border-default); background: rgba(255, 255, 255, 0.03); }

.marketplace-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.marketplace-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.marketplace-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--accent-lime);
  color: var(--accent-lime);
}

/* ===================================
   Section Header (shared)
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.title-accent {
  color: var(--accent-lime);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
  padding: 100px 20px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-default);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-elevated);
  padding: 32px 26px;
  border-radius: 4px;
  border: 1px solid var(--border-default);
  transition: all 0.3s var(--ease-out-expo);
}

.feature-card:hover {
  border-color: var(--border-rough);
  box-shadow: 3px 3px 0 var(--accent-lime);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-lime);
  transition: all 0.25s var(--ease-out-expo);
}

.feature-card:hover .feature-icon {
  background: rgba(163, 230, 53, 0.1);
  border-color: rgba(163, 230, 53, 0.25);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works-section {
  padding: 100px 20px;
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-default);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.step-item {
  background-color: var(--bg-surface);
  padding: 36px 26px;
  border-radius: 4px;
  text-align: center;
  border: 1px dashed var(--border-rough);
  transition: all 0.3s var(--ease-out-expo);
}

.step-item:hover {
  border-color: var(--accent-lime);
  border-style: solid;
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--accent-lime);
}

.step-number {
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--accent-lime);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

.step-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.step-arrow {
  color: var(--text-muted);
  text-align: center;
  opacity: 0.3;
}

/* ===================================
   CTA Section — manifesto style
   =================================== */
.cta-section {
  padding: 100px 20px;
  background: var(--bg-surface);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
}

.cta-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(163, 230, 53, 0.04) 0%, transparent 60%);
  filter: blur(100px);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s var(--ease-out-expo);
  border: 1px solid transparent;
  letter-spacing: 0.3px;
}

.btn-cta-primary {
  background: var(--accent-lime);
  color: #0c0c0c;
  border-color: var(--accent-lime);
}

.btn-cta-primary:hover {
  background: #b8f042;
  color: #0c0c0c;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--accent-lime);
}

.btn-cta-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-rough);
}

.btn-cta-secondary:hover {
  color: var(--accent-lime);
  border-color: var(--accent-lime);
  border-style: solid;
  transform: translateY(-2px);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 32px;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 56px;
    letter-spacing: -2px;
  }

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

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats-inline { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-character { order: -1; }
  .hero-character-frame { max-width: 260px; }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 580px;
  }

  .hero-overlay {
    min-height: 580px;
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 24px;
  }

  .btn-primary-large,
  .btn-secondary-large {
    padding: 12px 24px;
    font-size: 13px;
  }

  .hero-stats-inline {
    margin-top: 32px;
    gap: 10px;
  }

  .hero-stat-pill {
    font-size: 10px;
    padding: 4px 10px;
  }

  .stats-section {
    padding: 40px 20px;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }

  .marketplace-section,
  .features-section,
  .how-it-works-section,
  .cta-section,
  .aa-philosophy-section {
    padding: 64px 20px;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .marketplace-card {
    padding: 28px 22px;
  }

  .section-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 26px 20px;
  }

  .cta-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .cta-subtitle {
    font-size: 15px;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-primary-large,
  .btn-secondary-large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats-inline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ============================================
   AA PHILOSOPHY SECTION
   ============================================ */

.aa-philosophy-section {
  padding: 100px 20px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
}

.aa-philosophy-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.aa-philosophy-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* AA Cards Grid */
.aa-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.aa-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 32px 26px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.25s ease;
  opacity: 0;
  transform: translateY(32px);
  position: relative;
  overflow: hidden;
}

.aa-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.aa-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-lime);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aa-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--accent-lime);
  border-color: var(--border-rough);
}

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

/* AA Card Icon */
.aa-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.aa-icon-gasless {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
}

.aa-icon-recovery {
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.12);
  color: var(--accent-lime);
}

.aa-icon-contract {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
}

/* AA Card Content */
.aa-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.aa-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

/* Tech Tags */
.aa-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa-tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-lime);
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.15);
  border-radius: 3px;
  padding: 3px 8px;
}

/* Flow Diagram — terminal aesthetic */
.aa-flow-diagram {
  background: var(--bg-surface);
  border: 1px solid rgba(163, 230, 53, 0.15);
  border-radius: 4px;
  padding: 28px 36px;
  position: relative;
  z-index: 1;
}

.aa-flow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 20px;
}

.aa-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aa-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.aa-flow-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(163, 230, 53, 0.04);
  border: 1px solid var(--border-default);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.aa-flow-node:hover .aa-flow-node-icon {
  background: rgba(163, 230, 53, 0.1);
  border-color: rgba(163, 230, 53, 0.25);
}

.aa-flow-node span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.aa-flow-user .aa-flow-node-icon { color: var(--text-secondary); }
.aa-flow-userop .aa-flow-node-icon { color: var(--accent-lime); }
.aa-flow-paymaster .aa-flow-node-icon { color: var(--accent-orange); }
.aa-flow-entrypoint .aa-flow-node-icon { color: var(--accent-yellow); }
.aa-flow-wallet .aa-flow-node-icon { color: var(--accent-lime); }

.aa-flow-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-bottom: 24px;
}

.aa-flow-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-rough);
}

/* Responsive */
@media (max-width: 900px) {
  .aa-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aa-flow-diagram {
    padding: 20px 16px;
    overflow-x: auto;
  }

  .aa-flow-steps {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .aa-flow-node {
    min-width: 60px;
  }

  .aa-flow-node span {
    font-size: 10px;
  }
}
