/* ── RNGNeeds — Newly Overhaul ── */

@font-face {
  font-family: 'Bjorn';
  src: url('./fonts/Bjorn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bjorn';
  src: url('./fonts/Bjorn-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:       #0e1219;
  --bg-2:     #0a0e14;
  --surface:  rgba(28, 34, 48, 0.88);
  --surface-2:rgba(22, 27, 38, 0.94);
  --text:     #eaecf2;
  --muted:    #8e99b4;
  --line:     rgba(255,255,255,0.07);
  --accent:   #ed6625;
  --accent-light: #ffb48a;
  --violet:   #8a72ff;
  --green:    #4cd89a;
  --radius:   20px;
  --radius-sm:14px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0 0 1rem; color: var(--muted); }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--accent-light);
}

.container {
  width: min(1140px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(14,18,25,.78);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand img { border-radius: 8px; }

.brand .logo-rng,
.brand .logo-needs {
  font-family: 'Bjorn', "Inter", sans-serif;
  font-weight: 400;
}

.brand .logo-needs { font-size: .78em; }

#site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links,
.nav-socials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

#site-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}

#site-nav a:hover { color: var(--text); }

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(237,102,37,.3);
  color: var(--accent-light) !important;
  font-size: .88rem !important;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.nav-cta:hover {
  background: rgba(237,102,37,.1);
  border-color: rgba(237,102,37,.5);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .15s;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #1a0d06;
  border: 1px solid rgba(237,102,37,.5);
  box-shadow: 0 8px 32px rgba(237,102,37,.2);
}

.btn.primary:hover { box-shadow: 0 12px 40px rgba(237,102,37,.3); }

.btn.ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.ghost:hover { border-color: rgba(255,255,255,.16); }

.btn.small {
  padding: .6rem 1rem;
  font-size: .82rem;
}

.btn-brand {
  font-family: 'Bjorn', "Inter", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: baseline;
}

/* ── SHARED ── */
.eyebrow {
  margin: 0 0 .6rem;
  font-family: 'Bjorn', "Inter", sans-serif;
  font-weight: 400;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent-light);
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237,102,37,.25), transparent);
}

.hero,
.hero + .section { border-top: none; }
.hero::before,
.hero + .section::before { display: none; }

/* Social icons in nav */
.nav-social svg {
  display: block;
  opacity: .55;
  transition: opacity .15s;
}

.nav-social:hover svg { opacity: 1; }

/* ── HERO ── */
.hero {
  padding: 4rem 0 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 22% 10%, rgba(237,102,37,.14), transparent),
    radial-gradient(ellipse 50% 40% at 78% 30%, rgba(138,114,255,.08), transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.symbol-glow {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.symbol-glow::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,102,37,.22), transparent 62%);
  filter: blur(20px);
}

.symbol-glow img {
  position: relative;
  width: min(100%, 400px);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
}

h1 {
  font-size: clamp(3.2rem, 7.5vw, 5.8rem);
  letter-spacing: -.04em;
  color: var(--text);
}

/* RNGNeeds logotype: Bjorn font, RNG large + NEEDS smaller */
.logo-rng,
.logo-needs {
  font-family: 'Bjorn', "Inter", sans-serif;
}

.logo-rng {
  font-size: 1em;
  font-weight: 400;
}

.logo-needs {
  font-size: .765em;
  font-weight: 400;
  letter-spacing: .02em;
}

.claim {
  margin: .6rem 0 .3rem;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--text);
  font-weight: 600;
}

.hero-text,
.what-text,
.agents-text,
.cta-text {
  min-width: 0;
}

.sub {
  font-size: 1.05rem;
  max-width: 50ch;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}

/* ── WHAT IT IS ── */
.what-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.what-text h2 {
  margin-bottom: .8rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.what-text p { max-width: 52ch; }

.what-cards {
  display: grid;
  gap: .9rem;
}

.role-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}

.role-card strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--text);
  font-size: 1rem;
}

.role-card p { margin: 0; font-size: .94rem; }

.role-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}

.role-card-media {
  margin-top: .8rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  width: 100%;
}

.role-card.accent {
  border-color: rgba(237,102,37,.2);
  background: linear-gradient(180deg, rgba(40,28,20,.7), var(--surface-2));
}

/* ── INSPECTOR SHOWCASE ── */
.inspector-section h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.screenshot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.screenshot.wide { grid-column: 1 / -1; }
.screenshot.half { grid-column: span 1; }

.screenshot img,
.screenshot picture img {
  width: 100%;
  display: block;
  padding: .8rem;
}

.screenshot picture {
  display: contents;
}

.screenshot figcaption {
  padding: .9rem 1.2rem;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── FEATURES ── */
.features-section h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  transition: border-color .15s;
}

.feature:hover { border-color: rgba(255,255,255,.12); }

.feature h3 {
  margin-bottom: .4rem;
  font-size: 1.02rem;
  color: var(--text);
}

.feature p { margin: 0; font-size: .92rem; }

/* ── CODE ── */
.code-section h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.code-examples {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.code-block {
  border-radius: var(--radius);
  background: rgba(12,15,22,.95);
  border: 1px solid var(--line);
  overflow: hidden;
}

.code-label {
  padding: .7rem 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}

.code-block pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.65;
}

.code-block code {
  color: #c8d0e4;
  font-size: inherit;
}

