/* ═══════════════════════════════════════════════════
   home.css — Hero & home-specific styles
   ═══════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  min-height: min(100vh, 780px);
  display: flex;
  align-items: center;
  padding-top: var(--navbar-h);
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: clip;
}

/* ── Particle canvas layer ── */
#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Deep radial glow behind title ── */
.hero::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(0,212,255,0.10) 0%,
    rgba(0,212,255,0.04) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}

/* Animated grid overlay — tighter, more visible */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 40% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 30%, transparent 75%);
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Scan line effect */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.25;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%   { top: -2px; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 700px;
  overflow: visible;
}

.hero-title {
  overflow: visible;
}

/* ── Animated rotating-border badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  border-radius: 20px;
  padding: 7px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 0.6s ease both;
  background: rgba(0,212,255,0.06);
  letter-spacing: 0.04em;
  /* Rotating conic border via outline trick */
  border: 1px solid transparent;
  background-clip: padding-box;
}

/* Glowing ring around badge */
.hero-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(
    from var(--badge-angle, 0deg),
    rgba(0,212,255,0) 0%,
    rgba(0,212,255,0.8) 20%,
    rgba(0,212,255,0) 40%,
    rgba(0,212,255,0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBadgeBorder 4s linear infinite;
}

@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBadgeBorder {
  to { --badge-angle: 360deg; }
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px var(--success); }
  50%       { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 12px var(--success); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  animation: fadeSlideUp 0.6s 0.1s ease both;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.title-accent {
  display: block;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    #7dd3fc 25%,
    #ffffff 45%,
    #7dd3fc 65%,
    var(--accent) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
  overflow: visible;
  padding-bottom: 0.15em;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  /* Title glow */
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.35));
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Glitch effect */
.glitch {
  position: relative;
  overflow: visible;
  display: inline-block;
  width: 100%;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: linear-gradient(90deg, var(--accent), #7dd3fc, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.glitch::before {
  animation: glitchTop 4s 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  animation: glitchBottom 4s 2s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0%, 90%, 100% { transform: translate(0); opacity: 1; }
  92% { transform: translate(-4px, -2px); opacity: 0.8; }
  94% { transform: translate(4px, 2px); opacity: 0.8; }
  96% { transform: translate(0); opacity: 1; }
}

@keyframes glitchBottom {
  0%, 90%, 100% { transform: translate(0); opacity: 1; }
  91% { transform: translate(3px, 1px); opacity: 0.8; }
  93% { transform: translate(-3px, -1px); opacity: 0.8; }
  95% { transform: translate(0); opacity: 1; }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}

/* ── CTA buttons with glow ── */
.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeSlideUp 0.6s 0.3s ease both;
}

.hero-cta .btn-primary {
  box-shadow: 0 0 24px rgba(0,212,255,0.25), 0 4px 16px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.45), 0 8px 24px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.hero-cta .btn-outline {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.hero-cta .btn-outline:hover {
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
  transform: translateY(-2px);
}

/* ── Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: fadeSlideUp 0.6s 0.4s ease both;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ── Floating terminal — enhanced ── */
.hero-terminal {
  position: absolute;
  right: max(40px, calc(50% - 600px + 40px));
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  border: 1px solid rgba(0,212,255,0.28);
  border-radius: var(--radius-lg);
  background: rgba(4, 8, 16, 0.97);
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.08),
    0 0 60px rgba(0,212,255,0.18),
    0 0 120px rgba(0,212,255,0.06),
    0 40px 80px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(0,212,255,0.12);
  animation: floatTerminal 6s ease-in-out infinite, fadeSlideUp 0.8s 0.5s ease both;
  overflow: hidden;
  backdrop-filter: blur(20px);
  z-index: 2;
}

/* Status dot in terminal bar */
.t-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #22c55e;
  letter-spacing: 0.1em;
}

.t-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Terminal tabs ── */
.terminal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  background: rgba(0,212,255,0.02);
}

.t-tab {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
}

