/* =========================================================
   Buholytics — Design System
   Tech / Dashboard / Terminal aesthetic
   ========================================================= */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:root {
  /* Color tokens — cold carbons + amber/cyan tech accents */
  --bg-base: #09090B;
  --bg-layer-1: #0C0C0F;
  --bg-layer-2: #121218;
  --bg-layer-3: #18181F;
  --bg-layer-4: #202029;

  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --accent: #FACC15;
  --accent-dim: #CA8A04;
  --accent-glow: rgba(250, 204, 21, 0.14);
  --accent-glow-strong: rgba(250, 204, 21, 0.32);

  --tech: #22D3EE;
  --tech-dim: #0891B2;
  --tech-glow: rgba(34, 211, 238, 0.14);
  --tech-glow-strong: rgba(34, 211, 238, 0.35);

  --border: rgba(250, 250, 250, 0.08);
  --border-highlight: rgba(250, 250, 250, 0.16);
  --border-accent: rgba(250, 204, 21, 0.45);
  --border-tech: rgba(34, 211, 238, 0.40);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --nav-height: 4.5rem;
  --container: min(72rem, calc(100% - 2rem));
  --radius: 0rem;
  --radius-sm: 0rem;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-offset: 8px;
}

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

/* Technical grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
}

/* Subtle scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.2;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--tech-glow-strong);
  color: var(--text-primary);
}

/* Utilities */
.container {
  width: var(--container);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    --container: min(72rem, calc(100% - 4rem));
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-mark-bg {
  fill: var(--bg-layer-2);
  stroke: var(--border-accent);
  stroke-width: 1.5;
}

.brand-mark-eye {
  fill: var(--accent);
}

.brand-mark-beak {
  fill: var(--accent-dim);
}

.brand-mark-detail {
  stroke: var(--tech);
  opacity: 0.7;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-primary);
  background: var(--bg-layer-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.main-nav .nav-cta {
  margin-left: 0.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 0 24px var(--accent-glow-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-layer-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--border-tech);
  color: var(--text-primary);
  background: var(--bg-layer-3);
  box-shadow: 0 0 16px var(--tech-glow);
  outline: none;
}

.lang-current {
  color: var(--tech);
}

.lang-separator,
.lang-alt {
  color: var(--text-muted);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--border-tech);
  background: var(--bg-layer-2);
  box-shadow: 0 0 16px var(--tech-glow);
  outline: none;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { width: 100%; }
.menu-toggle span:nth-child(2) { width: 70%; }
.menu-toggle span:nth-child(3) { width: 85%; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

.mobile-nav {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a,
.mobile-lang-toggle {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: var(--bg-layer-2);
  color: var(--text-primary);
}

.mobile-lang-toggle {
  justify-content: flex-start;
  margin-top: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow-strong), transparent 60%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.55fr 0.45fr;
    gap: 4rem;
  }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-layer-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-status .status-line {
  color: var(--tech);
}

.hero-status .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
}

.hero-status .status-badge::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tech);
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
  content: '[';
  color: var(--text-muted);
}

.hero-eyebrow::after {
  content: ']';
  color: var(--text-muted);
}

.hero-eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 10px var(--tech-glow-strong);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 2rem;
}

.hero-title::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  background: var(--tech);
  margin-left: 0.1em;
  vertical-align: baseline;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 10px var(--tech-glow-strong);
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-terminal {
  display: none;
  position: relative;
  background: var(--bg-layer-2);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(250, 250, 250, 0.04);
}

@media (min-width: 1024px) {
  .hero-terminal {
    display: block;
  }
}

.hero-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-layer-3);
}

.hero-terminal-header span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.hero-terminal-header span:nth-child(1) { background: #EF4444; }
.hero-terminal-header span:nth-child(2) { background: #F59E0B; }
.hero-terminal-header span:nth-child(3) { background: #22C55E; }

.hero-terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-terminal-body .cmd {
  color: var(--tech);
}

.hero-terminal-body .val {
  color: var(--accent);
}

.hero-terminal-body .comment {
  color: var(--text-muted);
}

/* Aurora background */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform, translate, scale, opacity;
}

.aurora-live .aurora-blob {
  animation: none;
}

.aurora-blob-1 {
  width: 32rem;
  height: 32rem;
  top: -6%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.75), rgba(8, 145, 178, 0.35) 50%, transparent 70%);
  animation: aurora-float-1 22s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 40rem;
  height: 40rem;
  top: 22%;
  right: -14%;
  background: radial-gradient(circle at 60% 40%, rgba(250, 204, 21, 0.55), rgba(139, 90, 43, 0.25) 55%, transparent 70%);
  animation: aurora-float-2 26s ease-in-out infinite;
}

.aurora-blob-3 {
  width: 28rem;
  height: 28rem;
  bottom: -6%;
  left: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 250, 250, 0.14), rgba(34, 211, 238, 0.22) 50%, transparent 70%);
  animation: aurora-float-3 20s ease-in-out infinite;
}

.aurora-blob-4 {
  width: 24rem;
  height: 24rem;
  bottom: 18%;
  right: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.4), rgba(202, 138, 4, 0.18) 55%, transparent 70%);
  animation: aurora-float-4 24s ease-in-out infinite;
}

@keyframes aurora-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, 6%) scale(1.08); }
  66% { transform: translate(-4%, 10%) scale(0.95); }
}

@keyframes aurora-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -8%) scale(1.1); }
}

@keyframes aurora-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-6%, -12%) scale(1.05); }
  80% { transform: translate(6%, 4%) scale(0.92); }
}

@keyframes aurora-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10%, -6%) scale(1.07); }
  66% { transform: translate(-8%, 8%) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob {
    animation: none;
    opacity: 0.25;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translate(var(--shadow-offset), calc(var(--shadow-offset) * -1));
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--tech);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--bg-base);
  color: var(--accent);
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 var(--accent), 0 0 30px var(--accent-glow-strong);
}

