/* === CYBERPUNK ADS/IFRO === */
:root {
  --bg: #050A0E;
  --bg-2: #0D1117;
  --bg-3: #161B22;
  --neon: #00FF88;
  --neon-2: #00E676;
  --cyan: #00D4FF;
  --magenta: #BF00FF;
  --pink: #FF00AA;
  --text: #E0E0E0;
  --text-dim: #8B949E;
  --border-neon: rgba(0, 255, 136, 0.3);
  --border-neon-hover: rgba(0, 255, 136, 0.8);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* background grid + scanline layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 136, 0.025) 0px,
    rgba(0, 255, 136, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* === TYPE === */
h1, h2, h3, h4, .display, .headline {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neon);
}

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* section separator */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon) 20%, var(--cyan) 50%, var(--magenta) 80%, transparent);
  opacity: 0.5;
  margin: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon);
  color: #000;
  box-shadow:
    0 0 20px rgba(0, 255, 136, 0.5),
    0 0 40px rgba(0, 255, 136, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--neon), var(--cyan), var(--neon));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 32px rgba(0, 255, 136, 0.8),
    0 0 64px rgba(0, 255, 136, 0.4);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.btn-magenta {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  box-shadow: 0 0 12px rgba(191, 0, 255, 0.25);
}
.btn-magenta:hover {
  background: rgba(191, 0, 255, 0.08);
  box-shadow: 0 0 28px rgba(191, 0, 255, 0.5);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  }
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-neon);
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.05);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 80% { opacity: 0.3; } }

.badge.cyan {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  color: var(--cyan);
}
.badge.cyan .dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* === CARDS === */
.card {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  padding: 28px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.4;
}
.card:hover {
  border-color: var(--border-neon-hover);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.18), inset 0 0 0 1px rgba(0, 255, 136, 0.1);
  transform: translateY(-3px);
}
.card .corner {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--neon);
  opacity: 0.7;
}
.card .corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.card .corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.card .corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.card .corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* === NAVBAR === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 10, 14, 0.7);
  border-bottom: 1px solid var(--border-neon);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex; align-items: center;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo > span {
  display: inline-flex;
  flex-direction: column;
  white-space: nowrap;
  min-width: max-content;
}
.nav-logo .ifro { white-space: nowrap; display: block; }
.nav-logo .ads {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.45);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.35));
  animation: glitch-logo 6s infinite;
}
.nav-logo .ifro {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--neon);
  margin-top: 2px;
}
@keyframes glitch-logo {
  0%, 92%, 100% { filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.35)); transform: translate(0); }
  93% { filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6)); transform: translate(1px, -1px); }
  94% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.55)); transform: translate(-1px, 1px); }
  95% { filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.35)); transform: translate(0); }
}
.nav-links {
  display: flex; gap: 22px;
  list-style: none;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-links a::before {
  content: '> ';
  color: var(--neon);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-links a:hover { color: var(--neon); }
.nav-links a:hover::before { opacity: 1; }
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04060a;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 2px;
  vertical-align: middle;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}
.nav-cta .btn { padding: 10px 20px; font-size: 12px; }

.hamburger {
  display: none;
  background: none; border: 1px solid var(--border-neon);
  color: var(--neon);
  padding: 8px 12px; border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--border-neon);
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.mobile-drawer a { color: var(--text); text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 15px; }

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0, 255, 136, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(191, 0, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(0, 212, 255, 0.1), transparent);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  transform: perspective(1000px) rotateX(55deg) translateY(40%) scale(2);
  transform-origin: center;
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-left .ifro-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-left .ifro-chip .ifro-logo {
  width: auto !important;
  height: 28px !important;
  max-width: 180px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}
.hero-left .ifro-chip .ifro-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  color: var(--neon);
  font-weight: 900;
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 0.96;
  margin: 24px 0 20px;
  letter-spacing: -0.015em;
}
.hero h1 > span {
  display: block;
  white-space: nowrap;
}
.hero h1 .line-2 {
  display: block;
  white-space: nowrap;
  font-size: 1.7em;
  letter-spacing: -0.025em;
  line-height: 0.92;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 255, 136, 0.4));
}
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(28px, 3.6vw, 48px); }
}
@media (max-width: 700px) {
  .hero h1 > span { white-space: normal; }
  .hero h1 .line-2 { font-size: 1.5em; }
}
.hero .subtitle {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 32px;
  min-height: 48px;
}
.hero .subtitle::after {
  content: '▮';
  color: var(--neon);
  animation: caret 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero right — KODA */
.koda-stage {
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.koda-img {
  position: relative;
  width: 100%;
  max-width: 560px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.35)) drop-shadow(0 40px 60px rgba(0, 0, 0, 0.9));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.koda-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, var(--neon), transparent 70%);
  opacity: 0.7;
  filter: blur(20px);
  animation: pulse-floor 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes pulse-floor {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 0.85; transform: translateX(-50%) scaleX(1.15); }
}
.koda-circuit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