.t-tab:hover        { color: var(--text-secondary); }
.t-tab--active      { color: #00d4ff; border-bottom-color: #00d4ff; }

/* ── Terminal body ── */
.terminal-body {
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  padding-bottom: 0.75rem;
}
.terminal-body::-webkit-scrollbar { display: none; }

.t-row {
  display: grid;
  grid-template-columns: 28px 42px 100px 1fr;
  gap: 0;
  padding: 3px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.55;
  transition: background 0.1s;
}

.t-row:hover { background: rgba(0,212,255,0.04); }

.t-row--header {
  background: rgba(0,212,255,0.06);
  border-bottom: 1px solid rgba(0,212,255,0.12);
  color: rgba(0,212,255,0.7);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.t-row--alert { background: rgba(244,63,94,0.06); }
.t-row--alert:hover { background: rgba(244,63,94,0.1); }

.t-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.t-col--no    { color: rgba(0,212,255,0.35); }
.t-col--src   { color: #a8bdd0; }
.t-col--info  { color: #7a95a8; }

/* ── Threat bar ── */
.t-threat-bar {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, color 0.3s;
  min-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Radar canvas ── */
#heroRadar {
  width: 100%;
  height: 160px;
  display: none;
  background: rgba(0,0,0,0.2);
}

/* ── Floating network labels ── */
.hero-float-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hfl {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(0,212,255,0.45);
  background: rgba(0,10,20,0.6);
  border: 1px solid rgba(0,212,255,0.12);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  animation: floatLabel 14s ease-in-out infinite;
}

/* Each label gets a different start position, delay and path */
.hfl-1 { top: 18%; left: 8%;  animation-delay: 0s;    animation-duration: 16s; }
.hfl-2 { top: 35%; left: 62%; animation-delay: -3s;   animation-duration: 13s; color: rgba(34,197,94,0.5); border-color: rgba(34,197,94,0.15); }
.hfl-3 { top: 72%; left: 15%; animation-delay: -6s;   animation-duration: 18s; }
.hfl-4 { top: 55%; left: 78%; animation-delay: -9s;   animation-duration: 15s; }
.hfl-5 { top: 82%; left: 45%; animation-delay: -4s;   animation-duration: 12s; color: rgba(0,130,255,0.5); border-color: rgba(0,130,255,0.15); }
.hfl-6 { top: 25%; left: 38%; animation-delay: -7s;   animation-duration: 20s; color: rgba(244,63,94,0.5); border-color: rgba(244,63,94,0.15); }
.hfl-7 { top: 65%; left: 58%; animation-delay: -11s;  animation-duration: 17s; }

@keyframes floatLabel {
  0%   { transform: translate(0px, 0px);     opacity: 0.3; }
  20%  { opacity: 0.7; }
  50%  { transform: translate(12px, -18px);  opacity: 0.5; }
  80%  { opacity: 0.7; }
  100% { transform: translate(-8px, 10px);   opacity: 0.3; }
}

@keyframes floatTerminal {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%       { transform: translateY(calc(-50% - 14px)) rotate(0.4deg); }
}

/* ─── SECTION SPACER AFTER HERO ─── */
.section-categories {
  padding-top: var(--space-3xl);
}

/* ─── KEYFRAMES (shared) ─── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PARTICLE CANVAS ─── */
#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1160px) {
  .hero-terminal { display: none; }
  .hero-content  { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--navbar-h) + 2rem);
    min-height: 100svh;
  }

  .hero-content {
    padding: var(--space-xl) var(--space-lg);
    max-width: 100%;
    width: 100%;
  }

  /* Reduce glow blob on mobile so it doesn't wash out text */
  .hero::before {
    width: 100%;
    left: -20%;
    opacity: 0.7;
  }

  /* Keep canvas full-size but reduce particle density via JS */
  #heroParticles {
    opacity: 0.6;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    /* Disable the rotating border on mobile — too expensive */
  }
  .hero-badge::before { display: none; }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .stat-number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-stats {
    gap: var(--space-sm);
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
}

/* ─── LEARNING PATHS SECTION ─── */
.section-paths {
  padding-top: var(--space-12);
  padding-bottom: 0;
}

#pathsGrid .course-card,
#pathsGrid a[style] {
  background: var(--bg-surface);
}

/* ═══════════════════════════════════════════
   AI FEATURE STYLES
═══════════════════════════════════════════ */

