:root {
  --bg: #0d1228;
  --bg-deep: #090d1d;
  --bg-mid: #101736;
  --panel: rgba(17, 24, 42, 0.74);
  --panel-strong: rgba(12, 18, 34, 0.88);
  --panel-border: rgba(240, 221, 142, 0.12);
  --text: #f5f3ea;
  --muted: rgba(245, 243, 234, 0.74);
  --moon: #f0dd8e;
  --moon-2: #edc970;
  --star: #f6dd88;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  --scrollbar-bg: #02040c;
  --scrollbar-thumb: #f0dd8e;
  --scrollbar-thumb-hover: #fae7a3;
  --topbar-h: 72px;
  --container: 1160px;
  --radius-card: 22px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 44, 92, 0.26), transparent 30%),
    linear-gradient(180deg, #0f1530 0%, #0b1023 52%, #090d1d 100%);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e7cf79, var(--scrollbar-thumb));
  border-radius: 999px;
  border: 2px solid var(--scrollbar-bg);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f2dd8e, var(--scrollbar-thumb-hover));
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: #000;
}

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

section[id] {
  scroll-margin-top: calc(var(--topbar-h) + 20px);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 40;
  background: rgba(7, 10, 20, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease,
    box-shadow 0.28s ease;
}

.topbar.is-solid {
  background: rgba(7, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-moon-svg {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0;
  transform: scale(0.7);
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(240, 221, 142, 0.2));
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.brand-moon-svg path {
  fill: var(--moon);
}

.brand-label {
  transition: color 0.22s ease;
}

.brand:hover .brand-label {
  color: rgba(245, 243, 234, 0.98);
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(240, 221, 142, 0.26) 0%,
    rgba(240, 221, 142, 0.08) 45%,
    rgba(240, 221, 142, 0) 74%
  );
  opacity: 0;
  transform: scale(0.82);
  filter: blur(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.topbar.is-solid .brand:hover .brand-icon::after,
.topbar.is-solid .brand:focus-visible .brand-icon::after {
  opacity: 0.55;
  transform: scale(1);
}

.topbar.is-solid .brand:hover .brand-label,
.topbar.is-solid .brand:focus-visible .brand-label {
  color: rgba(240, 221, 142, 0.96);
}

.topbar.is-solid .brand:hover .brand-moon-svg,
.topbar.is-solid .brand:focus-visible .brand-moon-svg {
  filter: drop-shadow(0 0 12px rgba(240, 221, 142, 0.38));
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  position: relative;
  font-size: 0.93rem;
  color: rgba(245, 243, 234, 0.84);
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: rgba(240, 221, 142, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(240, 221, 142, 0.08);
  transform: translateY(-1px);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.lang-toggle {
  min-width: 42px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 142, 0.24);
  background: rgba(240, 221, 142, 0.05);
  color: rgba(245, 243, 234, 0.86);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--moon);
  border-color: rgba(240, 221, 142, 0.48);
  background: rgba(240, 221, 142, 0.12);
  box-shadow: 0 0 0 3px rgba(240, 221, 142, 0.12);
}

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

.hero {
  position: relative;
  min-height: 120vh;
}

.hero-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
  z-index: 0;
}

.sky-gradient,
.noise,
.stars-field,
.stars-glow,
.shooting-stars,
.scroll-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky-gradient {
  background:
    radial-gradient(circle at 72% 26%, rgba(35, 46, 98, 0.22), transparent 24%),
    radial-gradient(circle at 28% 18%, rgba(52, 67, 132, 0.16), transparent 22%),
    linear-gradient(180deg, #101736 0%, #0b1023 58%, #090d1d 100%);
}

.noise {
  opacity: 0.05;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.05) 0.6px, transparent 0.8px);
  background-position: 0 0, 16px 14px;
  background-size: 24px 24px, 28px 28px;
  mix-blend-mode: soft-light;
}

.star-dot {
  position: absolute;
  border-radius: 999px;
  background: rgba(246, 221, 136, 0.82);
  transform-origin: center;
  will-change: transform, opacity;
}

.star-dot.is-soft {
  opacity: 0.42;
}

.star-dot.is-medium {
  opacity: 0.7;
}

.star-dot.is-bright {
  opacity: 0.95;
  box-shadow: 0 0 8px rgba(246, 221, 136, 0.22);
}

.star-glow {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(246, 221, 136, 0.78);
  box-shadow: 0 0 18px rgba(246, 221, 136, 0.28);
  opacity: 0.24;
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  left: 0;
  right: 0;
  height: 100vh;
  padding: calc(var(--topbar-h) + 8px) 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: end;
  gap: 18px;
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.hero-actions,
.hero-copy a,
.hero-copy button {
  pointer-events: auto;
}

.hero-copy {
  max-width: 760px;
  align-self: end;
  padding-bottom: 2.5vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moon);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lede {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.72;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--moon);
  color: #121212;
  box-shadow: 0 10px 28px rgba(240, 221, 142, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(240, 221, 142, 0.22);
}

.btn-ghost {
  border: 1px solid rgba(240, 221, 142, 0.2);
  background: rgba(240, 221, 142, 0.06);
  color: var(--text);
}

.hero-visual {
  position: relative;
  height: min(62vh, 620px);
  min-height: 320px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.moon-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
}

.moon-svg {
  width: min(34vw, 440px);
  overflow: visible;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.34));
  transform-origin: center center;
  will-change: transform;
  position: relative;
  z-index: 2;
}

.moon-assembly,
.moon-wrap {
  transform-origin: center center;
}

.moon-shape {
  fill: var(--moon);
}

.crater {
  fill: var(--moon-2);
}

.crater-dots circle {
  fill: #8c7d52;
  opacity: 0.82;
}

.hero-stars .star {
  fill: var(--star);
  transform-box: fill-box;
  transform-origin: center center;
}

.shooting-star {
  position: absolute;
  width: 130px;
  height: 2px;
  opacity: 0;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(246, 221, 136, 0) 0%,
    rgba(246, 221, 136, 0.25) 58%,
    rgba(246, 221, 136, 1) 100%
  );
  filter: drop-shadow(0 0 8px rgba(246, 221, 136, 0.28));
}