/* rotating hexagon ring behind koda */
.koda-ring {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 50%;
  z-index: 1;
  animation: rotate 40s linear infinite;
}
.koda-ring::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  border-radius: 50%;
}
.koda-ring .tick {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px; height: 6px;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  transform: translateX(-50%);
  border-radius: 50%;
}
@keyframes rotate { to { transform: translateX(-50%) rotate(360deg); } }

/* floating code particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon);
  opacity: 0.35;
  font-size: 13px;
  user-select: none;
  animation: drift linear infinite;
  text-shadow: 0 0 8px currentColor;
}
.particle.cyan { color: var(--cyan); }
.particle.magenta { color: var(--magenta); }
@keyframes drift {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-100vh) rotate(20deg); opacity: 0; }
}

/* === STATS BAR === */
.stats-bar {
  border-top: 1px solid var(--border-neon);
  border-bottom: 1px solid var(--border-neon);
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  padding: 24px 0;
  margin-top: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-neon);
}
.stat {
  background: var(--bg);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--neon);
  flex-shrink: 0;
  background: rgba(0, 255, 136, 0.05);
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  margin-top: 2px;
}

/* === SECTION HEADING === */
.section { padding: 100px 0; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--neon);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-head h2.glitch:hover {
  animation: glitch-text 0.4s;
}
@keyframes glitch-text {
  0% { text-shadow: 0 0 transparent; }
  20% { text-shadow: -3px 0 var(--pink), 3px 0 var(--cyan); transform: translate(-1px, 1px); }
  40% { text-shadow: 3px 0 var(--pink), -3px 0 var(--cyan); transform: translate(1px, -1px); }
  60% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--neon); transform: translate(-1px, 0); }
  100% { text-shadow: 0 0 transparent; transform: translate(0); }
}
.section-head .terminal-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--text-dim);
}
.section-head .terminal-sub::before {
  content: '> ';
  color: var(--neon);
}

/* === ABOUT === */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}
.about-text p strong { color: var(--text); }
.about-stats {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.about-stats .pill {
  padding: 10px 16px;
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.05);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mec-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 212, 255, 0.04));
  overflow: hidden;
}
.mec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(0, 255, 136, 0.15), transparent 60%);
}
.mec-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--cyan); letter-spacing: 0.2em; text-transform: uppercase; position: relative; }
.mec-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0 8px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
  position: relative;
}
.mec-score .slash { color: var(--text-dim); font-size: 48px; -webkit-text-fill-color: var(--text-dim); }
.mec-caption { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); position: relative; }

.matrix-rain {
  position: relative;
  height: 240px;
  margin-top: 24px;
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.matrix-col {
  position: absolute;
  top: -100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--neon);
  white-space: pre;
  text-shadow: 0 0 6px var(--neon);
  line-height: 1.4;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { top: -100%; }
  100% { top: 120%; }
}

/* === TECH STACK === */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tech-card {
  padding: 28px;
  border: 1px solid var(--border-neon);
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}
.tech-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.tech-card:hover {
  border-color: var(--border-neon-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.15);
}
.tech-card:hover::after { transform: scaleX(1); }
.tech-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--border-neon);
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.3));
}
.tech-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.tech-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}
.tech-card .tech-label {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}