/* ── Hero AI badge ─────────────────────────── */
.hero-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(90deg,rgba(0,212,170,.08),rgba(0,212,170,.03));
  border: 1px solid rgba(0,212,170,.25);
  border-radius: 999px;
  padding: .35rem 1rem .35rem .6rem;
  margin-top: .6rem;
  font-size: .72rem;
  color: #8b949e;
  box-shadow: 0 0 20px rgba(0,212,170,.06), inset 0 1px 0 rgba(0,212,170,.1);
  backdrop-filter: blur(4px);
}
.hero-ai-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4aa;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,212,170,.6);
  animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 8px rgba(0,212,170,.6); }
  50%      { opacity:.4; transform:scale(.75); box-shadow:0 0 3px rgba(0,212,170,.2); }
}
.hero-ai-icon { font-size: .8rem; }
.hero-ai-text {
  font-family: var(--font-mono);
  letter-spacing: .03em;
  font-size: .68rem;
  color: #8b949e;
}
.hero-ai-text strong {
  color: #00d4aa;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ── AI Feature Section ────────────────────── */
.section-ai-feature {
  padding: var(--space-2xl) 0;
  position: relative;
}
.section-ai-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,212,170,.02) 50%, transparent 100%);
  pointer-events: none;
}
.ai-feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.ai-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,170,.4), transparent);
}
.ai-feature-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,170,.04) 0%, transparent 70%);
  pointer-events: none;
}
.ai-feature-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #00d4aa;
  margin-bottom: .8rem;
  background: rgba(0,212,170,.06);
  border: 1px solid rgba(0,212,170,.15);
  border-radius: 999px;
  padding: .25rem .7rem;
  width: fit-content;
}
.ai-feature-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4aa;
  animation: heroPulse 2s infinite;
}
.ai-feature-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1.15;
  margin-bottom: .85rem;
  letter-spacing: -.025em;
}
.ai-feature-desc {
  font-size: .85rem;
  color: #8b949e;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  max-width: 420px;
}
.ai-feature-points {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.8rem;
}
.ai-feature-point {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  color: #c9d1d9;
  font-family: var(--font-mono);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  padding: .5rem .75rem;
}
.ai-feature-point span:first-child { flex-shrink: 0; }

/* ── AI Chat Preview ───────────────────────── */
.ai-chat-preview {
  background: #080c16;
  border: 1px solid rgba(0,212,170,.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,212,170,.05),
    0 24px 64px rgba(0,0,0,.7),
    0 0 80px rgba(0,212,170,.04);
  position: relative;
  z-index: 1;
}
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1rem;
  background: linear-gradient(90deg, rgba(0,212,170,.07), transparent);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ai-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00d4aa,#00a896);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  color: #0d1117;
  font-family: var(--font-mono);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,212,170,.3);
}
.ai-chat-name {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: #00d4aa;
  letter-spacing: .04em;
}
.ai-chat-status {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  color: #8b949e;
  margin-top: .1rem;
}
.ai-chat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4aa;
  animation: heroPulse 2s infinite;
  display: inline-block;
}
.ai-chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ai-chat-msg {
  padding: .55rem .8rem;
  border-radius: 10px;
  font-size: .75rem;
  line-height: 1.6;
  max-width: 85%;
  animation: msgFadeIn .5s ease both;
}
@keyframes msgFadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.ai-chat-bot {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  color: #c9d1d9;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  animation-delay: .15s;
}
.ai-chat-bot code {
  background: rgba(0,212,170,.1);
  color: #00d4aa;
  padding: .1rem .35rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .68rem;
}
.ai-chat-user {
  background: rgba(0,212,170,.08);
  border: 1px solid rgba(0,212,170,.18);
  color: #e6edf3;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  animation-delay: .4s;
}
.ai-chat-input-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .9rem;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.015);
  font-size: .7rem;
  color: #3d4450;
  font-family: var(--font-mono);
}
.ai-chat-send {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg,#00d4aa,#00a896);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d1117;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,212,170,.3);
}

/* ── Mobile ────────────────────────────────── */
@media (max-width: 768px) {
  .ai-feature-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
  .ai-feature-title { font-size: 1.5rem; }
  .ai-feature-desc  { max-width: 100%; }
}

/* ── Mini Terminal Preview ───────────────────────────── */
.hero-terminal-mini {
  margin-top: 1.8rem;
  width: 100%;
  max-width: 480px;
  background: rgba(4,8,16,.97);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,212,255,.08), 0 8px 32px rgba(0,0,0,.6);
  animation: fadeSlideUp .8s .6s ease both;
}
.htm-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  background: rgba(0,212,255,.04);
  border-bottom: 1px solid rgba(0,212,255,.1);
}
.htm-title {
  font-family: monospace;
  font-size: .6rem;
  color: #8b949e;
  flex: 1;
  text-align: center;
  letter-spacing: .04em;
}
.htm-live {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-family: monospace;
  font-size: .55rem;
  color: #22c55e;
  letter-spacing: .08em;
}
.htm-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 1.5s infinite;
}
.htm-body {
  padding: .65rem .85rem;
  font-family: monospace;
  font-size: .72rem;
  line-height: 1.7;
  min-height: 90px;
  color: #00d4ff;
}
.htm-body .prompt { color: #22c55e; margin-right: .3rem; }
.htm-body .cmd    { color: #e6edf3; }
.htm-body .output { color: #8b949e; padding-left: 1rem; display: block; }
.htm-body .cursor {
  display: inline-block;
  width: 7px; height: .85em;
  background: #00d4ff;
  animation: htmBlink .8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes htmBlink { 0%,100%{opacity:1} 50%{opacity:0} }

@media (max-width: 768px) {
  .hero-terminal-mini { max-width: 100%; }
}