.shooting-star::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(246, 221, 136, 0.96);
  box-shadow: 0 0 12px rgba(246, 221, 136, 0.45);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 221, 136, 0.85);
  opacity: 0;
  box-shadow: 0 0 10px rgba(246, 221, 136, 0.35);
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 160px;
  background: linear-gradient(180deg, rgba(9, 13, 29, 0) 0%, rgba(9, 13, 29, 1) 90%);
  pointer-events: none;
}

.section {
  position: relative;
  z-index: 2;
  padding: 92px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 16, 35, 0.94), rgba(9, 13, 29, 1));
}

.section-problems {
  background:
    linear-gradient(180deg, rgba(8, 12, 28, 0.98), rgba(9, 13, 29, 1)),
    radial-gradient(circle at 12% 18%, rgba(240, 221, 142, 0.05), transparent 24%);
}

.section-tech {
  background:
    linear-gradient(180deg, rgba(8, 12, 28, 0.98), rgba(9, 13, 29, 1)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.section-contact {
  background:
    linear-gradient(180deg, rgba(9, 13, 29, 0.95), rgba(9, 13, 29, 1)),
    radial-gradient(circle at 84% 22%, rgba(240, 221, 142, 0.08), transparent 28%);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.container.narrow {
  max-width: 860px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.section p:not(.section-kicker) {
  max-width: 70ch;
  line-height: 1.72;
  color: var(--muted);
}

.problem-grid,
.cards,
.work-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

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

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

.work-item {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  height: 100%;
  align-content: start;
}

.work-item .work-card {
  height: 100%;
}

.problem-card,
.card,
.work-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.problem-card::after,
.problem-card::before,
.card::after,
.card::before,
.work-card::after,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.problem-card::before,
.card::before,
.work-card::before {
  background:
    linear-gradient(rgba(240, 221, 142, 0.56), rgba(240, 221, 142, 0.56)) left top / 0 1px no-repeat,
    linear-gradient(rgba(240, 221, 142, 0.56), rgba(240, 221, 142, 0.56)) right top / 1px 0 no-repeat;
  opacity: 0.66;
  transition: background-size 0.2s ease, opacity 0.2s ease;
}

.problem-card::after,
.card::after,
.work-card::after {
  background:
    linear-gradient(rgba(240, 221, 142, 0.56), rgba(240, 221, 142, 0.56)) right bottom / 0 1px no-repeat,
    linear-gradient(rgba(240, 221, 142, 0.56), rgba(240, 221, 142, 0.56)) left bottom / 1px 0 no-repeat;
  opacity: 0.66;
  transition: background-size 0.2s ease 0.12s, opacity 0.2s ease;
}

.problem-card:hover,
.card:hover,
.work-card:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 221, 142, 0.22);
}

.problem-card:hover::before,
.card:hover::before,
.work-card:hover::before {
  background-size: 100% 1px, 1px 100%;
  opacity: 1;
}

.problem-card:hover::after,
.card:hover::after,
.work-card:hover::after {
  background-size: 100% 1px, 1px 100%;
  opacity: 1;
}

.problem-card h3,
.card h3,
.work-card h3,
.contact-aside h3 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  line-height: 1.4;
}

.problem-card p,
.card p,
.work-card p,
.contact-aside p {
  margin: 0;
  color: var(--muted);
}

.work-meta {
  margin: 0;
  font-size: 0.83rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(240, 221, 142, 0.86) !important;
}

.positioning-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.positioning-grid p {
  margin-top: 0;
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  position: relative;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 142, 0.22);
  background: rgba(240, 221, 142, 0.06);
  font-size: 0.92rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.pill-list li:hover {
  border-color: rgba(240, 221, 142, 0.42);
  background: rgba(240, 221, 142, 0.12);
  box-shadow: inset 0 0 0 1px rgba(240, 221, 142, 0.24);
  transform: translateY(-1px);
}

.faq-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-list details:hover {
  border-color: rgba(240, 221, 142, 0.36);
}

.faq-list details[open] {
  background: rgba(17, 24, 42, 0.82);
}

.faq-list summary {
  display: block;
  width: 100%;
  padding: 14px 46px 14px 16px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  position: relative;
}

.faq-list summary::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s ease;
  font-size: 1rem;
  color: rgba(240, 221, 142, 0.92);
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

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

.faq-list details p {
  margin: 0;
  max-width: none;
  padding: 0 16px 16px;
  color: var(--muted);
}

.contact-layout {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.contact-form-wrap,
.contact-aside {
  border-radius: var(--radius-card);
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 20px;
}

.contact-form-wrap {
  position: relative;
}

.contact-form {
  display: grid;
  gap: 10px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-form.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.form-help {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 243, 234, 0.62);
}

.form-help-bottom {
  margin-top: 2px;
  margin-bottom: 0;
  text-align: left;
  font-size: 0.76rem;
  color: rgba(245, 243, 234, 0.56);
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group.is-hidden {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-form label {
  font-size: 0.9rem;
  color: rgba(245, 243, 234, 0.9);
}

.field-required {
  color: var(--moon);
}

.field-optional {
  margin-left: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 243, 234, 0.65);
}

.radio-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-fieldset legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(245, 243, 234, 0.9);
}

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

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 142, 0.6);
  background: rgba(255, 255, 255, 0.02);
  display: inline-grid;
  place-content: center;
}

