/* 2RC Labs — site styles. Colors and type from the 2RC Labs brand identity sheet. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian: #000000;
  --purple: #7B3FF2;
  --slate: #E6E8ED;
  --cloud: #FAFBFD;
  --grad-start: #5A1FF2;
  --grad-end: #A16BFF;
  --muted: rgba(230, 232, 237, 0.68);
  --line: rgba(123, 63, 242, 0.38);
  --line-soft: rgba(123, 63, 242, 0.18);
  --card: #07070a;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --max: 1120px;
  --grad: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--obsidian); color: var(--slate); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #C9A6FF; text-decoration-color: rgba(161, 107, 255, 0.55); text-underline-offset: 0.18em; }
a:hover { color: var(--cloud); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--purple);
  color: var(--cloud);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cloud); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--purple); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  /* faint technical grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 63, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 63, 242, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* soft flowing purple light in the corners */
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 420px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(90, 31, 242, 0.42), transparent 55%),
    radial-gradient(ellipse at 100% 10%, rgba(161, 107, 255, 0.28), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A6FF;
  margin: 0 0 18px;
}
.hero-logo { margin: 0 0 22px; }
.hero-logo img { height: 72px; width: auto; max-width: min(100%, 520px); }
.hero h1, h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--cloud);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  color: var(--cloud);
  background: var(--grad);
  box-shadow: 0 0 24px rgba(123, 63, 242, 0.35);
}
.btn-primary:hover { color: var(--cloud); filter: brightness(1.08); }
.btn-ghost {
  color: var(--slate);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--cloud); border-color: var(--purple); background: rgba(123, 63, 242, 0.08); }

/* Glow rule under section titles */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A6FF;
  margin: 0 0 10px;
}
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.title-rule {
  display: block;
  width: 140px;
  height: 2px;
  margin: 0 0 28px;
  border: 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(123, 63, 242, 0.7);
  opacity: 0.95;
}

/* Cards / features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 8px; }
.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--cloud);
}
.icon svg { width: 36px; height: 36px; display: block; }

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; object-fit: contain; vertical-align: middle; }
.shot figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px 14px;
}
.shot-hero { grid-column: 1 / -1; }
.shot-hero img { aspect-ratio: auto; }

.stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stages li {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cloud);
  background: rgba(123, 63, 242, 0.08);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

/* Split / about */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* Prose pages */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 0; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.4em; }
.page-hero { padding: 56px 0 20px; position: relative; overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 420px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(123, 63, 242, 0.28), transparent 70%);
  pointer-events: none;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  padding: 14px 0;
  color: var(--cloud);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--purple);
  transform: skewX(-20deg);
}
.faq details p { margin: 0 0 16px; }

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(123, 63, 242, 0.1), rgba(0, 0, 0, 0.2));
  margin: 28px 0 40px;
}
.contact-box p { margin: 0; color: var(--muted); }
.contact-box strong { color: var(--cloud); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 40px;
  margin-top: 20px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 22px; width: auto; }
.legal { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 3rem; }

@media (max-width: 860px) {
  .hero-inner, .split, .feature-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-logo img { height: 52px; }
  .section { padding: 56px 0; }
  .header-inner { min-height: 64px; }
}
@media (max-width: 520px) {
  .header-inner, .wrap, .hero-inner, .footer-inner { width: calc(100% - 28px); }
  .nav { gap: 6px 12px; }
  .nav a { letter-spacing: 0.08em; font-size: 12px; }
}
