/* Node 23 Labs website. Brand: signal orange on charcoal greys. */
:root {
  --ink: #16171a;
  --charcoal: #1f2024;
  --slate: #27272a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --orange: #f97316;
  --orange-2: #fb923c;
  --ember: #c2410c;
  --peach: #fed7aa;
  --paper: #ffffff;
  --cloud: #f4f4f5;
  --ink-text: #1f2024;
  --ink-muted: #52525b;
  --radius: 18px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--orange);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 23, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #fdba74 45%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--orange);
  color: #1a0d03;
}

.btn-primary:hover {
  background: var(--orange-2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--orange);
}

.light .btn-ghost,
.tint .btn-ghost {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--ink-text);
}

/* Dark cards inside light sections keep light-on-dark buttons. */
.light .product .btn-ghost,
.tint .plan.featured .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- sections ---------- */
section {
  padding: 104px 0;
  position: relative;
}

.light {
  background: var(--paper);
  color: var(--ink-text);
}

.tint {
  background: var(--cloud);
  color: var(--ink-text);
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-top: 18px;
}

.light .lead,
.tint .lead {
  color: var(--ink-muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 112px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -220px;
  top: -320px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 .accent {
  color: var(--orange);
}

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

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* screenshot frame */
.frame {
  border-radius: 16px;
  background: var(--slate);
  padding: 7px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.frame img {
  border-radius: 10px;
}

.light .frame,
.tint .frame {
  box-shadow: 0 24px 60px rgba(31, 32, 36, 0.22);
}

.visual {
  position: relative;
}

.float-card {
  position: absolute;
  left: -36px;
  bottom: -34px;
  width: min(320px, 70%);
  background: rgba(31, 32, 36, 0.96);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}

.float-card .who {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.float-card p + .who {
  margin-top: 10px;
}

.float-card .caller {
  color: #fdba74;
}

/* ---------- cards & grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.light .card,
.tint .card {
  background: var(--cloud);
  border-color: transparent;
}

.tint .card {
  background: var(--paper);
}

.card h3 {
  margin: 18px 0 10px;
}

.card p {
  color: var(--muted);
}

.light .card p,
.tint .card p {
  color: var(--ink-muted);
}

.icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
}

.icon.soft {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
}

.light .icon.soft,
.tint .icon.soft {
  background: var(--peach);
  color: var(--ember);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* product feature (home) */
.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  background: var(--charcoal);
  color: var(--text);
  border-radius: 28px;
  padding: 56px;
  overflow: hidden;
  position: relative;
}

.product::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 65%);
}

.product > * {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--orange);
}

.coming {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--ink-muted);
}

/* principles */
.principle {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.principle h3 {
  margin: 2px 0 6px;
  font-size: 1.12rem;
}

.principle p {
  color: var(--muted);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
}

.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -12px;
  border-top: 2px dashed rgba(249, 115, 22, 0.4);
}

.step h3 {
  margin: 20px 0 8px;
}

.step p {
  color: var(--ink-muted);
}

/* feature rows (Evie page) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.feature + .feature {
  margin-top: 112px;
}

.feature.reverse .feature-text {
  order: 2;
}

.feature.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.feature-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.inset {
  position: absolute;
  right: -22px;
  bottom: -40px;
  width: 34%;
  border-radius: 12px;
  padding: 5px;
  background: var(--slate);
  border: 1px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

.mode-pills {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mode-pill {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cloud);
}

.mode-pill strong {
  display: block;
}

.mode-pill span {
  color: var(--ink-muted);
  font-size: 15px;
}

/* sectors */
.sector {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sector h3 {
  font-size: 1.08rem;
  margin: 4px 0 6px;
}

/* plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.plan.featured {
  background: var(--charcoal);
  color: var(--text);
  box-shadow: 0 30px 70px rgba(31, 32, 36, 0.28);
  transform: translateY(-10px);
}

.plan .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  margin-bottom: 12px;
}

.plan h3 {
  font-size: 1.6rem;
}

.plan .for {
  color: var(--ink-muted);
  font-size: 15px;
  margin-top: 4px;
}

.plan.featured .for {
  color: var(--muted);
}

.plan .price {
  color: var(--orange);
  font-weight: 700;
  margin-top: 14px;
}

.allowance {
  margin: 20px 0 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cloud);
}

.plan.featured .allowance {
  background: var(--slate);
}

.allowance b {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.allowance span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}

.plan.featured .allowance span {
  color: var(--muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--orange);
}

.plan .btn {
  margin-top: auto;
  justify-content: center;
}

.footnote {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 760px;
}

/* faq */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 700px;
}

/* cta band */
.cta {
  text-align: center;
  padding: 96px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(249, 115, 22, 0.35), transparent 60%),
    var(--charcoal);
}

.cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.cta .lead {
  margin-inline: auto;
}

.cta .hero-actions {
  justify-content: center;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* evie wordmark */
.evie-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.evie-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.evie-mark b {
  font-family: var(--display);
  font-size: 1.6rem;
}

.evie-mark b i {
  color: var(--orange);
  font-style: normal;
}

.evie-mark small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .product,
  .feature {
    grid-template-columns: 1fr;
  }
  .feature.reverse .feature-text {
    order: 0;
  }
  .grid-3,
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .step::after {
    display: none;
  }
  .plan.featured {
    transform: none;
  }
  .product {
    padding: 36px;
  }
  .float-card {
    left: 12px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 76px 0;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links,
  .nav .btn {
    display: none;
  }
  .nav.open {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0 20px;
  }
  .nav.open .nav-links {
    display: grid;
    width: 100%;
    gap: 14px;
    margin: 8px 0 0;
  }
  .nav.open .btn {
    display: inline-flex;
  }
  .grid-3,
  .grid-2,
  .plans,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .float-card {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 16px;
  }
  .inset {
    display: none;
  }
  .coming {
    flex-direction: column;
    align-items: flex-start;
  }
}
