:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-muted: #f5f7f8;
  --text: #111827;
  --muted: #5b6472;
  --line: #d9e0e8;
  --line-strong: #b7c1cd;
  --primary: #1455d9;
  --primary-dark: #0f3f9f;
  --primary-soft: #eaf1ff;
  --teal: #0f9f8f;
  --amber: #d99018;
  --success: #168a4a;
  --warning: #9b5c00;
  --danger: #b42318;
  --card: #ffffff;
  --ink: #0b1f3a;
  --ink-2: #14365f;
  --accent-grad: linear-gradient(120deg, var(--primary), var(--teal) 78%);
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  --shadow-hover: 0 22px 48px rgba(11, 31, 58, 0.14);
  --radius: 8px;
  --shell: 1160px;
  --mobile-cta-height: 64px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  padding-bottom: var(--mobile-cta-height);
}

body.dialog-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section[id],
#top {
  scroll-margin-top: 84px;
}

.section-muted {
  background: var(--bg-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.faq-heading h2,
.final-cta h2,
.ownership-band h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
}

.section-heading p,
.faq-heading p,
.final-cta p,
.ownership-band p {
  margin: 12px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Fixed so the hero plasma extends to the very top behind the header.
   Transparent over the hero, switches to white glass once scrolled past it. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 0;
  background: transparent;
  padding: 10px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  padding: 0 8px 0 12px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid .header-inner {
  border-color: rgba(217, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

/* Over the dark hero: light header text; when solid: dark. */
.site-header .brand {
  color: #fff;
}

.site-header.is-solid .brand {
  color: var(--text);
}

.site-header .desktop-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible {
  color: #fff;
}

.site-header.is-solid .desktop-nav a {
  color: var(--muted);
}

.site-header.is-solid .desktop-nav a:hover,
.site-header.is-solid .desktop-nav a:focus-visible {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), var(--primary));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(20, 85, 217, 0.28);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20, 85, 217, 0.3);
  }
}

.button-small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #0f6fc6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 85, 217, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--line-strong);
  background: #f9fafb;
}

.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: grid;
  align-items: center;
  padding: 96px 0 100px;
  overflow: hidden;
  isolation: isolate;
  /* Dark base + static plasma-like fallback shown if WebGL is unavailable.
     The animated shader canvas renders on top of this. */
  background:
    radial-gradient(80% 90% at 18% 15%, rgba(20, 85, 217, 0.55), transparent 55%),
    radial-gradient(70% 80% at 85% 25%, rgba(15, 159, 143, 0.45), transparent 55%),
    radial-gradient(90% 90% at 70% 95%, rgba(116, 92, 230, 0.4), transparent 55%),
    linear-gradient(155deg, #081225, #0b1f3a 60%, #081225);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  pointer-events: none;
  /* Readability scrim: darkens behind the headline while letting the plasma
     stay vivid toward the edges. */
  background: radial-gradient(ellipse 82% 72% at 50% 48%, rgba(6, 14, 28, 0.74) 0%, rgba(6, 14, 28, 0.42) 44%, rgba(6, 14, 28, 0.12) 66%, transparent 82%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  pointer-events: none;
  /* Blend the dark hero into the light body below. */
  background: linear-gradient(180deg, transparent, #ffffff 92%);
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.hero-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(44px, 7.6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 740px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(17px, 3.8vw, 20px);
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  justify-content: center;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
}

.feature-badges li,
.mini-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #2f3a49;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

/* Dark hero text treatment */
.hero .eyebrow {
  color: #8fb6ff;
}

.hero-lead {
  color: rgba(233, 240, 252, 0.82);
}

.hero .feature-badges li {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* Faint tech grid layered over the animated shader. */
.hero-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 18%, transparent 72%);
}

.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.pain-grid,
.package-grid,
.scope-grid,
.fit-grid {
  display: grid;
  gap: 14px;
}

.info-card,
.package-card,
.scope-card,
.fit-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .info-card:hover,
  .package-card:hover,
  .scope-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-strong);
  }
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .package-card:hover::before {
    opacity: 1;
  }
}

