@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700&display=swap");

:root {
  --zherdela: #ffc142;
  --butter: #ffdead;
  --linen: #fef9f3;
  --sunset: #ff7b18;
  --soil: #2f2620;
  --muted: #6d645c;
  --rule: #e4d4c2;
  --ink-soft: rgba(47, 38, 32, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
html, body { margin: 0; }
body {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  background: var(--linen);
  color: var(--soil);
  min-height: 100vh;
  font-feature-settings: "ss01", "tnum";
  overflow-x: hidden;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--soil);
  color: var(--linen);
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { left: 8px; }

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(254, 249, 243, 0.92), rgba(254, 249, 243, 0.72) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.top.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--soil);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}
.top-brand img { display: block; }
.top-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--soil);
  outline: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) clamp(48px, 8vh, 88px);
  isolation: isolate;
  overflow: hidden;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 78% 18%, rgba(255, 193, 66, 0.55), transparent 58%),
    radial-gradient(ellipse 55% 50% at 12% 72%, rgba(255, 123, 24, 0.28), transparent 60%),
    linear-gradient(155deg, #fff4e4 0%, var(--linen) 42%, #f3e2cd 100%);
  animation: atmosphere-drift 14s ease-in-out infinite alternate;
}
.hero-plane {
  position: absolute;
  inset: auto -8% -18% 28%;
  z-index: -1;
  height: min(72vh, 720px);
  background:
    linear-gradient(135deg, rgba(47, 38, 32, 0.92) 0%, rgba(47, 38, 32, 0.78) 48%, rgba(255, 123, 24, 0.55) 100%);
  clip-path: polygon(18% 0, 100% 12%, 92% 100%, 0 86%);
  transform-origin: 70% 60%;
  animation: plane-rise 1.4s var(--ease) both;
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: 18% 22% auto auto;
  width: 120px;
  height: 72px;
  background: url("assets/star.svg") center / contain no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  animation: star-pulse 3.6s ease-in-out infinite;
}

.hero-inner {
  max-width: 720px;
  animation: hero-copy 1s var(--ease) 0.15s both;
}
.hero-brand {
  margin: 0 0 18px;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soil);
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero-lead {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--sunset);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--soil);
  color: var(--linen);
}
.btn-primary:hover { background: #1f1915; }
.btn-ghost {
  background: transparent;
  color: var(--soil);
  border-color: rgba(47, 38, 32, 0.28);
}
.btn-ghost:hover {
  border-color: var(--soil);
  background: rgba(255, 255, 255, 0.35);
}

.section {
  position: relative;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 72px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 6vh, 56px);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sunset);
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.section-lead {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
}

.path {
  background:
    linear-gradient(180deg, rgba(255, 222, 173, 0.35), transparent 28%),
    var(--linen);
  border-top: 1px solid var(--soil);
  box-shadow: inset 0 4px 0 var(--zherdela);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 880px;
}
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.step:first-child { border-top: 1px solid var(--rule); }
.step-num {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--sunset);
  padding-top: 6px;
}
.step-body h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 46ch;
}

.values {
  background: var(--soil);
  color: var(--linen);
  overflow: hidden;
}
.values .eyebrow { color: var(--zherdela); }
.values .section-lead { color: rgba(254, 249, 243, 0.62); }
.values-visual {
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 193, 66, 0.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(255, 123, 24, 0.22), transparent 50%);
  pointer-events: none;
}
.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 860px;
  position: relative;
}
.value-list li {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid rgba(254, 249, 243, 0.16);
}
.value-list li:last-child {
  border-bottom: 1px solid rgba(254, 249, 243, 0.16);
}
.value-list strong {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.value-list span {
  color: rgba(254, 249, 243, 0.62);
  font-size: 16px;
  line-height: 1.5;
  max-width: 42ch;
}

.form-section {
  background:
    linear-gradient(180deg, rgba(255, 222, 173, 0.4), transparent 32%),
    var(--linen);
  border-top: 1px solid var(--soil);
  box-shadow: inset 0 4px 0 var(--zherdela);
}
.form-wrap {
  max-width: 720px;
  width: 100%;
}
#formHolder {
  width: 100%;
  max-width: 720px;
  min-height: 120px;
}

.form-section {
  background:
    linear-gradient(180deg, rgba(255, 222, 173, 0.4), transparent 32%),
    var(--linen);
  border-top: 1px solid var(--soil);
  box-shadow: inset 0 4px 0 var(--zherdela);
}
.form-wrap {
  max-width: 720px;
  width: 100%;
}
#formHolder {
  width: 100%;
  max-width: 720px;
  min-height: 120px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--soil);
  border-bottom: 1px solid var(--soil);
  max-width: 980px;
}
.help-item {
  display: grid;
  gap: 10px;
  padding: 28px 24px 32px;
  background: var(--linen);
  color: inherit;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.help-item:hover,
.help-item:focus-visible {
  background: var(--butter);
  outline: none;
}
.help-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sunset);
}
.help-item strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.help-item > span:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.close {
  padding-bottom: clamp(88px, 14vh, 140px);
  background:
    linear-gradient(180deg, transparent, rgba(255, 193, 66, 0.18)),
    var(--linen);
}
.close-inner {
  max-width: 560px;
}
.close h2 {
  margin: 0 0 12px;
}
.close p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 72px) 28px;
  border-top: 1px solid var(--soil);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.step.reveal.is-in { transition-delay: 0s; }
.steps .step:nth-child(2).reveal.is-in { transition-delay: 0.08s; }
.steps .step:nth-child(3).reveal.is-in { transition-delay: 0.16s; }
.value-list .reveal:nth-child(2).is-in { transition-delay: 0.08s; }
.value-list .reveal:nth-child(3).is-in { transition-delay: 0.16s; }
.help-grid .reveal:nth-child(2).is-in { transition-delay: 0.08s; }
.help-grid .reveal:nth-child(3).is-in { transition-delay: 0.16s; }

@keyframes hero-copy {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes plane-rise {
  from { opacity: 0; transform: translate(40px, 48px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes atmosphere-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1.5%, 1%); }
}
@keyframes star-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.06) rotate(4deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-atmosphere,
  .hero-plane,
  .hero-plane::after,
  .hero-inner,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 820px) {
  .top-nav { display: none; }
  .hero { align-items: center; padding-top: 110px; }
  .hero-plane {
    inset: auto -20% 8% 8%;
    height: 42vh;
    opacity: 0.9;
  }
  .step { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .help-grid { grid-template-columns: 1fr; }
}
