/* DrowPack premium visual layer — intentionally kept separate from page content. */
:root {
  --paper: #f4f3f8;
  --panel: #ffffff;
  --soft: #eeedf5;
  --text: #17131f;
  --muted: #686273;
  --line: rgba(31, 23, 43, 0.1);
  --line-strong: rgba(31, 23, 43, 0.18);
  --primary: #6757e8;
  --primary-dark: #4637b8;
  --violet: #735cff;
  --violet-dark: #39288e;
  --acid: #c9ff4a;
  --peach: #ffb87a;
  --radius: 26px;
  --shadow: 0 28px 80px rgba(42, 31, 63, 0.14);
  --shadow-soft: 0 18px 50px rgba(42, 31, 63, 0.1);
  --focus-ring: 0 0 0 4px rgba(103, 87, 232, 0.2);
  --premium-gradient: linear-gradient(135deg, #7663ff 0%, #5d4bdd 52%, #4332a4 100%);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --paper: #0b0910;
  --panel: #15121c;
  --soft: #1d1927;
  --text: #f7f4ff;
  --muted: rgba(239, 233, 249, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --primary: #9a88ff;
  --primary-dark: #7762ef;
  --violet: #a38fff;
  --violet-dark: #7860ed;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
  --focus-ring: 0 0 0 4px rgba(163, 143, 255, 0.22);
}

html {
  background: var(--paper);
  scrollbar-color: var(--primary) transparent;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgba(117, 92, 255, 0.1), transparent 34rem),
    radial-gradient(circle at 92% 24%, rgba(201, 255, 74, 0.08), transparent 30rem),
    var(--paper);
  letter-spacing: -0.008em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image: linear-gradient(rgba(104, 87, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 87, 232, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

::selection {
  background: rgba(117, 92, 255, 0.22);
  color: var(--text);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.site-header {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  box-shadow: 0 10px 36px rgba(29, 22, 42, 0.06);
  backdrop-filter: blur(18px) saturate(145%);
}

.header-inner {
  min-height: 74px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 10px 18px rgba(74, 50, 170, 0.22));
  transition: transform 180ms ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-2deg);
}

.brand-name {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand-name-pack {
  color: var(--primary);
}

.nav-links {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--text);
}

.language-links,
.theme-toggle {
  border-color: var(--line);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(37, 27, 56, 0.08);
}

.language-links a {
  color: var(--muted);
}

.language-links a[aria-current="true"] {
  background: var(--text);
  color: var(--panel);
}

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(76px, 9vw, 128px) 0 clamp(70px, 8vw, 110px);
  background:
    radial-gradient(circle at 16% 8%, rgba(166, 141, 255, 0.32), transparent 31rem),
    radial-gradient(circle at 88% 68%, rgba(201, 255, 74, 0.13), transparent 24rem),
    linear-gradient(140deg, #0b0912 0%, #181027 48%, #251256 100%);
}

.hero::after {
  position: absolute;
  inset: auto -8% -48% 42%;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.015);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: clamp(42px, 7vw, 96px);
}

.hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(3.35rem, 7.2vw, 7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.067em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  color: rgba(247, 244, 255, 0.76);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.76;
  text-wrap: pretty;
}

.hero .eyebrow {
  border-color: rgba(201, 255, 74, 0.34);
  background: rgba(201, 255, 74, 0.1);
  color: #d9ff7b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero .button {
  min-height: 52px;
  padding-inline: 22px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.hero .button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.hero .button.primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #121019;
  box-shadow: 0 18px 50px rgba(201, 255, 74, 0.2);
}

.hero-card {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(125%);
}

.package-list li {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  animation-duration: 11s;
}

.section {
  padding-block: clamp(76px, 9vw, 118px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading h2 {
  color: var(--text);
  font-size: clamp(2.35rem, 4.8vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  text-wrap: pretty;
}

.app-panel {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 28px);
}

.side-panel,
.result-panel,
.vector-block,
.vector-side,
.policy-box,
.info-card,
.steps li {
  border-color: var(--line);
  background: var(--panel);
}

.side-panel,
.result-panel,
.vector-side {
  border-radius: 24px;
}

.drop-zone {
  min-height: 260px;
  border: 1.5px dashed color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(103, 87, 232, 0.1), transparent 68%),
    var(--soft);
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 8%, var(--soft));
}

body .ai-edit-box {
  margin-top: 4px;
  border-color: var(--line);
  border-radius: 20px;
  background: var(--soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body .ai-edit-box textarea,
html[data-theme="light"] body .ai-edit-box textarea {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

body .ai-edit-box textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

body #aiVectorizeButton:disabled {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.upload-icon {
  box-shadow: 0 16px 36px rgba(103, 87, 232, 0.2);
}

.file-label,
.tool-button,
.button {
  border-radius: 14px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.sample-image-button {
  min-height: 40px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.sample-image-button::before {
  content: "✦";
  color: var(--acid);
  font-size: 0.95rem;
}

.sample-image-button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--acid);
  background: rgba(201, 255, 74, 0.13);
  box-shadow: 0 12px 24px rgba(9, 7, 16, 0.18);
}

.sample-image-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

html[data-theme="light"] #workspace .sample-image-button {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  background: color-mix(in srgb, var(--primary) 7%, #ffffff);
  color: var(--primary-dark);
}

html[data-theme="light"] #workspace .sample-image-button:not(:disabled):hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #ffffff);
  box-shadow: 0 12px 24px rgba(70, 55, 184, 0.13);
}

.tool-button {
  min-height: 46px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(36, 26, 53, 0.055);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.tool-button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 14px 30px rgba(50, 36, 76, 0.12);
}

.tool-button.primary,
.file-label {
  border-color: transparent;
  background: var(--premium-gradient);
  color: #fff;
  box-shadow: 0 14px 34px rgba(87, 68, 205, 0.22);
}

.tool-button:disabled {
  box-shadow: none;
  filter: saturate(0.45);
}

input[type="number"],
textarea,
select {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
}

input[type="range"] {
  accent-color: var(--primary);
}

.check-option,
.vector-mode-card > span,
.output-mode-grid label > span {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--soft);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.vector-mode-card:hover > span,
.output-mode-grid label:hover > span {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
}

.vector-mode-card input:checked + span,
.output-mode-grid input:checked + span {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}

.preview-wrap,
.vector-preview-shell,
.svg-preview {
  border-color: var(--line);
  border-radius: 20px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--soft) 72%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--soft) 72%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--soft) 72%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--soft) 72%, transparent) 75%),
    var(--panel);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.vector-hint {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 7%, var(--panel));
}

