/* Yūrei Tech — landing page styles */

/* ============ Fonts (self-hosted, no Google Fonts) ============ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  /* Must cover U+016A (Ū) — the wordmark's own glyph. */
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============ Tokens ============ */

:root {
  --bg: #060608;
  --bg-hero: #08080D;
  --card: #0B0B11;
  --ink: #F4F4FF;
  --ink-72: rgba(244, 244, 255, 0.72);
  --ink-70: rgba(244, 244, 255, 0.7);
  --ink-68: rgba(244, 244, 255, 0.68);
  --ink-65: rgba(244, 244, 255, 0.65);
  --ink-62: rgba(244, 244, 255, 0.62);
  --ink-60: rgba(244, 244, 255, 0.6);
  --ink-58: rgba(244, 244, 255, 0.58);
  --ink-50: rgba(244, 244, 255, 0.5);
  --ink-45: rgba(244, 244, 255, 0.45);
  --ink-40: rgba(244, 244, 255, 0.4);
  --ink-35: rgba(244, 244, 255, 0.35);
  --border: rgba(255, 255, 255, 0.07);
  --border-08: rgba(255, 255, 255, 0.08);
  --purple: #A855FF;
  --purple-hover: #B96FFF;
  --purple-glow: rgba(168, 85, 255, 0.45);
  --pink: #FF2D9C;
  --cyan: #00E5FF;
  --lime: #C2FF33;
  --red: #FF3355;
  --green: #00FFA3;
  --yellow: #FFCC3D;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
}

/* ============ Base / reset ============ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  max-width: 100vw;
}

::selection {
  background: rgba(168, 85, 255, 0.3);
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p {
  text-wrap: pretty;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@keyframes yt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes yt-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  animation: yt-pulse 2.2s infinite;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--purple);
  color: #060608;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============ Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 20px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}

.nav-logo svg {
  filter: drop-shadow(0 0 6px rgba(168, 85, 255, 0.55));
}

.wordmark {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.wordmark .wm-accent {
  color: var(--purple);
}

.wordmark .wm-suffix {
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.5;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--ink-60);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn-nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #060608;
  background: var(--purple);
  border-radius: 8px;
  padding: 11px 18px;
  box-shadow: 0 0 22px var(--purple-glow);
  flex: none;
  transition: background-color 0.15s ease;
}

.btn-nav-cta:hover {
  color: #060608;
  background: var(--purple-hover);
}

/* ============ Hero ============ */

.hero {
  background:
    radial-gradient(ellipse 55% 60% at 78% 14%, rgba(168, 85, 255, 0.13), transparent 65%),
    radial-gradient(ellipse 40% 50% at 6% 100%, rgba(255, 45, 156, 0.07), transparent 60%),
    var(--bg-hero);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding: 112px 40px 96px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--purple);
  margin-bottom: 26px;
}

.hero-eyebrow .pulse-dot {
  margin-right: 12px;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.625rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 .accent {
  color: var(--purple);
  text-shadow: 0 0 34px rgba(168, 85, 255, 0.5);
}

.hero-lede {
  max-width: 54ch;
  margin: 30px 0 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-72);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 9px;
  padding: 15px 24px;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  color: #060608;
  background: var(--purple);
  box-shadow: 0 0 26px rgba(168, 85, 255, 0.5);
}

.btn-primary:hover {
  color: #060608;
  background: var(--purple-hover);
}

.btn-secondary {
  color: var(--purple);
  border: 1px solid var(--purple);
}

.btn-secondary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  filter: drop-shadow(0 0 26px rgba(168, 85, 255, 0.55));
  animation: yt-drift 7s ease-in-out infinite;
  width: min(340px, 60vw);
  height: auto;
}

.hero-art .glyph-pulse {
  animation: yt-pulse 3s infinite;
}

/* ============ Creed ============ */

.creed {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.creed-item {
  padding: 30px 34px 40px;
  border-right: 1px solid var(--border);
}

.creed-item:first-child {
  padding-left: 0;
}

.creed-item:last-child {
  border-right: none;
  padding-right: 0;
}

.creed-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--purple);
  margin-bottom: 10px;
}

.creed-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-65);
  margin: 0;
}

/* ============ Section eyebrow (shared) ============ */

.section {
  padding: 96px 40px 0;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.section-eyebrow .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============ Manifesto ============ */

.manifesto {
  padding-top: 104px;
}

.manifesto h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.875rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 22ch;
}

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 34px;
}

.manifesto-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
}

/* ============ What we build ============ */

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.build-card {
  background: var(--card);
  border: 1px solid var(--border-08);
  border-radius: 14px;
  padding: 32px;
}