.radio-card input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: var(--moon);
}

.radio-card input[type="radio"]:checked::before {
  transform: scale(1);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: rgba(240, 221, 142, 0.44);
  background: rgba(240, 221, 142, 0.12);
  box-shadow: 0 0 0 2px rgba(240, 221, 142, 0.14) inset;
}

.radio-label {
  font-size: 0.88rem;
  line-height: 1.4;
}

.contact-form input:not([type="radio"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 29, 0.82);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  box-shadow: none;
  color-scheme: dark;
}

.contact-form select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(240, 221, 142, 0.8) 50%),
    linear-gradient(135deg, rgba(240, 221, 142, 0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:not([type="radio"])::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 243, 234, 0.45);
}

.contact-form input:not([type="radio"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(240, 221, 142, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 221, 142, 0.18);
}

.contact-form input:not([type="radio"]).is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(255, 165, 137, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 143, 111, 0.16);
}

.radio-card:has(input[type="radio"][aria-invalid="true"]) {
  border-color: rgba(255, 165, 137, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 143, 111, 0.16) inset;
}

.contact-form option {
  color: var(--text);
  background: #0f1530;
}

.contact-form .btn {
  margin-top: 8px;
  width: fit-content;
}

.contact-submit {
  gap: 10px;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(18, 18, 18, 0.35);
  border-top-color: rgba(18, 18, 18, 0.98);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-submit.is-loading .btn-spinner {
  opacity: 1;
  transform: scale(1);
  animation: spin 0.7s linear infinite;
}

.contact-submit.is-loading .btn-label {
  opacity: 0.88;
}

.form-status {
  margin: 6px 0 0;
  min-height: 1.4em;
  font-size: 0.84rem;
  color: rgba(245, 243, 234, 0.72);
}

.form-status[data-state="error"] {
  color: #ffc4b0;
}

.contact-success {
  position: absolute;
  inset: 20px;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(240, 221, 142, 0.32);
  background:
    radial-gradient(circle at 18% 10%, rgba(240, 221, 142, 0.16), transparent 44%),
    rgba(13, 20, 38, 0.94);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(240, 221, 142, 0.12);
  padding: 24px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-success.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-success h3 {
  margin: 0;
  color: var(--moon);
  font-size: 1.15rem;
}

.contact-success p {
  margin: 0;
  color: rgba(245, 243, 234, 0.9);
}

.contact-aside {
  display: grid;
  gap: 10px;
  align-content: start;
}

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

.contact-aside a {
  color: rgba(245, 243, 234, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(240, 221, 142, 0.35);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, text-shadow 0.2s ease;
}

.contact-aside a:hover,
.contact-aside a:focus-visible {
  color: var(--moon);
  text-decoration-color: rgba(240, 221, 142, 0.86);
  text-shadow: 0 0 10px rgba(240, 221, 142, 0.2);
}

.footer {
  border-top: 1px solid var(--line);
  background: #070b19;
  padding: 20px 24px;
}

.footer-inner {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: rgba(245, 243, 234, 0.8);
  font-size: 0.9rem;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
}

.footer-nav a {
  color: rgba(245, 243, 234, 0.86);
}

.noscript {
  padding: 10px 12px;
  text-align: center;
  background: #11182f;
  color: rgba(245, 243, 234, 0.9);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .problem-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .hero {
    min-height: 118vh;
  }

  .hero-inner {
    height: 100vh;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: calc(var(--topbar-h) + 8px);
    padding-bottom: 14px;
    align-items: end;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
    display: grid;
    justify-items: center;
    align-self: end;
    padding-bottom: 8px;
  }

  .hero-visual {
    height: 32vh;
    min-height: 220px;
  }

  .moon-svg {
    width: min(58vw, 330px);
  }

  .cards,
  .problem-grid,
  .work-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 16px;
  }

  .topbar-right {
    gap: 0;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 116vh;
  }

  .hero-inner {
    padding-inline: 16px;
    padding-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .hero-visual {
    height: 28vh;
    min-height: 180px;
  }

  .moon-svg {
    width: min(54vw, 260px);
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .btn {
    min-width: 48%;
  }

  .section,
  .footer {
    padding-inline: 16px;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shooting-stars,
  .scroll-particles {
    display: none;
  }
}
