:root {
  --canvas: #ffffff;
  --canvas-warm: #fff6ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5b616b;
  --quiet: #8a9099;
  --brand: #ff6b1a;
  --brand-dark: #d84a00;
  --brand-ink: #7a2a00;
  --brand-soft: #fff0e5;
  --line: #ece5df;
  --line-strong: #dacfc6;
  --focus: #ff6b1a;
  --max: 1180px;
  --gutter: 48px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

main#top {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.section-shell {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-link,
.brand-link img {
  width: 126px;
  height: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.header-action,
.language-option {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
}

.language-option {
  min-width: 42px;
  min-height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.language-option + .language-option {
  border-left: 1px solid var(--line-strong);
}

.language-option.is-active {
  background: var(--brand);
  color: #ffffff;
}

.header-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.header-action {
  padding: 0 18px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #ffffff;
}

.header-action:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 107, 26, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 107, 26, 0.055) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, rgba(255, 107, 26, 0.045) 1px, transparent 1px) 0 0 / 92px 92px;
  mask-image: linear-gradient(90deg, transparent, #000 46%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(410px, 0.72fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 82px;
  padding-bottom: 72px;
}

.hero-copy,
.system-panel {
  min-width: 0;
}

.hero-inner::after {
  position: absolute;
  right: -120px;
  bottom: -130px;
  z-index: -1;
  width: 420px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(255, 107, 26, 0.18), transparent 68%);
}

.brand-line {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.problem-layout h2,
.contact-layout h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 740px;
  font-size: clamp(48px, 5.8vw, 82px);
  line-height: 0.98;
  color: var(--ink);
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.56;
}

.system-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 239, 0.88)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(49, 33, 22, 0.12);
}

.system-panel::before {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 310px;
  height: 310px;
  content: "";
  background: radial-gradient(circle, rgba(255, 107, 26, 0.28), transparent 68%);
}

.process-map {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 560;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.map-frame,
.node rect {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--line);
}

.grid-line {
  fill: none;
  stroke: rgba(255, 107, 26, 0.12);
  stroke-width: 1;
}

.flow-path {
  fill: none;
  stroke: url(#signal);
  stroke-linecap: round;
  stroke-width: 4;
  stroke-dasharray: 28 16;
  animation: flow 9s linear infinite;
}

.path-b {
  animation-delay: -2.4s;
}

.path-c {
  animation-delay: -5.2s;
  stroke: #f4a36f;
  stroke-width: 3;
}

.path-d {
  animation-delay: -6.8s;
}

.flow-loop {
  fill: none;
  stroke: url(#signalSoft);
  stroke-linecap: round;
  stroke-width: 3;
  stroke-dasharray: 18 14;
  animation: flow 12s linear infinite;
  animation-delay: -8s;
}

.decision-orbit circle {
  fill: rgba(255, 107, 26, 0.06);
  stroke: rgba(255, 107, 26, 0.18);
  stroke-width: 1.4;
}

.node path {
  fill: none;
  stroke: #bdab9e;
  stroke-linecap: round;
  stroke-width: 2;
}

.node text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.node circle {
  fill: var(--brand);
}

.decision-node rect {
  fill: #fff8f3;
  stroke: rgba(255, 107, 26, 0.3);
}

.control-node rect {
  fill: rgba(255, 255, 255, 0.9);
}

.checkpoint {
  fill: var(--brand);
}

.problem-band {
  background: var(--brand);
  color: #ffffff;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  padding-top: 78px;
  padding-bottom: 84px;
}

.problem-layout p {
  margin: 0;
  color: #fff3e9;
  font-size: 18px;
  font-weight: 650;
}

.problem-layout h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1;
}

.fronts-section,
.method-section,
.delivery-section {
  padding: 96px 0;
}

.fronts-section,
.delivery-section {
  background: var(--canvas-warm);
}

.method-section {
  background: #ffffff;
}

.section-heading {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading span,
.section-label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.contact-layout h2 {
  max-width: 840px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1;
}

.delivery-heading p,
.method-heading p {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.fronts-grid,
.delivery-cards,
.method-cards {
  display: grid;
  gap: 18px;
}

.method-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.front-card,
.delivery-card,
.method-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(49, 33, 22, 0.08);
}

.front-card > span,
.delivery-card > span,
.method-card > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.front-card h3,
.delivery-card h3,
.method-card strong {
  display: block;
  margin: 52px 0 14px;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.12;
}

.front-card p,
.delivery-card p,
.method-card p,
.contact-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.contact-section {
  background: #171717;
  color: #ffffff;
}

.contact-layout {
  max-width: 860px;
  padding-top: 86px;
  padding-bottom: 90px;
}

.contact-layout .section-label {
  color: #ff9b62;
}

.contact-layout h2 {
  margin-top: 16px;
}

.contact-layout p {
  max-width: 620px;
  margin-top: 20px;
  color: #d8d8d8;
  font-size: 19px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px max(24px, calc((100vw - var(--max)) / 2));
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer img {
  width: 104px;
  height: auto;
}

.footer-language {
  display: inline-flex;
  width: 48px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.footer-language:hover,
.footer-language.is-active {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.footer-language svg {
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.08);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flow {
  to {
    stroke-dashoffset: -84;
  }
}

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

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

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

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  .hero,
  .hero-inner,
  .problem-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-inner {
    gap: 38px;
    min-height: auto;
  }

  .hero-inner {
    padding: 68px 0 64px;
  }

  .hero-copy h1 {
    max-width: 640px;
    font-size: clamp(44px, 7vw, 68px);
  }

  .hero-lede {
    max-width: 610px;
  }

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

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

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .section-shell {
    width: min(100% - 40px, 420px);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-link,
  .brand-link img {
    width: 110px;
  }

  .header-tools {
    justify-content: flex-end;
  }

  .header-action {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .language-switch {
    flex: 0 0 auto;
  }

  .language-option {
    min-width: 42px;
  }

  .hero-inner {
    padding: 48px 0 54px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: 34px;
    overflow-wrap: break-word;
  }

  .hero-lede {
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .system-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .process-map {
    padding: 8px;
    border-radius: 16px;
  }

  .problem-layout {
    gap: 26px;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .problem-layout h2,
  .section-heading h2,
  .contact-layout h2 {
    font-size: 35px;
  }

  .fronts-section,
  .method-section,
  .delivery-section {
    padding: 64px 0;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 30px;
  }

  .fronts-grid,
  .delivery-cards,
  .method-cards {
    grid-template-columns: 1fr;
  }

  .front-card,
  .delivery-card,
  .method-card {
    min-height: auto;
    padding: 24px;
  }

  .front-card h3,
  .delivery-card h3,
  .method-card strong {
    margin-top: 38px;
  }

  .contact-layout {
    gap: 34px;
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .site-footer {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .site-footer img {
    width: 92px;
  }

  .site-footer span {
    font-size: 13px;
  }
}
