@import url("fonts.css");

/* ==================================================================
   NovaForge Studios, LLC — stylesheet
   ------------------------------------------------------------------
   Plain CSS, no build step. Everything visual starts in the :root
   block below: change a colour there and it updates site-wide.
   ================================================================== */

:root {
  /* --- Surfaces: near-black charcoal, warmed slightly toward blue --- */
  --ink-950: #05050a;
  --ink-900: #08080f;
  --ink-850: #0b0b14;
  --ink-800: #10101a;
  --ink-700: #161622;

  /* --- Text --- */
  --chalk: #f4f5fb;
  --mist: #a6abc0;
  --soft: #767c92;

  /* --- Accents, sampled from the NovaForge logo --- */
  --nova-400: #5fa0ff;
  --nova-500: #2a78ee;
  --nova-600: #1b57ce;
  --forge-400: #9c8bff;
  --forge-500: #7c5cf7;
  --plasma-400: #c9b5ff;

  /* --- Chrome / silver, from the "FORGE" lettering --- */
  --chrome-100: #e3e7ef;
  --chrome-300: #c7ccd7;

  /* --- Status colours --- */
  --status-live: #34d399;
  --status-soon: #fbbf24;
  --status-dev: #5fa0ff;

  /* --- Lines and glass --- */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);

  /* --- Type --- */
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  /* --- Shape --- */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Rhythm --- */
  --header-h: 76px;
  --gutter: 20px;

  color-scheme: dark;
}

/* ==================================================================
   Reset and base
   ================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--ink-950);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  /* Images carry width/height attributes so the browser reserves the right
     space while loading; height:auto keeps them from stretching. */
  height: auto;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(124, 92, 247, 0.45);
  color: #fff;
}

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--forge-500);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

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

/* ==================================================================
   Layout helpers
   ================================================================== */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 76px;
}

.section--tight {
  padding-block: 44px 76px;
}

.divider {
  height: 1px;
  max-width: 1180px;
  margin-inline: auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.grid {
  display: grid;
  gap: 22px;
}

.stack {
  display: flex;
  flex-direction: column;
}

/* ==================================================================
   Backgrounds — pure CSS glow fields, no images
   ================================================================== */

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 50% -10%,
    #101430 0%,
    #08080f 55%,
    #05050a 100%
  );
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    80% 60% at 50% 25%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(80% 60% at 50% 25%, #000 10%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.blob--a {
  top: -160px;
  left: -120px;
  width: 34rem;
  height: 34rem;
  background: rgba(42, 120, 238, 0.22);
  animation: drift 22s ease-in-out infinite;
}

.blob--b {
  top: -100px;
  right: -140px;
  width: 32rem;
  height: 32rem;
  background: rgba(124, 92, 247, 0.2);
  animation: drift 34s ease-in-out infinite reverse;
}

.blob--c {
  top: 22rem;
  left: 34%;
  width: 24rem;
  height: 24rem;
  background: rgba(169, 139, 255, 0.12);
  animation: pulse-soft 6s ease-in-out infinite;
}

/* Quieter backdrop used on interior page headers */
.backdrop--page {
  bottom: auto;
  height: 34rem;
}

.backdrop--page::before {
  background: radial-gradient(
    100% 70% at 50% -15%,
    #0f1229 0%,
    #08080f 60%,
    transparent 100%
  );
}

.backdrop--page .backdrop__grid {
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -6%, 0) scale(1.08);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==================================================================
   Header and navigation
   ================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 10, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
}

.logo__mark {
  width: 42px;
  height: 42px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo__mark {
  transform: scale(1.06);
}

.logo__wordmark {
  height: 27px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--chalk);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--nova-400), var(--forge-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link.is-active {
  color: var(--chalk);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: 10px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--chalk);
  transition: background-color 0.2s ease;
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Mobile menu --- */

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu__panel {
  position: relative;
  margin-top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 22px var(--gutter) 40px;
  background: rgba(8, 8, 15, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mist);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--chalk);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 22px;
}

/* ==================================================================
   Buttons
   ================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    background-position 0.4s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover svg.icon-arrow {
  transform: translateX(2px);
}

.btn--primary {
  color: #fff;
  background-image: linear-gradient(
    100deg,
    var(--nova-600),
    var(--nova-500) 52%,
    var(--forge-500)
  );
  background-size: 200% auto;
  box-shadow: 0 10px 36px -14px rgba(42, 120, 238, 0.9);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -14px rgba(124, 92, 247, 0.9);
}

.btn--secondary {
  color: var(--chalk);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.btn--sm {
  height: 38px;
  padding-inline: 17px;
  font-size: 0.88rem;
}

.btn--lg {
  height: 52px;
  padding-inline: 28px;
  font-size: 1rem;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nova-400);
  transition: color 0.2s ease;
}

.link-arrow:hover {
  color: var(--plasma-400);
}

.link-arrow:hover svg {
  transform: translateX(2px);
}

.link-arrow svg {
  transition: transform 0.3s ease;
}

/* ==================================================================
   Cards
   ================================================================== */