/* === WHY ADS === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 36px 28px;
  border: 1px solid var(--border-neon);
  background: rgba(13, 17, 23, 0.6);
  border-radius: 6px;
  position: relative;
  transition: all 0.25s;
  min-height: 300px;
  display: flex; flex-direction: column;
}
.why-card:hover { border-color: var(--border-neon-hover); transform: translateY(-4px); box-shadow: 0 0 32px rgba(0, 255, 136, 0.15); }
.why-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
  margin-bottom: 12px;
}
.why-num.cyan { color: var(--cyan); text-shadow: 0 0 24px rgba(0, 212, 255, 0.5); }
.why-num.magenta { color: var(--magenta); text-shadow: 0 0 24px rgba(191, 0, 255, 0.5); }
.why-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.why-card p { color: var(--text-dim); font-size: 14px; flex: 1; }
.why-card .signal {
  margin-top: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 8px;
}
.why-card .signal::before {
  content: ''; width: 6px; height: 6px; background: var(--neon); border-radius: 50%;
  box-shadow: 0 0 8px var(--neon); animation: blink 1.6s infinite;
}

/* === CTA KODA === */
.cta-koda {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 100% at 20% 50%, rgba(0, 255, 136, 0.15), transparent),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(191, 0, 255, 0.1), transparent),
    linear-gradient(135deg, #0a1a12, #050A0E);
  border-top: 1px solid var(--border-neon);
  border-bottom: 1px solid var(--border-neon);
  position: relative;
  overflow: hidden;
}
.cta-koda::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  opacity: 0.6;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.cta-inner.cta-centered {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner.cta-centered > * { margin: 0 auto; }
.cta-inner.cta-centered div[style] { margin-left: auto !important; margin-right: auto !important; }
.cta-inner h2 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  margin-bottom: 20px;
}
.cta-inner h2 .hl {
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-inner p { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }

.cta-koda-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 480px;
  margin-left: auto;
}
.cta-koda-img-wrap img {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.35)) drop-shadow(0 40px 60px rgba(0, 0, 0, 0.9));
  animation: float 4.6s ease-in-out infinite;
  position: relative; z-index: 2;
}
.cta-koda-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(0, 212, 255, 0.4), transparent 60%);
  filter: blur(40px);
  z-index: 1;
}

/* === LOCATION === */
.locate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}
.map-card {
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  min-height: 400px;
  display: flex;
}
.map-card iframe { width: 100%; height: 100%; min-height: 400px; border: 0; flex: 1; filter: invert(0.9) hue-rotate(160deg) saturate(0.6) contrast(1.1); }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 32px; height: 32px;
  z-index: 5;
  pointer-events: none;
}
.map-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--neon);
  box-shadow: 0 0 20px var(--neon), inset 0 0 12px var(--neon);
  animation: pin-pulse 2s ease-in-out infinite;
}
@keyframes pin-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } }

.terminal-card {
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  background: var(--bg-2);
  overflow: hidden;
}
.terminal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-neon);
  background: rgba(0, 255, 136, 0.03);
}
.terminal-head .dot-x { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head .dot-x.r { background: var(--pink); }
.terminal-head .dot-x.y { background: #f1c40f; }
.terminal-head .dot-x.g { background: var(--neon); }
.terminal-head .title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 12px;
  letter-spacing: 0.12em;
}
.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 2;
}
.terminal-body .line { display: flex; gap: 10px; }
.terminal-body .prompt { color: var(--neon); }
.terminal-body .key { color: var(--cyan); }
.terminal-body .val { color: var(--text); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--neon);
  animation: caret 0.8s step-end infinite;
  vertical-align: -2px;
  margin-left: 4px;
  box-shadow: 0 0 6px var(--neon);
}

/* === FOOTER === */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-neon);
  background: var(--bg-2);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .mini-koda {
  width: 120px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(0, 255, 136, 0.3));
}
.footer-brand .foot-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--neon); }

.footer-bottom {
  border-top: 1px solid var(--border-neon);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom .flavor { color: var(--neon); opacity: 0.8; }

/* === REVEAL ON SCROLL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* === MEET KODA (liquid glass card) === */
.meet-koda {
  padding: 100px 0;
  position: relative;
}
.meet-koda-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.meet-stage {
  aspect-ratio: 3/4;
  max-width: 480px;
}

.glass-card {
  position: relative;
  padding: 44px 44px 36px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(0, 212, 255, 0.03) 40%, rgba(191, 0, 255, 0.03)),
    rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 255, 136, 0.12),
    0 0 40px rgba(0, 255, 136, 0.08);
  overflow: hidden;
}
.glass-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
              radial-gradient(ellipse at 80% 100%, rgba(0, 255, 136, 0.1), transparent 60%);
  pointer-events: none;
}
.glass-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--neon);
  opacity: 0.7;
}
.glass-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.glass-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.glass-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.glass-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.glass-content { position: relative; z-index: 2; }

.meet-title {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1;
  margin: 10px 0 24px;
}
.meet-title .hl {
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 136, 0.4));
}
.meet-lead {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-size: 15px;
  margin: 12px 0;
}
.glass-content p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 10px 0;
  line-height: 1.7;
}
.glass-content p strong { color: var(--text); }
.emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; }

