:root {
  --bg: #050505;
  --bg-soft: #101010;
  --red: #f21010;
  --red-soft: #ff3a3a;
  --silver: #e6e6e6;
  --text: #f5f5f5;
  --muted: #a7a7a7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Chakra Petch", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #2a0000 0%, var(--bg) 45%),
    radial-gradient(circle at bottom left, #121212 0%, #070707 40%);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
}

.scanline {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 6, 6, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--red-soft);
}

main {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: clamp(42px, 8vw, 94px) 0 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--red-soft);
  letter-spacing: 2px;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0 14px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.description {
  margin: 0;
  max-width: 62ch;
  color: #d5d5d5;
  font-size: clamp(1rem, 2.3vw, 1.16rem);
}

.callsign {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-weight: 600;
}

.callsign strong {
  display: inline-block;
  color: var(--red-soft);
  font-family: "Orbitron", sans-serif;
  min-width: 10ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--red) 0%, #c50000 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(242, 16, 16, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.meta-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 12px;
  border-radius: 12px;
  contain: layout paint;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-item strong,
.meta-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  contain: layout paint;
}

.shield-core {
  width: min(430px, 82vw);
  z-index: 2;
}

.shield-core img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(255, 0, 0, 0.22));
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.ring-one {
  width: min(510px, 90vw);
  aspect-ratio: 1;
}

.ring-two {
  width: min(390px, 68vw);
  aspect-ratio: 1;
  border-color: rgba(242, 16, 16, 0.28);
}

.panel,
.members,
.contact {
  margin-top: clamp(28px, 5vw, 62px);
  padding: clamp(20px, 4vw, 38px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

h2 {
  margin: 0 0 16px;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.section-lead {
  margin: 0;
  color: #d4d4d4;
  max-width: 76ch;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-grid article {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 16px;
  contain: layout paint;
}

.focus-grid h3 {
  margin: 0 0 8px;
  color: var(--red-soft);
  font-size: 1.05rem;
}

.focus-grid p {
  margin: 0;
  color: #d0d0d0;
}

.tools-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  contain: layout paint;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 16, 16, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.tool-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 235, 235, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.2;
  color: #f0f0f0;
}

.vision-quote {
  margin: 0;
  border-left: 4px solid var(--red-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  color: #efefef;
  font-size: 1.02rem;
  line-height: 1.65;
}

.vision-quote + .section-lead {
  margin-top: 14px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stack-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  padding: 16px;
  contain: layout paint;
}

.stack-card h3 {
  margin: 0 0 10px;
  color: var(--red-soft);
  font-size: 1.06rem;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
  color: #dfdfdf;
  line-height: 1.65;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.member-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.35));
  transition: transform 180ms ease, border-color 180ms ease;
  contain: layout paint;
}

.member-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 16, 16, 0.6);
}

.member-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-content {
  padding: 14px 16px 18px;
}

.member-content h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
}

.member-content p {
  margin: 8px 0 0;
  color: #cecece;
}

.contact p {
  margin: 0 0 16px;
  color: #d3d3d3;
}

footer {
  width: min(1160px, 92vw);
  margin: 20px auto 34px;
  color: #b7b7b7;
  text-align: center;
}

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

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

body.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@media (max-width: 768px) {
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero-visual {
    min-height: 280px;
  }

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

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px 12px;
    background: rgba(8, 8, 8, 0.88);
  }

  nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  nav a {
    flex: 0 0 auto;
    font-size: 0.88rem;
    text-align: center;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
  }

  .brand span {
    font-size: 0.92rem;
  }

  .scanline {
    display: none;
  }

  .bg-grid {
    opacity: 0.16;
  }

  .hero {
    padding-top: 20px;
    gap: 22px;
  }

  .hero-visual {
    display: none;
  }

  .shield-core {
    width: min(300px, 72vw);
    animation: none;
  }

  .shield-core img {
    filter: drop-shadow(0 10px 24px rgba(255, 0, 0, 0.2));
    display: none;
  }

  .ring-one,
  .ring-two {
    animation: none;
    display: none;
  }

  .hero-actions .btn {
    width: calc(50% - 6px);
    min-width: 0;
  }

  .callsign {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .callsign strong {
    min-width: 0;
  }

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

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .member-content {
    padding: 10px 11px 13px;
  }

  .member-content h3 {
    font-size: 0.95rem;
  }

  .member-content p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .tool-logo {
    width: 60px;
    height: 60px;
    padding: 10px;
  }

  .tool-card {
    min-height: 148px;
    padding-inline: 10px;
  }

  body.reveal-ready .reveal,
  body.reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (hover: none) {
  .btn:hover,
  .tool-card:hover,
  .member-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield-core,
  .ring-one,
  .ring-two {
    animation: none;
  }

  .btn,
  .tool-card,
  .member-card,
  body.reveal-ready .reveal {
    transition: none;
  }

  body.reveal-ready .reveal,
  body.reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