.meta-grid > div {
  border-color: var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.content-grid {
  gap: 18px;
}

.info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(42, 31, 63, 0.06);
  contain: layout paint style;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-card::after {
  position: absolute;
  inset: auto -45px -55px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 87, 232, 0.12), transparent 68%);
  content: "";
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  box-shadow: 0 22px 54px rgba(42, 31, 63, 0.11);
}

.info-card .card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.info-card .card-link:hover,
.info-card .card-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.tag,
.value-badge {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--panel));
  color: var(--primary-dark);
}

html[data-theme="dark"] .tag,
html[data-theme="dark"] .value-badge {
  color: #d7ceff;
}

.steps {
  counter-reset: premium-step;
  gap: 14px;
}

.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(42, 31, 63, 0.055);
}

.faq-item,
.policy-box {
  border-color: var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(42, 31, 63, 0.055);
}

details.faq-item summary {
  transition: color 150ms ease, background-color 150ms ease;
}

details.faq-item summary:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

.site-footer {
  border-color: var(--line);
  background: #0d0a12;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
  text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: #d9ff1a;
}

@media (max-width: 980px) {
  .nav-links {
    border: 0;
    background: transparent;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .hero-card {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body::before {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    padding-block: 58px 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-card,
  .app-panel {
    border-radius: 24px;
  }

  .app-panel {
    padding: 12px;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .site-header,
  .language-links,
  .theme-toggle {
    background: var(--panel);
  }

  .tag,
  .value-badge,
  .vector-hint {
    background: var(--soft);
  }
}

/* Reveal the compact navigation after the landing hero. */
body > .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-100% - 12px));
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 220ms;
}

body > .site-header.is-hero-header-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body > .site-header .header-inner {
    min-height: 64px;
    padding-inline: 12px;
    gap: 8px;
  }

  body > .site-header .brand-wordmark,
  body > .site-header [data-theme-label] {
    display: none;
  }

  body > .site-header .brand-mark {
    width: 40px;
    height: 40px;
  }

  body > .site-header .language-links {
    margin-left: auto;
  }

  body > .site-header .language-links a {
    padding: 6px 7px;
    font-size: 0.72rem;
  }

  body > .site-header .theme-toggle {
    min-width: 56px;
    padding: 7px 9px;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .site-header {
    transition: none;
  }
}

/* Code-built hero: all visible copy, controls, logo and artwork are DOM/SVG. */
.hero.reference-hero,
html[data-theme="light"] .hero.reference-hero,
html[data-theme="dark"] .hero.reference-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 0;
  place-items: center;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 48%, rgba(88, 32, 255, 0.25), transparent 30rem),
    radial-gradient(circle at 14% 76%, rgba(213, 255, 25, 0.05), transparent 19rem),
    linear-gradient(145deg, #010207 0%, #04040c 56%, #08051a 100%);
  color: #fff;
  isolation: isolate;
}