.card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
}

.card--hover {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 120, 238, 0.45);
  box-shadow:
    0 18px 50px -24px rgba(42, 120, 238, 0.6),
    0 0 0 1px rgba(124, 92, 247, 0.12);
}

.card--pad-lg {
  padding: 30px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-image: linear-gradient(
    140deg,
    rgba(42, 120, 238, 0.18),
    rgba(124, 92, 247, 0.13)
  );
  color: var(--nova-400);
  transition: color 0.3s ease;
}

.card--hover:hover .icon-tile {
  color: var(--plasma-400);
}

.card__title {
  margin-top: 18px;
  font-size: 1.05rem;
}

.card__body {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mist);
}

/* ==================================================================
   Type helpers
   ================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--nova-400), var(--forge-400));
}

.gradient-text {
  background-image: linear-gradient(
    100deg,
    var(--nova-500),
    var(--nova-400) 42%,
    var(--chrome-300)
  );
  background-size: 200% 200%;
  animation: sheen 8s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.7rem);
}

.section-head p {
  font-size: 1.02rem;
  color: var(--mist);
}

.lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--mist);
}

.prose p + p {
  margin-top: 16px;
}

/* ==================================================================
   Page header (interior pages)
   ================================================================== */

.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 52px;
}

.page-header h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.4rem);
}

.page-header .lede {
  max-width: 60ch;
}

.page-header__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.updated {
  font-size: 0.88rem;
  color: var(--soft);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 76px;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4rem);
  line-height: 1.05;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mist);
}

.hero__badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--nova-500), var(--forge-500));
  color: #fff;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
  color: var(--soft);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__facts svg {
  color: var(--mist);
}

.workbench {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(16, 16, 26, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.workbench::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(
    60% 60% at 60% 30%,
    rgba(124, 92, 247, 0.3),
    transparent 70%
  );
  filter: blur(30px);
  animation: pulse-soft 6s ease-in-out infinite;
}

.workbench__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 16px;
}

.workbench__head strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.workbench__head span {
  font-size: 0.78rem;
  color: var(--soft);
}

.workbench__list {
  display: grid;
  gap: 12px;
}

/* One product on the shelf reads better as a single wide card than as
   half a row (see initWorkbench in js/products-ui.js). */
.workbench__list--single .workbench__item img {
  width: 56px;
  height: 56px;
}

.workbench__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.workbench__item:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 120, 238, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.workbench__item img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.workbench__item strong {
  font-size: 0.92rem;
  font-weight: 500;
}

.workbench__item .status {
  margin-top: auto;
  align-self: flex-start;
}

.workbench__note {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--soft);
}

/* ==================================================================
   Status badges and platform chips
   ================================================================== */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status--available {
  color: var(--status-live);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
}

.status--coming-soon {
  color: var(--status-soon);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
}

.status--in-development {
  color: var(--status-dev);
  border-color: rgba(95, 160, 255, 0.3);
  background: rgba(95, 160, 255, 0.1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--mist);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

a.chip:hover,
.card--hover:hover .chip {
  border-color: rgba(124, 92, 247, 0.35);
}

/* ==================================================================
   Product cards
   ================================================================== */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.product-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}

.product-card__titles {
  min-width: 0;
  flex: 1;
}

.product-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.product-card__name h3 {
  font-size: 1.08rem;
}

.product-card__category {
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.product-card__desc {
  flex: 1;
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mist);
}

.product-card .chips {
  margin-top: 18px;
}

/* The card title's link stretches over the whole card, so anywhere on
   the card is clickable — while the real buttons below stay on top. */
.product-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.appstore-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==================================================================
   Filters
   ================================================================== */

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mist);
  transition: all 0.3s ease;
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--chalk);
}

.filter[aria-pressed="true"] {
  border-color: rgba(124, 92, 247, 0.5);
  background: rgba(124, 92, 247, 0.15);
  color: var(--chalk);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--mist);
}

/* ==================================================================
   Product detail page
   ================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.88rem;
  color: var(--soft);
}

.breadcrumb a:hover {
  color: var(--chalk);
}

.product-hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-hero__icon {
  position: relative;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

.product-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
}

.product-hero__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.shots li {
  flex: 0 0 auto;
  width: 68%;
  max-width: 300px;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--ink-800);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--soft);
}

.info-list {
  display: flex;
  flex-direction: column;
}

.info-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.info-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-list dt {
  color: var(--soft);
}

.info-list dd {
  text-align: right;
  font-weight: 500;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--mist);
  transition: color 0.2s ease;
}

.aside-links a:hover {
  color: var(--chalk);
}

/* ==================================================================
   Forms
   ================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.field .req {
  color: var(--forge-400);
}

.field .opt {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--soft);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 247, 0.6);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(124, 92, 247, 0.18);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767c92' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field select option {
  background: var(--ink-800);
  color: var(--chalk);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.65);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--soft);
}

.field .error {
  font-size: 0.78rem;
  color: #fca5a5;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form-foot p {
  font-size: 0.78rem;
  color: var(--soft);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--mist);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--forge-500);
}

.success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px;
}

.success__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--status-live);
}

/* Search input with a leading icon */
.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--soft);
  pointer-events: none;
}