.build-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--purple);
  margin-bottom: 18px;
}

.build-title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.build-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-62);
  margin: 0;
}

/* ============ Products ============ */

.product {
  border: 1px solid var(--border-08);
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--card);
}

.product + .product {
  margin-top: 24px;
}

.product-cyber {
  background-image:
    radial-gradient(ellipse 50% 60% at 90% 8%, rgba(0, 229, 255, 0.09), transparent 62%),
    radial-gradient(ellipse 40% 50% at 4% 96%, rgba(255, 45, 156, 0.07), transparent 60%);
}

.product-mail {
  background-image:
    radial-gradient(ellipse 50% 60% at 10% 8%, rgba(0, 229, 255, 0.08), transparent 62%),
    radial-gradient(ellipse 40% 50% at 96% 96%, rgba(194, 255, 51, 0.07), transparent 60%);
}

.product-inner {
  display: grid;
  gap: 52px;
  align-items: center;
  padding: 48px;
}

.product-cyber .product-inner {
  grid-template-columns: 1.05fr 1fr;
}

.product-mail .product-inner {
  grid-template-columns: 1fr 1.05fr;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-name {
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.045em;
}

.product-name .wm-suffix {
  font-weight: 500;
  opacity: 0.55;
}

.product-cyber .product-name .r-glow {
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 45, 156, 0.6);
}

.product-mail .product-name .r-glow {
  color: var(--lime);
  text-shadow: 0 0 14px rgba(194, 255, 51, 0.5);
}

.product-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.status-badge {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-50);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
}

.product h3 {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.375rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.product-cyber h3 .accent { color: var(--pink); }
.product-mail h3 .accent { color: var(--lime); }

.product-desc {
  max-width: 46ch;
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-68);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.product-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-68);
}

.product-list .num {
  font-family: var(--mono);
  flex: none;
}

.product-cyber .product-list .num { color: var(--cyan); }
.product-mail .product-list .num { color: var(--lime); }

.product-brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--purple);
}

/* --- Cyber incident panel --- */

.panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.incident-panel {
  padding: 26px;
}

.incident-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.severity::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 51, 85, 0.7);
}

.inc-id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-45);
}

.panel-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

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

.panel-desc {
  font-size: 13.5px;
  color: var(--ink-58);
  line-height: 1.55;
  margin: 0 0 20px;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 7px 13px;
}

.chip-green {
  color: var(--green);
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.chip-yellow {
  color: var(--yellow);
  background: rgba(255, 204, 61, 0.08);
  border: 1px solid rgba(255, 204, 61, 0.3);
}

.chip-neutral {
  color: var(--ink-60);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-50);
}

.timeline-row {
  display: flex;
  gap: 12px;
}

.timeline-row time {
  flex: none;
}

.timeline-row .t-cyan { color: var(--cyan); }
.timeline-row .t-pink { color: var(--pink); }

/* --- Mail inbox panel --- */

.inbox-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-08);
}

.inbox-head .inbox-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-72);
}

.inbox-head .inbox-count {
  color: var(--ink-40);
}

.inbox-head .e2e-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.inbox-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.inbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inbox-row:last-child {
  border-bottom: none;
}

.inbox-row.is-blocked {
  background: rgba(255, 45, 156, 0.05);
}

.inbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
}

.inbox-dot.d-cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 255, 0.6); }
.inbox-dot.d-lime { background: var(--lime); box-shadow: 0 0 8px rgba(194, 255, 51, 0.6); }
.inbox-dot.d-pink { background: var(--pink); box-shadow: 0 0 8px rgba(255, 45, 156, 0.6); animation: yt-pulse 2s infinite; }

.inbox-body {
  flex: 1;
  min-width: 0;
}

.inbox-title {
  font-weight: 600;
  font-size: 14.5px;
}

.inbox-sub {
  font-size: 12.5px;
  color: var(--ink-50);
  margin-top: 3px;
}

.inbox-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 5px 11px;
  flex: none;
}

.inbox-tag.tag-cyan { color: var(--cyan); background: rgba(0, 229, 255, 0.1); }
.inbox-tag.tag-lime { color: var(--lime); background: rgba(194, 255, 51, 0.1); }
.inbox-tag.tag-pink { color: var(--pink); background: rgba(255, 45, 156, 0.1); }

.inbox-footnote {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-45);
}

/* ============ Mesh ============ */

.mesh-card {
  border: 1px solid var(--border-08);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(168, 85, 255, 0.1), transparent 65%),
    var(--card);
  padding: 52px 48px;
}