.hero.reference-hero::before,
html[data-theme="light"] .hero.reference-hero::before,
html[data-theme="dark"] .hero.reference-hero::before {
  position: absolute;
  inset: 0;
  display: block;
  background-image:
    linear-gradient(rgba(112, 68, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 68, 227, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  opacity: 0.42;
  mask-image: radial-gradient(circle at 83% 52%, black, transparent 62%);
  pointer-events: none;
}

.hero.reference-hero::after,
html[data-theme="light"] .hero.reference-hero::after,
html[data-theme="dark"] .hero.reference-hero::after {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: auto;
  height: 1px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(159, 112, 255, 0.42), transparent);
  box-shadow: none;
  content: "";
  opacity: 1;
  pointer-events: none;
}

.built-hero-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: min(100svh, 760px);
  padding: clamp(30px, 4.4vw, 66px) clamp(24px, 5.2vw, 76px);
  display: flex;
  align-items: center;
}

.built-hero-content {
  position: relative;
  z-index: 3;
  width: min(66%, 820px);
}

.built-hero-brand {
  display: flex;
  width: fit-content;
  margin-bottom: clamp(38px, 7vh, 66px);
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  color: #fff;
  text-decoration: none;
}

.built-hero-mark {
  width: clamp(104px, 10.8vw, 136px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 16px 28px rgba(50, 40, 255, 0.28));
  transition: transform 180ms ease, filter 180ms ease;
}

.built-hero-brand:hover .built-hero-mark,
.built-hero-brand:focus-visible .built-hero-mark {
  transform: translateY(-3px) rotate(-2deg);
  filter: drop-shadow(0 20px 34px rgba(85, 52, 255, 0.4));
}

.built-hero-brand-copy {
  display: grid;
  gap: 7px;
}