.search-field input {
  padding-left: 45px;
}

/* ==================================================================
   Support: FAQ accordion + request types
   ================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  overflow: hidden;
  padding: 0;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq__q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq__q span.q {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.faq__q span.cat {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.faq__q svg {
  flex-shrink: 0;
  color: var(--soft);
  transition: transform 0.3s ease;
}

.faq__q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mist);
}

.faq__a[hidden] {
  display: none;
}

.request-types {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.request-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: all 0.3s ease;
}

.request-type:hover {
  border-color: var(--line-strong);
}

.request-type[aria-pressed="true"] {
  border-color: rgba(124, 92, 247, 0.5);
  background: rgba(124, 92, 247, 0.12);
}

.request-type__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mist);
}

.request-type[aria-pressed="true"] .request-type__icon {
  background: rgba(124, 92, 247, 0.2);
  color: var(--plasma-400);
}

.request-type strong {
  font-weight: 500;
}

.request-type small {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--soft);
}

/* ==================================================================
   Contact routes
   ================================================================== */

.route {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.route__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nova-400);
}

.route h2 {
  font-size: 0.95rem;
}

.route p {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--mist);
}

.route a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  word-break: break-all;
  color: var(--nova-400);
  transition: color 0.2s ease;
}

.route a:hover {
  color: var(--plasma-400);
}

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

.legal-layout {
  display: grid;
  gap: 40px;
}

.legal-toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}

.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.legal-toc a {
  font-size: 0.9rem;
  color: var(--mist);
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--chalk);
}

.legal-toc__other {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-toc__other a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--soft);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.legal-body section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-body h2 {
  font-size: 1.3rem;
}

.legal-body p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--mist);
}

.legal-body ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.legal-body li {
  display: flex;
  gap: 12px;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--mist);
}

.legal-body li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--forge-500);
}

.notice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--soft);
}

.notice a {
  font-weight: 500;
  color: var(--nova-400);
}

/* ==================================================================
   Call-to-action band
   ================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    120% 140% at 50% 0%,
    rgba(42, 120, 238, 0.2),
    rgba(124, 92, 247, 0.1) 45%,
    transparent 75%
  );
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
}

.cta p {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--mist);
}

.cta .btn-row {
  justify-content: center;
  margin-top: 34px;
}

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

.site-footer {
  position: relative;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 247, 0.4),
    transparent
  );
}

.footer__inner {
  display: grid;
  gap: 44px;
  padding-block: 60px;
}

.footer__lockup {
  width: 200px;
  height: auto;
}

.footer__blurb {
  max-width: 42ch;
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-all;
  color: var(--nova-400);
  transition: color 0.2s ease;
}

.footer__mail:hover {
  color: var(--plasma-400);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mist);
  transition: all 0.3s ease;
}

.footer__socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 247, 0.4);
  color: var(--chalk);
}

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

.footer__nav h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--mist);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--chalk);
}

.footer__base {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--soft);
}

.footer__base span:last-child {
  font-size: 0.78rem;
}

/* ==================================================================
   Scroll reveal — see js/main.js
   ================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==================================================================
   404
   ================================================================== */

.notfound {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding-block: 120px;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.notfound h1 {
  margin-top: 22px;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

.notfound p {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--mist);
}

.notfound .btn-row {
  justify-content: center;
  margin-top: 34px;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-top: 46px;
  font-size: 0.9rem;
}

.notfound__links a {
  color: var(--soft);
  transition: color 0.2s ease;
}

.notfound__links a:hover {
  color: var(--chalk);
}

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

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

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

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

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

  .workbench__list--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shots li {
    width: 40%;
  }

  .product-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 34px;
  }

  .product-hero__icon {
    width: 116px;
    height: 116px;
  }

  .footer__base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .filters {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

@media (min-width: 900px) {
  .section {
    padding-block: 96px;
  }

  .section--tight {
    padding-block: 20px 96px;
  }

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

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

  .hero {
    padding-top: calc(var(--header-h) + 84px);
    padding-bottom: 100px;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
  }

  .page-header {
    padding-top: calc(var(--header-h) + 76px);
    padding-bottom: 60px;
  }

  .split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
  }

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

  .split--form {
    grid-template-columns: 1fr 1.5fr;
  }

  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .shots li {
    width: 27%;
  }

  .footer__inner {
    grid-template-columns: 1.3fr 2.2fr;
  }
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* ==================================================================
   Respect reduced-motion preferences
   ================================================================== */

@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;
  }

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

/* ==================================================================
   Print
   ================================================================== */

@media print {
  .site-header,
  .site-footer,
  .backdrop,
  .cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
