/* Swarmblade — one-page site */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
section, header { scroll-margin-top: 72px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 12, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  padding: 14px 32px;
  max-width: 1280px; margin: 0 auto;
}
.nav .wordmark { display: inline-flex; align-items: center; color: var(--bone-0); }
.nav .wordmark svg { height: 22px; width: auto; }
.nav-items {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex: 1;
}
.nav-items a {
  font-size: 13px; font-weight: 500; color: var(--bone-1);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-items a:hover { color: var(--bone-0); border-bottom-color: var(--olive-400); }
.nav-lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em;
}
.nav-lang a { color: var(--bone-3); transition: color var(--dur-fast) var(--ease); }
.nav-lang a.is-active { color: var(--bone-0); }
.nav-lang a:hover { color: var(--bone-0); }
.nav-lang .pipe { color: var(--bone-4); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 32px 120px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(44, 72, 40, 0.20), transparent 60%),
    var(--ink-1);
}
.hero-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,244,238,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,244,238,0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 75% 35%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 75% 35%, black 40%, transparent 95%);
  animation: gridDrift 7s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}
.track {
  position: absolute;
  width: 20px; height: 18px;
  animation: trackPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
.track polygon {
  fill: rgba(151, 196, 144, 0.06);
  stroke: var(--olive-300);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
@keyframes trackPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 0.96; margin: 0;
}
.hero-lede {
  font-size: 18px; color: var(--bone-1);
  max-width: 56ch; line-height: 1.55; margin: 0;
}

/* ---- Section base ---- */
.section {
  position: relative;
  padding: 120px 32px;
  border-bottom: 1px solid var(--line);
}
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-id {
  position: absolute; top: 24px; right: 32px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bone-3);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--olive-300);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--olive-400);
  border-radius: 999px; display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 28px; max-width: 18ch;
}
.section-body { display: flex; flex-direction: column; gap: 18px; max-width: 56ch; }
.section-body p { margin: 0; font-size: 16px; color: var(--bone-1); line-height: 1.6; }
.section-body p.lede { color: var(--bone-0); font-size: 17px; }

/* ---- Light sections (bone background) ---- */
.section.light {
  background: var(--bone-0);
  color: var(--ink-1);
  border-bottom-color: var(--line-light);
}
.section.light .section-title { color: var(--ink-1); }
.section.light .section-body p { color: #2A3026; }
.section.light .section-body p.lede { color: var(--ink-1); }
.section.light .section-id { color: rgba(11, 15, 12, 0.38); }
.section.light .eyebrow { color: var(--olive-700); }
.section.light .eyebrow .dot { background: var(--olive-500); }

/* ---- Contact (slightly darker bone) ---- */
.section.contact {
  background: #E8E8DC;
  color: var(--ink-1);
  border-bottom-color: var(--line-light);
}
.section.contact .section-title { color: var(--ink-1); margin-bottom: 24px; }
.section.contact .section-body p { color: #2A3026; }
.section.contact .section-id { color: rgba(11, 15, 12, 0.38); }

/* ---- Split layout (text + visual, alternating) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split.reverse > :last-child  { order: 1; }

/* ---- Visual panel (dark on light) ---- */
.visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-0);
  border: 1px solid var(--line);
  overflow: hidden;
}
.visual--wide { aspect-ratio: 16 / 9; }
.visual svg { display: block; width: 100%; height: 100%; }
.visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(111,162,102,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111,162,102,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
}
.visual-caption {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.visual-caption .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--olive-400);
  animation: pulse 2s infinite;
}
.visual-tag-tr {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-3);
}
.visual-corner {
  position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--bone-2);
}
.visual-corner.tl { top: 8px; left: 8px;   border-right: none; border-bottom: none; }
.visual-corner.tr { top: 8px; right: 8px;  border-left: none;  border-bottom: none; }
.visual-corner.bl { bottom: 8px; left: 8px;  border-right: none; border-top: none; }
.visual-corner.br { bottom: 8px; right: 8px; border-left: none;  border-top: none; }

.visual-demo-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--bone-2);
}

/* ---- Contact email ---- */
.contact-email {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  color: var(--ink-1);
  border-bottom: 1px solid var(--olive-500);
  padding-bottom: 6px;
  letter-spacing: -0.01em;
  word-break: break-all;
  max-width: 100%;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.contact-email:hover { color: var(--olive-700); border-bottom-color: var(--olive-700); }

/* ---- Footer ---- */
.footer {
  background: var(--ink-0);
  border-top: 1px solid var(--line);
  color: var(--bone-1);
}
.footer-top {
  max-width: 1180px; margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid; grid-template-columns: 1.2fr 2.4fr; gap: 64px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .wordmark { color: var(--bone-0); }
.footer-brand .wordmark svg { height: 30px; width: auto; }
.footer-tagline {
  font-size: 14px; color: var(--bone-2);
  max-width: 32ch; line-height: 1.55; margin: 0;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-h {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-300);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; color: var(--bone-1); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a { color: var(--bone-1); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--bone-0); }
.footer-col .mono { font-family: var(--font-mono); font-size: 13px; }
.footer-col .status-line { color: var(--bone-2); font-size: 13px; }

.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--bone-3);
}
.footer-bottom-left, .footer-bottom-right {
  display: inline-flex; align-items: center; gap: 16px;
}
.footer-lang {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--bone-3);
}
.footer-lang a { color: var(--bone-3); transition: color var(--dur-fast) var(--ease); }
.footer-lang a.is-active { color: var(--bone-0); }
.footer-lang a:hover { color: var(--bone-0); }
.footer-lang .pipe { color: var(--bone-4); }
.footer-sep { color: var(--bone-4); }

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .nav-inner { padding: 12px 20px; gap: 16px; }
  .nav-items { display: none; }
  .hero { padding: 96px 20px 80px; }
  .section { padding: 72px 20px; }
  .section-id { top: 16px; right: 20px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 1; }
  .split.reverse > :last-child  { order: 2; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px 32px;
  }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-bottom { padding: 16px 20px; }
}