.code-block .kw  { color: #569cd6; }  /* keywords: blue */
.code-block .tp  { color: #4ec9b0; }  /* types/classes: teal */
.code-block .fn  { color: #dcdcaa; }  /* methods/functions: yellow */
.code-block .pr  { color: #9cdcfe; }  /* properties: light blue */
.code-block .str { color: #ce9178; }  /* strings: salmon */
.code-block .num { color: #b5cea8; }  /* numbers: green */
.code-block .cm  { color: #6a9955; }  /* comments: green-gray */

/* ── AI AGENTS ── */
.agents-band {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.4rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(138,114,255,.08), rgba(76,216,154,.05)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(138,114,255,.18);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

.agents-text { flex: 1; }

.agents-text h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.agents-actions {
  flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonials-section h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial {
  margin: 0;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.testimonial p {
  flex: 1;
  margin: 0 0 .8rem;
  font-size: .94rem;
  line-height: 1.7;
  color: #d0d6e6;
  font-style: italic;
}

.testimonial p::before { content: "\201C"; }
.testimonial p::after  { content: "\201D"; }

.testimonial cite {
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-light);
}

.testimonial cite::before {
  content: "\2014\00a0";
  color: var(--muted);
}

.testimonial-footer {
  margin-top: 1.2rem;
  font-size: .84rem;
  color: var(--muted);
}

.testimonial-footer a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── SUPPORT ── */
.support-section h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.support-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}

.support-card h3 {
  margin-bottom: .4rem;
  font-size: 1.02rem;
  color: var(--text);
}

.support-card p { font-size: .92rem; }

.support-link {
  display: inline-block;
  margin-top: .3rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--accent-light);
  transition: color .15s;
}

.support-link:hover { color: var(--accent); }

/* ── USE CASES ── */
.usecases-section h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.usecase {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
}

.usecase h3 {
  margin-bottom: .4rem;
  font-size: 1.02rem;
  color: var(--text);
}

.usecase p { margin: 0; font-size: .92rem; }

/* ── CTA ── */
.cta-band {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.4rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(237,102,37,.08), rgba(138,114,255,.05)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(237,102,37,.15);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

.cta-mark {
  flex-shrink: 0;
  border-radius: 16px;
}

.cta-text {
  flex: 1;
}

.cta-text h2 {
  margin-bottom: .4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.cta-text p { margin: 0; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .92rem;
}

.footer-brand img { border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-links a {
  font-size: .88rem;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: .82rem;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-layout,
  .what-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 1.4rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-symbol {
    order: 2;
  }

  .feature-grid,
  .usecase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot.half { grid-column: 1 / -1; }

  .cta-band,
  .agents-band {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

  .support-grid,
  .testimonial-grid { grid-template-columns: 1fr 1fr; }

  .symbol-glow { min-height: 280px; }
  .symbol-glow::before { width: 240px; height: 240px; }
}

@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-bar {
    flex-wrap: wrap;
    min-height: 64px;
    padding: .85rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    padding: 1rem 0 .25rem;
    margin-top: .35rem;
    border-top: 1px solid var(--line);
  }

  body.nav-open #site-nav {
    display: flex;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .9rem;
  }

  .nav-links a {
    padding: .55rem 0;
  }

  .nav-socials {
    gap: .65rem;
  }

  .nav-social {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
  }

  .nav-cta {
    width: 100%;
    padding: .85rem 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 1.6rem));
  }

  .feature-grid,
  .usecase-grid,
  .support-grid,
  .testimonial-grid,
  .nav-links {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: .75rem 1rem;
  }

  .section {
    padding: 3.15rem 0;
  }

  .hero {
    padding: 2rem 0 1.1rem;
  }

  .what-layout,
  .feature-grid,
  .usecase-grid,
  .support-grid,
  .testimonial-grid,
  .code-examples {
    gap: .85rem;
  }

  .eyebrow {
    margin-bottom: .45rem;
    font-size: .8rem;
    letter-spacing: .18em;
  }

  .what-text h2,
  .inspector-section h2,
  .features-section h2,
  .code-section h2,
  .testimonials-section h2,
  .support-section h2,
  .usecases-section h2 {
    font-size: 1.75rem;
    line-height: 1.12;
  }

  .agents-text h2,
  .cta-text h2 {
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .claim {
    font-size: 1.08rem;
  }

  .sub {
    font-size: 1rem;
  }

  .role-card,
  .feature,
  .usecase,
  .support-card,
  .testimonial {
    padding: 1rem;
  }

  .agents-band,
  .cta-band {
    gap: 1rem;
    padding: 1.25rem 1rem;
    text-align: left;
  }

  .agents-actions,
  .cta-actions {
    width: 100%;
  }

  .agents-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .cta-mark {
    width: 64px;
    height: 64px;
  }

  .screenshot-grid {
    gap: .9rem;
    margin-top: 1.35rem;
  }

  .screenshot img,
  .screenshot picture img {
    padding: .55rem;
  }

  .screenshot figcaption {
    padding: .8rem .95rem;
    font-size: .82rem;
  }

  .code-examples {
    margin-top: 1.35rem;
  }

  .code-label {
    padding: .65rem .9rem;
    font-size: .74rem;
  }

  .code-block pre {
    padding: .95rem .9rem;
    font-size: .78rem;
    line-height: 1.55;
  }

  .testimonial p,
  .support-card p,
  .feature p,
  .usecase p,
  .role-card p {
    font-size: .9rem;
    line-height: 1.6;
  }

  .testimonial-footer,
  .footer-copy,
  .footer-links a {
    font-size: .8rem;
  }

  .symbol-glow {
    min-height: 220px;
  }

  .symbol-glow::before {
    width: 200px;
    height: 200px;
  }

  .symbol-glow img {
    width: min(100%, 280px);
  }
}
