:root {
  --navy: #082640;
  --navy-soft: #123b5a;
  --blue: #245576;
  --blue-light: #e7f0f5;
  --yellow: #c7a15a;
  --yellow-soft: #f5ecdd;
  --ink: #14263a;
  --muted: #627180;
  --line: #d7e0e5;
  --surface: #ffffff;
  --canvas: #f4f5f3;
  --danger: #c54141;
  --success: #238259;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 9%, rgba(199,161,90,.12), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(36,85,118,.08), transparent 26%),
    var(--canvas);
}
.topbar {
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(8,38,64,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.brand-mark {
  width: 50px; height: 44px; flex: 0 0 50px; position: relative; display: block;
}
.horseshoe {
  width: 25px; height: 30px; position: absolute; display: block;
  border: 4px solid; border-top: 0; border-radius: 0 0 17px 17px;
}
.horseshoe-one {
  left: 6px; top: 6px; border-color: var(--yellow); border-top: 0;
  transform: rotate(42deg);
}
.horseshoe-two {
  right: 5px; top: 7px; border-color: white; border-top: 0;
  transform: rotate(-138deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; line-height: 1.1; }
.brand small { margin-top: 2px; color: #d5bd8b; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.pilot-badge {
  padding: 7px 10px; border-radius: 999px; background: rgba(199,161,90,.17); color: #ecd9b4;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.icon-button {
  min-height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07); color: white; font-size: 13px; font-weight: 700;
}
.icon-button:hover { border-color: rgba(199,161,90,.72); background: rgba(255,255,255,.12); }
.registry-button span {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px;
  border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 11px;
}

.hero {
  max-width: 1280px; margin: 0 auto; padding: clamp(42px, 7vw, 92px) clamp(20px, 5vw, 72px) 72px;
  display: grid; grid-template-columns: minmax(0,.86fr) minmax(520px,1.14fr); gap: clamp(44px, 7vw, 92px);
  align-items: start;
}
.hero-copy { padding-top: 36px; position: sticky; top: 110px; }
.eyebrow {
  margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
h1 { margin: 0; max-width: 600px; color: var(--navy); font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.hero-text { max-width: 580px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points span {
  padding: 10px 14px; border: 1px solid rgba(199,161,90,.28); border-radius: 12px;
  background: rgba(255,255,255,.65); color: var(--muted); font-size: 13px;
}
.hero-points b { color: var(--navy); font-size: 16px; }
.reward-card {
  max-width: 560px; display: flex; align-items: center; gap: 15px; margin-top: 30px; padding: 18px;
  border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: white;
  box-shadow: 0 20px 45px rgba(8,38,64,.17); border: 1px solid rgba(199,161,90,.25);
}
.reward-icon {
  width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 13px;
  background: var(--yellow); color: var(--navy); font-size: 24px; font-weight: 900;
}
.reward-card strong { font-size: 15px; }
.reward-card p { margin: 5px 0 0; color: #d7e1e8; font-size: 12px; line-height: 1.45; }

.form-card {
  min-height: 650px; border: 1px solid rgba(20,35,63,.08); border-radius: 26px; background: white;
  box-shadow: 0 24px 80px rgba(28,47,78,.12); overflow: hidden;
}
.demo-notice {
  padding: 13px 28px; display: flex; align-items: center; gap: 12px;
  background: var(--yellow-soft); color: #71540b; border-bottom: 1px solid #f0dfac; font-size: 12px;
}
.demo-notice strong { flex: 0 0 auto; }
.form-card form { padding: 30px 34px 26px; }
.form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.form-kicker { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.form-heading h2, .success-state h2, .modal h2, .section-heading h2 { margin: 0; color: var(--navy); letter-spacing: -.025em; }
.form-heading h2 { font-size: 28px; }
.step-count { color: var(--blue); font-size: 13px; font-weight: 800; }
.progress-track { height: 5px; margin: 20px 0 18px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .25s ease; }
.step-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 28px; }
.step-tabs span { display: flex; align-items: center; gap: 7px; color: #8b95a6; font-size: 11px; font-weight: 700; }
.step-tabs i {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #edf1f7;
  font-style: normal; font-size: 10px;
}
.step-tabs span.active { color: var(--navy); }
.step-tabs span.active i { background: var(--navy); color: white; }
.fields { display: grid; gap: 18px; }
.two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field-label, .radio-field legend { color: var(--ink); font-size: 13px; font-weight: 700; }
.field-label b, .radio-field legend b, .required-note b { color: var(--danger); }
.field input:not([type="file"]), .field textarea, .field select, .entry-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--ink); outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:not([type="file"]), .field select { height: 49px; padding: 0 14px; }
.field textarea { min-height: 105px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus, .entry-card select:focus {
  border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(55,104,173,.11);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa4b5; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.field.has-error .field-hint { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select, .radio-field.has-error { border-color: var(--danger); }
.error-text { color: var(--danger) !important; }
.radio-field { margin: 0; padding: 0; border: 0; }
.radio-field legend { margin-bottom: 9px; }
.segmented-control { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.segmented-control label {
  min-height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfe; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer;
}
.segmented-control label.selected { border-color: var(--blue); background: var(--blue-light); color: var(--navy); }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.radio-field > .error-text { display: block; margin-top: 6px; font-size: 11px; }
.file-input {
  min-height: 54px; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  border: 1px dashed #aab9ce; border-radius: 13px; background: #f8faff; color: var(--blue); cursor: pointer;
}
.file-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-light); font-size: 20px; }
.file-input span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.consent { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; cursor: pointer; }
.consent.has-error { border-color: var(--danger); background: #fff8f8; }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--blue); }
.consent span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent small { display: block; margin-top: 4px; color: var(--danger); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 27px; }
.primary-button, .secondary-button {
  min-height: 48px; padding: 0 21px; border-radius: 12px; font-weight: 800; border: 1px solid transparent;
}
.primary-button { background: var(--navy); color: white; box-shadow: 0 10px 22px rgba(20,35,63,.16); }
.primary-button:hover { background: var(--navy-soft); }
.secondary-button { border-color: var(--line); background: white; color: var(--navy); }
.secondary-button:hover { background: #f7f9fc; }
.secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.required-note { margin: 17px 0 0; color: var(--muted); font-size: 10px; text-align: right; }

.success-state { min-height: 620px; padding: 70px 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-mark { width: 64px; height: 64px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ef; color: var(--success); font-size: 30px; font-weight: 900; }
.success-state h2 { font-size: 36px; }
.success-state > p:not(.eyebrow):not(.muted) { margin: 26px 0 8px; color: var(--muted); font-size: 13px; }
.idea-number { padding: 13px 18px; border-radius: 12px; background: var(--yellow-soft); color: var(--navy); font-size: 24px; font-weight: 900; letter-spacing: .06em; }
.success-state .muted { max-width: 440px; margin: 22px auto 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.success-actions { display: flex; gap: 10px; margin-top: 28px; }

.how-it-works { padding: 75px clamp(20px, 5vw, 72px) 90px; background: var(--navy); color: white; }
.how-it-works > * { max-width: 1136px; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { color: var(--yellow); }
.section-heading h2 { max-width: 620px; color: white; font-size: clamp(30px,4vw,48px); }
.how-it-works ol { margin-top: 42px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.how-it-works li { min-height: 190px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.05); }
.how-it-works li > span { display: block; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.how-it-works li strong { display: block; margin-top: 34px; font-size: 19px; }
.how-it-works li p { margin: 10px 0 0; color: #c4d0e1; font-size: 13px; line-height: 1.6; }
footer { min-height: 84px; padding: 20px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0d182d; color: #aebbd0; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 20px; display: grid; place-items: center; background: rgba(7,15,29,.72); backdrop-filter: blur(8px); }
.modal { width: min(100%,540px); max-height: calc(100vh - 40px); overflow: auto; position: relative; border-radius: 24px; background: white; box-shadow: 0 32px 100px rgba(0,0,0,.32); }
.close-button { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--navy); font-size: 24px; line-height: 1; }
.registry-modal { width: min(100%,760px); padding: 32px; }
.registry-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-right: 46px; }
.registry-heading h2 { font-size: 30px; }
.registry-note { margin: 13px 0 22px; color: var(--muted); font-size: 12px; }
.entry-list { display: grid; gap: 11px; }
.entry-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }
.entry-topline { display: flex; justify-content: space-between; gap: 14px; color: var(--blue); font-size: 11px; font-weight: 800; }
.entry-topline time { color: var(--muted); font-weight: 400; }
.entry-card h3 { margin: 10px 0 7px; color: var(--navy); font-size: 17px; }
.entry-card p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.entry-card label { display: grid; grid-template-columns: auto minmax(190px,240px); align-items: center; justify-content: end; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.entry-card select { height: 38px; padding: 0 10px; }
.empty-state { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #bdc8d8; border-radius: 18px; text-align: center; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-weight: 900; }
.empty-state strong { margin-top: 15px; color: var(--navy); }
.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; max-width: 760px; padding-top: 35px; }
  .hero-copy { position: static; padding-top: 0; }
  .hero-copy h1 { max-width: 700px; }
  .form-card { min-height: 0; }
}

@media (max-width: 640px) {
  .topbar { min-height: 66px; padding: 10px 15px; }
  .brand-mark { width: 46px; height: 40px; flex-basis: 46px; transform: scale(.9); transform-origin: left center; }
  .brand small, .pilot-badge, .registry-button { display: none; }
  .icon-button { padding: 0 11px; }
  .hero { padding: 30px 14px 50px; gap: 28px; }
  h1 { font-size: 38px; }
  .hero-text { margin-top: 18px; font-size: 15px; line-height: 1.6; }
  .hero-points { margin-top: 22px; gap: 7px; }
  .hero-points span { padding: 8px 10px; font-size: 11px; }
  .reward-card { margin-top: 18px; padding: 14px; border-radius: 15px; }
  .form-card { border-radius: 20px; }
  .demo-notice { padding: 11px 17px; display: block; }
  .demo-notice span { display: block; margin-top: 3px; line-height: 1.4; }
  .form-card form { padding: 24px 18px 20px; }
  .form-heading h2 { font-size: 25px; }
  .step-tabs span { font-size: 0; }
  .step-tabs i { width: 25px; height: 25px; font-size: 11px; }
  .two-columns { grid-template-columns: 1fr; gap: 18px; }
  .field input:not([type="file"]), .field select { height: 52px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .success-state { min-height: 560px; padding: 48px 20px; }
  .success-state h2 { font-size: 31px; }
  .success-actions { width: 100%; flex-direction: column; }
  .how-it-works { padding: 58px 16px 65px; }
  .section-heading h2 { font-size: 31px; }
  .how-it-works ol { grid-template-columns: 1fr; margin-top: 28px; }
  .how-it-works li { min-height: 150px; }
  footer { padding: 20px 16px; }
  .registry-modal { padding: 26px 18px; border-radius: 20px; }
  .registry-heading h2 { font-size: 26px; }
  .registry-heading { display: block; padding-right: 42px; }
  .registry-heading .secondary-button { margin-top: 14px; }
  .entry-topline { display: block; }
  .entry-topline time { display: block; margin-top: 4px; }
  .entry-card label { grid-template-columns: 1fr; }
}