.info-card h3,
.package-card h3,
.scope-card h3,
.fit-card h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.info-card p,
.package-card p,
.scope-card p,
.fit-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-kicker,
.package-label {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.package-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.package-card ul,
.fit-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.package-card li,
.fit-card li {
  position: relative;
  padding-left: 18px;
  color: #344054;
}

.package-card li::before,
.fit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.package-button {
  width: 100%;
  margin-top: auto;
}

.scope-card {
  min-height: 188px;
}

.scope-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.scope-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scope-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.scope-icon .icon-cut {
  stroke: #fff;
  stroke-width: 1.9;
}

.scope-card:nth-child(3n + 2) .scope-icon {
  background: rgba(15, 159, 143, 0.13);
  color: var(--teal);
}

.scope-card:nth-child(3n) .scope-icon {
  background: rgba(217, 144, 24, 0.15);
  color: #b4750f;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.process-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.process-list h3 {
  margin: 0;
  font-size: 20px;
}

.process-list p {
  margin: 7px 0 8px;
  color: var(--muted);
}

.process-list strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.ownership-band {
  display: grid;
  gap: 22px;
  align-items: center;
}

.ownership-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ownership-list li {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.fit-positive {
  border-color: rgba(22, 138, 74, 0.35);
  background: #f4fbf7;
}

.faq-layout {
  display: grid;
  gap: 24px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}

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

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.final-cta {
  position: relative;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(20, 85, 217, 0.45), transparent 55%),
    radial-gradient(120% 140% at 90% 100%, rgba(15, 159, 143, 0.35), transparent 50%),
    linear-gradient(135deg, var(--ink), #0a1730);
  color: #fff;
  overflow: hidden;
}

.final-cta .eyebrow,
.final-cta p {
  color: #dbe7ff;
}

.final-cta-inner {
  max-width: 820px;
}

.final-cta .button-primary {
  margin-top: 22px;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.site-footer {
  background: #f0f3f6;
  color: #303a48;
  padding: 32px 0 calc(32px + var(--mobile-cta-height));
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-brand {
  min-height: auto;
}

.site-footer p,
.site-footer address {
  margin: 8px 0 0;
  color: var(--muted);
  font-style: normal;
}

.site-footer address {
  display: grid;
  gap: 4px;
}

.footer-link {
  width: fit-content;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  padding: 0;
  font-weight: 800;
}

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 40;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 34px rgba(20, 85, 217, 0.28);
  font-weight: 900;
}

.mobile-cta.is-hidden,
body.dialog-open .mobile-cta {
  display: none;
}

.dialog {
  width: min(100% - 24px, 840px);
  max-height: min(90vh, 860px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(17, 24, 39, 0.58);
}

.dialog-card {
  max-height: min(90vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #fff;
  color: var(--text);
}

.inquiry-form {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.dialog-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.form-grid,
.policy-content,
.message-content {
  overflow: auto;
  padding: 18px;
}

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

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px 0;
  margin: 0;
  list-style: none;
}

.wizard-progress li {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.wizard-progress li.is-active {
  border-color: rgba(20, 85, 217, 0.34);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.wizard-progress li.is-complete {
  border-color: rgba(22, 138, 74, 0.28);
  background: #f4fbf7;
  color: #10633a;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.wizard-step-heading span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.wizard-step-heading h3 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.wizard-step-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.field,
.field-group {
  min-width: 0;
}

.field-group {
  border: 0;
  margin: 0;
  padding: 0;
}

label,
legend {
  display: block;
  margin-bottom: 7px;
  color: #283242;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  min-height: 46px;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(20, 85, 217, 0.28);
  outline-offset: 2px;
}

.field-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0;
  background: #fff;
}

.choice-grid input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.consent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.consent label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.consent button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  padding: 4px 0 0;
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: 0;
  padding: 0 18px 10px;
  color: var(--muted);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
}

.wizard-actions {
  justify-content: stretch;
}

.policy-card,
.message-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.policy-content p,
.message-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 560px) {
  .hero-actions,
  .dialog-actions {
    grid-template-columns: max-content max-content;
  }

  .wizard-actions {
    grid-template-columns: max-content max-content max-content;
    justify-content: end;
  }

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

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

  .full-span {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .section {
    padding: 96px 0;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-layout {
    max-width: var(--shell);
  }

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

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

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

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

  .ownership-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

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

  .faq-layout {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 940px) {
  .desktop-nav {
    display: flex;
  }

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

@media (max-width: 559px) {
  .button {
    width: 100%;
  }

  .hero {
    min-height: calc(100svh - 74px);
    padding-top: 58px;
    padding-bottom: 84px;
  }

  .hero::before {
    background: radial-gradient(ellipse 110% 64% at 50% 44%, rgba(6, 14, 28, 0.82) 0%, rgba(6, 14, 28, 0.5) 52%, rgba(6, 14, 28, 0.16) 78%, transparent 100%);
  }

  .hero-motion {
    inset: 0;
    height: auto;
    border-radius: 0;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .hero-copy h1 .hero-br-m {
    display: inline;
  }

  .dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .dialog-card {
    height: 100dvh;
    max-height: 100dvh;
  }

  .dialog-actions {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .wizard-progress {
    gap: 6px;
    padding-inline: 12px;
  }

  .wizard-progress li {
    min-height: 32px;
    font-size: 11px;
  }
}

/* ---- Refinements: accents, new blocks, motion ---- */

.hero-br-m {
  display: none;
}

.hero-h1-lead {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(19px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(226, 236, 255, 0.74);
}

.hero-accent {
  background: linear-gradient(100deg, #5b9bff 0%, #38c7e6 50%, #2fd6b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}

.section-closing {
  margin: 26px 0 0;
  max-width: 860px;
  color: var(--text);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 600;
  line-height: 1.6;
}

.section-closing strong {
  color: var(--primary-dark);
}

.selected-package {
  margin: 12px 18px 0;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid rgba(20, 85, 217, 0.22);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.warranty-block {
  margin-top: 22px;
}

.warranty-grid {
  display: grid;
  gap: 12px;
}

.warranty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.warranty-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.warranty-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e1e6ec;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-tagline {
  color: #93a0b0;
  letter-spacing: 0.02em;
}

/* Scope section: product-flow diagram (clients → API → server → deploy) */
.scope-flow {
  display: none;
}

.scope-flow svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(11, 31, 58, 0.06));
}

.scope-flow .flow-base {
  fill: none;
  stroke: #cfd9e6;
  stroke-width: 2;
}

.scope-flow .flow-anim {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 5 16;
  animation: scopeFlow 1.2s linear infinite;
}

@keyframes scopeFlow {
  to {
    stroke-dashoffset: -42;
  }
}

.scope-flow .flow-node rect {
  fill: #fff;
  stroke-width: 2;
}

.scope-flow .flow-node text {
  font: 800 16px "Pretendard Variable", system-ui, sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}

.fn-blue rect {
  stroke: var(--primary);
}
.fn-blue text {
  fill: var(--primary);
}
.fn-teal rect {
  stroke: var(--teal);
}
.fn-teal text {
  fill: #0c7d70;
}
.fn-amber rect {
  stroke: #b4750f;
}
.fn-amber text {
  fill: #b4750f;
}

.scope-flow-caption {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 760px) {
  .scope-flow {
    display: block;
    max-width: 880px;
    margin: 4px auto 32px;
  }
}

@media (min-width: 760px) {
  .warranty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Scroll reveal — enabled only when JS adds .js-reveal (flicker-free, since
   the hide rules require both the class and the attribute set in markup). */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.06s;
}
.js-reveal [data-reveal-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.12s;
}
.js-reveal [data-reveal-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.18s;
}
.js-reveal [data-reveal-stagger].is-visible > *:nth-child(5) {
  transition-delay: 0.24s;
}
.js-reveal [data-reveal-stagger].is-visible > *:nth-child(n + 6) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal].is-visible,
  .js-reveal [data-reveal-stagger] > *,
  .js-reveal [data-reveal-stagger].is-visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