.built-hero-brand-copy strong {
  display: flex;
  color: #f9f9fc;
  font-size: clamp(3.15rem, 5vw, 4.15rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.built-hero-brand-copy strong span:last-child {
  color: #a26aff;
}

.built-hero-brand-copy small {
  color: #d9ff1a;
  font-size: clamp(0.95rem, 1.7vw, 1.28rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.built-hero-title,
html[data-theme="light"] .hero .built-hero-title,
html[data-theme="dark"] .hero .built-hero-title {
  max-width: none;
  margin: 0;
  color: #fafafd;
  font-size: clamp(3.95rem, 6.25vw, 5.2rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.062em;
  text-wrap: nowrap;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.built-hero-title > span {
  display: block;
}

.built-hero-title b {
  color: #d9ff1a;
  font-weight: inherit;
}

.built-hero-title em {
  color: #8d50ff;
  font-style: normal;
}

.built-hero-description,
html[data-theme="light"] .hero .built-hero-description,
html[data-theme="dark"] .hero .built-hero-description {
  position: relative;
  max-width: 640px;
  margin: clamp(24px, 3.3vh, 32px) 0 0;
  padding-left: 34px;
  color: rgba(241, 241, 247, 0.84);
  font-size: clamp(1.3rem, 2.25vw, 1.86rem);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -0.027em;
}

.built-hero-description::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, #d9ff1a 18%, #d9ff1a 82%, transparent);
  content: "";
  box-shadow: 0 0 16px rgba(217, 255, 26, 0.28);
}

.built-hero-description::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9ff1a;
  box-shadow: 0 0 12px rgba(217, 255, 26, 0.8);
  content: "";
  transform: translateY(-50%);
}

.built-hero-pills {
  position: relative;
  z-index: 5;
  display: flex;
  width: max-content;
  margin-top: clamp(26px, 4.2vh, 38px);
  gap: clamp(12px, 1.55vw, 20px);
}

.built-hero-pill {
  display: inline-flex;
  min-height: 48px;
  padding: 10px clamp(16px, 1.7vw, 22px);
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1.5px solid #d9ff1a;
  border-radius: 999px;
  background: rgba(3, 4, 11, 0.58);
  color: #f4f3f8;
  font-size: clamp(0.91rem, 1.35vw, 1.08rem);
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(217, 255, 26, 0.03), 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.built-hero-pill svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: #d9ff1a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.built-hero-pill:hover,
.built-hero-pill:focus-visible {
  background: #d9ff1a;
  color: #08090f;
  box-shadow: 0 14px 34px rgba(217, 255, 26, 0.2);
  transform: translateY(-3px);
}

.built-hero-pill:hover svg,
.built-hero-pill:focus-visible svg {
  stroke: #08090f;
}

.built-hero-visual {
  position: absolute;
  inset: 50% -2% auto auto;
  z-index: 1;
  width: min(57%, 720px);
  transform: translateY(-50%);
  pointer-events: none;
}

.built-hero-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 48px rgba(48, 15, 155, 0.28));
  contain: layout paint style;
}

.built-art-layer {
  transform-box: fill-box;
  transform-origin: center;
}

.built-art-layer--front {
  animation: built-hero-float 7s ease-in-out infinite;
}

.built-art-layer--middle {
  animation: built-hero-float 8.5s ease-in-out -2.2s infinite reverse;
}

.built-art-layer--back {
  animation: built-hero-float 9.5s ease-in-out -4s infinite;
}

.built-art-nodes circle {
  animation: built-hero-node 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.built-art-nodes circle:nth-child(2n) {
  animation-delay: -1.4s;
}

@keyframes built-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes built-hero-node {
  0%, 100% { opacity: 0.72; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .built-hero-shell {
    padding-inline: 34px;
  }

  .built-hero-content {
    width: 68%;
  }

  .built-hero-brand {
    margin-bottom: 40px;
  }

  .built-hero-title,
  html[data-theme="light"] .hero .built-hero-title,
  html[data-theme="dark"] .hero .built-hero-title {
    font-size: clamp(3.5rem, 6.5vw, 4.4rem);
  }

  .built-hero-visual {
    right: -8%;
    width: 62%;
  }

  .built-hero-pill {
    padding-inline: 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .built-hero-shell {
    min-height: 100svh;
    padding: clamp(24px, 7vw, 48px) 20px 38px;
    align-items: center;
  }

  .built-hero-content {
    width: 100%;
  }

  .built-hero-brand {
    margin-bottom: clamp(36px, 8vh, 60px);
    gap: 10px;
  }

  .built-hero-mark {
    width: clamp(70px, 20vw, 94px);
  }

  .built-hero-brand-copy {
    gap: 4px;
  }

  .built-hero-brand-copy strong {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
  }

  .built-hero-brand-copy small {
    font-size: clamp(0.66rem, 3.15vw, 0.9rem);
  }

  .built-hero-title,
  html[data-theme="light"] .hero .built-hero-title,
  html[data-theme="dark"] .hero .built-hero-title {
    font-size: clamp(2.75rem, 13.5vw, 4.05rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-wrap: balance;
  }

  .built-hero-title > span:first-child {
    max-width: 7.5em;
  }

  .built-hero-description,
  html[data-theme="light"] .hero .built-hero-description,
  html[data-theme="dark"] .hero .built-hero-description {
    max-width: 32rem;
    margin-top: 26px;
    padding-left: 18px;
    font-size: clamp(1rem, 4.7vw, 1.22rem);
    line-height: 1.48;
  }

  .built-hero-pills {
    display: grid;
    width: min(100%, 340px);
    margin-top: 30px;
    gap: 10px;
  }

  .built-hero-pill {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 17px;
    font-size: 0.97rem;
  }

  .built-hero-visual {
    inset: 54px -305px auto auto;
    width: 620px;
    opacity: 0.36;
    transform: none;
    mask-image: linear-gradient(to left, #000 38%, transparent 96%);
  }
}

@media (max-width: 420px) {
  .built-hero-shell {
    align-items: center;
  }

  .built-hero-title,
  html[data-theme="light"] .hero .built-hero-title,
  html[data-theme="dark"] .hero .built-hero-title {
    font-size: clamp(2.65rem, 13vw, 3.25rem);
  }

  .built-hero-visual {
    right: -330px;
    opacity: 0.31;
  }
}

@media (min-width: 901px) and (max-height: 680px) {
  .built-hero-shell {
    padding-block: 24px;
  }

  .built-hero-brand {
    margin-bottom: 26px;
  }

  .built-hero-mark {
    width: 104px;
  }

  .built-hero-title,
  html[data-theme="light"] .hero .built-hero-title,
  html[data-theme="dark"] .hero .built-hero-title {
    font-size: 4.35rem;
  }

  .built-hero-description,
  html[data-theme="light"] .hero .built-hero-description,
  html[data-theme="dark"] .hero .built-hero-description {
    margin-top: 20px;
    font-size: 1.45rem;
  }

  .built-hero-pills {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .built-art-layer,
  .built-art-nodes circle {
    animation: none;
  }
}

/* The opening hero follows the saved site theme instead of staying permanently dark. */
html[data-theme="light"] .hero.reference-hero {
  background:
    radial-gradient(circle at 82% 48%, rgba(115, 67, 230, 0.2), transparent 31rem),
    radial-gradient(circle at 14% 76%, rgba(184, 218, 0, 0.12), transparent 20rem),
    linear-gradient(145deg, #fffefb 0%, #f7f3ff 56%, #edf3ff 100%);
  color: #17131f;
}

html[data-theme="light"] .hero.reference-hero::before {
  background-image:
    linear-gradient(rgba(104, 62, 196, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 62, 196, 0.1) 1px, transparent 1px);
  opacity: 0.54;
}

html[data-theme="light"] .hero.reference-hero::after {
  background: linear-gradient(90deg, transparent, rgba(112, 65, 218, 0.34), transparent);
}

html[data-theme="light"] .built-hero-brand {
  color: #17131f;
}

html[data-theme="light"] .built-hero-mark {
  filter: drop-shadow(0 18px 28px rgba(78, 48, 168, 0.18));
}

html[data-theme="light"] .built-hero-brand:hover .built-hero-mark,
html[data-theme="light"] .built-hero-brand:focus-visible .built-hero-mark {
  filter: drop-shadow(0 22px 34px rgba(78, 48, 168, 0.26));
}

html[data-theme="light"] .built-hero-brand-copy strong,
html[data-theme="light"] .hero .built-hero-title {
  color: #17131f;
  text-shadow: 0 18px 38px rgba(63, 45, 98, 0.1);
}

html[data-theme="light"] .built-hero-brand-copy strong span:last-child,
html[data-theme="light"] .hero .built-hero-title em {
  color: #6f35dc;
}

html[data-theme="light"] .built-hero-brand-copy small,
html[data-theme="light"] .hero .built-hero-title b {
  color: #627500;
}

html[data-theme="light"] .hero .built-hero-description {
  color: rgba(34, 28, 46, 0.76);
}

html[data-theme="light"] .built-hero-description::before {
  background: linear-gradient(transparent, #778d00 18%, #778d00 82%, transparent);
  box-shadow: 0 0 16px rgba(119, 141, 0, 0.2);
}

html[data-theme="light"] .built-hero-description::after {
  background: #778d00;
  box-shadow: 0 0 12px rgba(119, 141, 0, 0.46);
}

html[data-theme="light"] .built-hero-pill {
  border-color: #778d00;
  background: rgba(255, 255, 255, 0.74);
  color: #211a2e;
  box-shadow: inset 0 0 0 1px rgba(112, 65, 218, 0.04), 0 14px 34px rgba(67, 48, 104, 0.1);
}

html[data-theme="light"] .built-hero-pill svg {
  stroke: #6f8300;
}

html[data-theme="light"] .built-hero-pill:hover,
html[data-theme="light"] .built-hero-pill:focus-visible {
  background: #d9ff1a;
  color: #17131f;
  box-shadow: 0 16px 36px rgba(119, 141, 0, 0.2);
}

html[data-theme="light"] .built-hero-pill:hover svg,
html[data-theme="light"] .built-hero-pill:focus-visible svg {
  stroke: #17131f;
}

html[data-theme="light"] .built-hero-art {
  filter: drop-shadow(0 34px 52px rgba(69, 38, 148, 0.2));
}

.hero.reference-hero,
.hero.reference-hero::before,
.hero.reference-hero::after,
.built-hero-brand,
.built-hero-brand-copy strong,
.built-hero-brand-copy small,
.built-hero-title,
.built-hero-description,
.built-hero-pill,
.built-hero-pill svg,
.built-hero-art {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}