.mesh-card h2 {
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 26ch;
  text-align: center;
}

.mesh-card > p {
  margin: 0 auto;
  max-width: 66ch;
  text-align: center;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-65);
}

.mesh-link-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin: 44px 0 0;
}

.mesh-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border-08);
  border-radius: 14px;
  padding: 26px 30px;
}

.mesh-node svg {
  flex: none;
}

.mesh-node-title {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.mesh-node-title .r-cyber { color: var(--pink); }
.mesh-node-title .r-mail { color: var(--lime); }

.mesh-node-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-45);
  margin-top: 6px;
}

.mesh-link-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mesh-link-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-45);
  white-space: nowrap;
}

.mesh-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.mesh-feature {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 18px;
}

.mesh-feature-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--purple);
  margin-bottom: 9px;
}

.mesh-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-62);
  margin: 0;
}

/* ============ Contact / CTA ============ */

.cta-card {
  border: 1px solid rgba(168, 85, 255, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 55% 80% at 82% 12%, rgba(168, 85, 255, 0.16), transparent 62%),
    var(--bg-hero);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--purple);
  margin-bottom: 20px;
}

.cta-eyebrow .pulse-dot {
  margin-right: 12px;
}

.cta-card h2 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.625rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta-card > div:first-child > p {
  margin: 0;
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-70);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-50);
}

.signup-form input[type="email"] {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.15s ease;
}

.signup-form input[type="email"]:focus {
  border-color: var(--purple);
}

.signup-form input[type="email"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.turnstile-slot {
  min-height: 0;
}

.turnstile-slot:empty {
  display: none;
}

.btn-submit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #060608;
  background: var(--purple);
  border: none;
  border-radius: 10px;
  padding: 17px 22px;
  cursor: pointer;
  box-shadow: 0 0 26px var(--purple-glow);
  transition: background-color 0.15s ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--purple-hover);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.cta-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  line-height: 1.7;
  margin: 0;
}

.form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  min-height: 1.6em;
}

.form-status[data-tone="error"] {
  color: var(--red);
}

.form-status[data-tone="success"] {
  color: var(--green);
}

.privacy-line {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-45);
  margin: 0;
}

.privacy-line a {
  color: var(--ink-60);
  text-decoration: underline;
}

.privacy-line a:hover {
  color: var(--ink);
}

/* ============ Footer ============ */

.site-footer {
  padding: 64px 40px 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.footer-brand-logo svg {
  filter: drop-shadow(0 0 6px rgba(168, 85, 255, 0.55));
}

.footer-brand .wordmark {
  font-size: 20px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-45);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.footer-col-heading {
  color: var(--ink-35);
}

.footer-col a {
  color: var(--ink-65);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-35);
  flex-wrap: wrap;
}

.footer-bottom .push-right {
  margin-left: auto;
}

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

@media (max-width: 900px) {
  .container,
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav {
    padding: 16px 24px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    padding-bottom: 2px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 64px 24px 56px;
    gap: 40px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    width: min(220px, 50vw);
  }

  .creed {
    grid-template-columns: 1fr;
  }

  .creed-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
  }

  .creed-item:last-child {
    border-bottom: none;
  }

  .section {
    padding-top: 64px;
  }

  .manifesto {
    padding-top: 64px;
  }

  .manifesto-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .build-grid {
    grid-template-columns: 1fr;
  }

  .product-inner,
  .product-cyber .product-inner,
  .product-mail .product-inner {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }

  .mesh-card {
    padding: 36px 24px;
  }

  .mesh-link-row {
    grid-template-columns: 1fr;
  }

  .mesh-link-mid {
    flex-direction: row;
    padding: 8px 0;
  }

  .mesh-link-mid svg {
    transform: rotate(90deg);
  }

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

  .cta-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    padding: 14px 20px;
  }

  .hero-grid {
    padding: 48px 20px 40px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

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

  .btn {
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom .push-right {
    margin-left: 0;
  }
}

/* ===== Legal / 404 pages ===== */

.legal {
  padding: 96px 40px 96px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-45);
  margin: 0 0 48px;
}

.legal h2 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

.legal p, .legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-70);
}

.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal a {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.notfound svg {
  filter: drop-shadow(0 0 26px rgba(168, 85, 255, 0.55));
  animation: yt-drift 7s ease-in-out infinite;
  margin-bottom: 32px;
}

.notfound .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--purple);
  margin-bottom: 18px;
}

.notfound h1 {
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.notfound p {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0 0 32px;
}
}