.meet-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}
.meet-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.meet-bullet .b-icon {
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.06);
  flex-shrink: 0;
}
.meet-bullet strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.meet-bullet p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.meet-outro {
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px dashed rgba(0, 255, 136, 0.2);
  color: var(--text) !important;
  font-size: 14px !important;
}
.meet-tag {
  margin-top: 16px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.meet-tag .prompt { color: var(--neon); margin-right: 8px; }
.meet-tag .val-green {
  color: var(--neon);
  font-weight: 700;
  text-shadow: 0 0 8px var(--neon);
}

@media (max-width: 900px) {
  .meet-koda-grid { grid-template-columns: 1fr; gap: 32px; }
  .meet-stage { margin: 0 auto; max-width: 360px; }
  .glass-card { padding: 32px 24px 28px; }
}

/* === END MEET KODA === */
@media (max-width: 1200px) {
  .hero-inner { gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .koda-stage { max-width: 420px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .locate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}

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

/* ============================================================
   ADDED SECTIONS — Editais, Sistemas, Documentos, Timeline
   ============================================================ */

/* --- Editais (uses .why-grid + .why-card extension) --- */
.edital-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 220ms ease, border-color 220ms;
}
.edital-card:hover { transform: translateY(-4px); border-color: var(--border-neon-hover); }
.edital-card .signal { color: var(--neon); display: inline-flex; align-items: center; gap: 6px; }
.edital-status {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--neon);
}

/* --- Sistemas (uses .tech-grid + .tech-card extension) --- */
.sistema-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms;
}
.sistema-card:hover { transform: translateY(-4px); border-color: var(--border-neon-hover); }
.sistema-emoji {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sistema-card .signal {
  color: var(--neon);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Documentos --- */
.doc-group { margin-top: 36px; }
.doc-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}
.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.doc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 20px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--border-neon);
  transition: background 220ms, padding 220ms;
}
.doc-item:first-child { border-top: none; }
.doc-item:hover {
  background: rgba(0, 255, 136, 0.05);
  padding-left: 28px;
}
.doc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.doc-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.doc-arrow {
  color: var(--neon);
  opacity: 0.6;
  transition: opacity 220ms, transform 220ms;
}
.doc-item:hover .doc-arrow { opacity: 1; transform: translate(4px, -4px); }