.btn-secondary {
  background: var(--bg-layer-2);
  color: var(--text-primary);
  border-color: var(--border-highlight);
  box-shadow: inset 0 0 0 1px rgba(250, 250, 250, 0.02);
}

.btn-secondary:hover {
  background: var(--bg-base);
  color: var(--text-primary);
  border-color: var(--tech);
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 var(--tech), 0 0 24px var(--tech-glow);
}

.btn-donate {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-donate:hover {
  background: var(--bg-base);
  color: var(--accent);
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 var(--accent), 0 0 24px var(--accent-glow-strong);
}

/* Sections */
.section {
  padding: clamp(7rem, 12vw, 10rem) 0;
  position: relative;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tech);
  margin-bottom: 1.25rem;
}

.section-eyebrow::before {
  content: '[';
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.section-eyebrow::after {
  content: ']';
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 52ch;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 4.5rem;
}

/* Tools */
.section-tools {
  background: var(--bg-layer-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-tools::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--tech-glow), transparent 60%);
  opacity: 0.35;
}

.tools-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-card-featured {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-card-featured {
    grid-column: span 3;
  }
}

.tool-card {
  position: relative;
  background: rgba(18, 18, 24, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(34, 211, 238, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.tool-card:hover {
  transform: translate(var(--shadow-offset), calc(var(--shadow-offset) * -1));
  border-color: var(--border-tech);
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 rgba(34, 211, 238, 0.18), 0 0 32px var(--tech-glow);
}

.tool-card-featured {
  border: 1px solid var(--border-accent);
}

.tool-card-featured:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 rgba(250, 204, 21, 0.22), 0 0 36px var(--accent-glow);
}

.tool-card-featured::before {
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(250, 204, 21, 0.1), transparent 40%);
}

.tool-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.tool-card-inner {
  position: relative;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card-featured .tool-card-inner {
  padding: 2.5rem;
}

.tool-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-status::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.status-live {
  background: rgba(34, 211, 238, 0.1);
  color: var(--tech);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.status-live::before {
  background: var(--tech);
  box-shadow: 0 0 8px var(--tech);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-soon {
  background: rgba(113, 113, 122, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.status-soon::before {
  background: var(--text-muted);
}

.tool-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  background: var(--bg-layer-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tool-card-featured .tool-name {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tech);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap 0.2s var(--ease-out), color 0.2s ease;
}

.tool-link:hover {
  gap: 0.75rem;
  color: var(--accent);
}

.tool-card-soon .tool-desc {
  margin-bottom: 0;
}

/* About */
.about-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
  }
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-principles {
  display: grid;
  gap: 1.25rem;
}

.principle-card {
  background: rgba(12, 12, 15, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tech);
  border-radius: var(--radius-sm);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}

.principle-card:hover {
  border-color: var(--border-tech);
  box-shadow: 0 0 24px var(--tech-glow);
  transform: translateY(-2px);
}

.principle-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.principle-number::before {
  content: '[';
}

.principle-number::after {
  content: ']';
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.principle-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* Contact */
.section-contact {
  background: var(--bg-layer-1);
  border-top: 1px solid var(--border);
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, var(--accent-glow), transparent 60%);
  opacity: 0.3;
}

.contact-grid {
  max-width: 70ch;
  margin-inline: auto;
  position: relative;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  margin: 2rem 0 2.5rem;
  position: relative;
  word-break: break-word;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--tech);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 0 12px var(--tech-glow-strong);
}

.contact-email:hover::after,
.contact-email:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-list {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  background: var(--bg-layer-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.social-list a:hover,
.social-list a:focus-visible {
  color: var(--tech);
  border-color: var(--tech);
  background: var(--bg-base);
  transform: translate(var(--shadow-offset), calc(var(--shadow-offset) * -1));
  box-shadow: var(--shadow-offset) calc(var(--shadow-offset) * -1) 0 var(--tech), 0 0 20px var(--tech-glow);
  outline: none;
}

.social-list svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Donate */
.section-donate {
  padding-bottom: clamp(7rem, 12vw, 10rem);
}

.donate-card {
  position: relative;
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  gap: 3rem;
  overflow: hidden;
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 0 1px rgba(250, 250, 250, 0.04);
}

@media (min-width: 768px) {
  .donate-card {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: 4rem;
  }
}

.donate-content {
  position: relative;
  z-index: 1;
}

.donate-content p {
  color: var(--text-secondary);
  margin: 1.25rem 0 2rem;
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Donate rings */
.donate-rings {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-tech);
  opacity: 0;
  transform: scale(0.6);
  animation: ring-pulse 3s var(--ease-out) infinite;
}

.ring:nth-child(1) {
  width: 6rem;
  height: 6rem;
  animation-delay: 0s;
}

.ring:nth-child(2) {
  width: 9rem;
  height: 9rem;
  animation-delay: 0.6s;
}

.ring:nth-child(3) {
  width: 12rem;
  height: 12rem;
  animation-delay: 1.2s;
}

.ring-core {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 24px var(--tech-glow-strong);
}

@keyframes ring-pulse {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  20% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    opacity: 0.25;
    transform: scale(1);
  }
  .ring-core {
    box-shadow: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  background: var(--bg-base);
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Reveal animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible general */
:focus-visible {
  outline: 2px solid var(--tech);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tech);
  outline-offset: 2px;
}

/* Animations */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

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

/* Mobile polish */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .tool-card-inner,
  .tool-card-featured .tool-card-inner {
    padding: 1.5rem;
  }

  .donate-card {
    padding: 2rem;
  }

  .donate-rings {
    min-height: 10rem;
  }
}