/* --- Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 32px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  gap: 16px;
  padding: 24px 0;
  align-items: start;
}
.timeline-year {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  padding-top: 4px;
}
.timeline-line {
  position: relative;
  width: 32px;
  height: 100%;
  min-height: 80px;
}
.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -24px;
  width: 1px;
  background: linear-gradient(180deg, var(--border-neon), rgba(0, 255, 136, 0.1));
  transform: translateX(-50%);
}
.timeline-row:last-child .timeline-line::before { background: linear-gradient(180deg, var(--border-neon), transparent); }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.8), 0 0 0 4px rgba(0, 255, 136, 0.12);
  transform: translateX(-50%);
}
.timeline-body {
  padding: 0;
}
.timeline-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px 0;
}
.timeline-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 700px) {
  .timeline-row { grid-template-columns: 64px 24px 1fr; gap: 12px; }
  .timeline-year { font-size: 18px; }
  .timeline-title { font-size: 17px; }
}

/* ==================== FLUTTER 3D CARD (hero right) ==================== */
.flutter-card-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  perspective: 1400px;
  isolation: isolate;
}
.flutter-card-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.28), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(0, 212, 255, 0.22), transparent 60%);
  filter: blur(36px);
  z-index: -1;
  animation: flutter-pulse 7s ease-in-out infinite;
}
@keyframes flutter-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
.flutter-card {
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 16, 22, 0.78), rgba(4, 8, 12, 0.86));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(0, 255, 136, 0.22);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 212, 255, 0.06) inset,
    0 0 60px rgba(0, 255, 136, 0.10) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.flutter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 35%,
    transparent 65%,
    rgba(0, 212, 255, 0.05) 100%);
  pointer-events: none;
}
.flutter-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.16);
  background: rgba(0, 0, 0, 0.35);
}
.flutter-card-head .dot-x {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.flutter-card-head .dot-x.r { background: #ff5f56; }
.flutter-card-head .dot-x.y { background: #ffbd2e; }
.flutter-card-head .dot-x.g { background: #27c93f; }
.flutter-card-title {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.flutter-card-badge {
  margin-left: auto;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04060a;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.4);
}
.flutter-card-body {
  margin: 0;
  padding: 20px 22px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d6e7e0;
  white-space: pre-wrap;
  max-height: 380px;
  overflow: hidden;
}
.flutter-card-body code { font-family: inherit; }
.flutter-card-body .tok-kw  { color: #ff79c6; font-weight: 600; }
.flutter-card-body .tok-cls { color: var(--cyan); font-weight: 600; }
.flutter-card-body .tok-typ { color: #8be9fd; }
.flutter-card-body .tok-fn  { color: var(--neon); }
.flutter-card-body .tok-str { color: #f1fa8c; }
.flutter-card-body .tok-num { color: #ffb86c; }
.flutter-card-body .tok-com { color: rgba(160, 180, 175, 0.55); font-style: italic; }
.flutter-card-body .tok-p   { color: #b8c6c2; }
.flutter-card-body .tok-ind { color: transparent; }
.flutter-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid rgba(0, 255, 136, 0.14);
  background: rgba(0, 0, 0, 0.45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.flutter-card-foot .prompt { color: var(--neon); }
.flutter-card-foot .cmd    { color: #d6e7e0; }
.flutter-card-foot .ok     { margin-left: auto; color: var(--neon); font-weight: 600; }
.flutter-card-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 255, 136, 0.025) 2px,
    rgba(0, 255, 136, 0.025) 3px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

@media (max-width: 980px) {
  .flutter-card-stage { max-width: 100%; margin: 24px 0 0; }
  .flutter-card-body  { font-size: 12px; padding: 16px; max-height: 320px; }
}

/* ==================== KODA INTRO (below hero) ==================== */
.koda-intro {
  position: relative;
  padding: 80px 0 60px;
  border-top: 1px solid rgba(0, 255, 136, 0.08);
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0, 255, 136, 0.06), transparent 60%);
}
.koda-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.koda-intro-copy .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.koda-intro-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 18px;
}
.koda-intro-title .hl {
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.koda-intro-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 28px;
}
.koda-intro-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.koda-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-left: 2px solid var(--neon);
  background: rgba(0, 255, 136, 0.04);
}
.koda-stat-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--neon);
  letter-spacing: 0.02em;
}
.koda-stat-num em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.koda-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.koda-intro-stage {
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}
.koda-intro-stage .koda-img.sm {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: auto;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.35)) drop-shadow(0 40px 60px rgba(0, 0, 0, 0.9));
}
.koda-intro-stage .koda-ring.sm {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 50%;
  z-index: 1;
}
.koda-intro-stage .koda-glow.sm {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, var(--neon), transparent 70%);
  opacity: 0.7;
  filter: blur(20px);
  animation: pulse-floor 4s ease-in-out infinite;
  z-index: 1;
}

@media (max-width: 900px) {
  .koda-intro { padding: 56px 0 40px; }
  .koda-intro-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .koda-intro-copy .koda-intro-stats { justify-content: center; }
  .koda-intro-stage { min-height: 260px; }
  .koda-stat { border-left: none; border-top: 2px solid var(--neon); }
}

/* live-coding caret + foot states */
.flutter-card-body .flutter-caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--neon);
  font-weight: 400;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
  transform: translateY(1px);
}
.flutter-card-body .flutter-caret.active {
  animation: caret-blink 0.9s steps(2, end) infinite;
}
.flutter-card-body .flutter-caret.rest {
  animation: caret-blink 1.8s steps(2, end) infinite;
  opacity: 0.55;
}
@keyframes caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.flutter-card-foot .ok.hide { opacity: 0; }
.flutter-card-foot .ok.show { opacity: 1; transition: opacity 0.4s ease; }
.flutter-card-foot .cmd { transition: color 0.3s ease; }

/* === KODA speech bubble === */
.koda-bubble {
  position: absolute;
  top: 6%;
  left: -8%;
  z-index: 4;
  max-width: 260px;
  padding: 16px 20px 14px;
  background:
    linear-gradient(180deg, rgba(8, 16, 22, 0.78), rgba(4, 8, 12, 0.7));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 14px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 136, 0.18),
    inset 0 0 0 1px rgba(0, 212, 255, 0.06);
  animation: bubble-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) both,
             bubble-float 5s ease-in-out 0.6s infinite;
  transform-origin: 30% 100%;
}
.koda-bubble-lang {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.koda-bubble-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.koda-bubble-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.35));
}
.koda-bubble .bubble-dim {
  color: rgba(0, 255, 136, 0.55);
  font-weight: 500;
}
.koda-bubble-sig {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 0.08em;
}
.koda-bubble-tail {
  position: absolute;
  right: -10px;
  bottom: 22px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, rgba(8, 16, 22, 0.78), rgba(4, 8, 12, 0.7));
  border-right: 1px solid rgba(0, 255, 136, 0.45);
  border-top: 1px solid rgba(0, 255, 136, 0.45);
  transform: rotate(45deg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 2px -2px 10px rgba(0, 255, 136, 0.15);
}

@keyframes bubble-pop {
  0%   { opacity: 0; transform: scale(0.6) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .koda-bubble {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 320px;
    animation: bubble-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
  }
  .koda-bubble-tail { display: none; }
}
