:root {
  --orange: #f58220;
  --orange-dark: #d8650e;
  --cyan: #08a8cb;
  --cyan-dark: #0784a0;
  --ink: #17313a;
  --muted: #65777d;
  --line: #dce6e8;
  --soft: #f4f8f9;
  --white: #ffffff;
  --danger: #b42318;
  --success: #067647;
  --warning-bg: #fff7ed;
  --warning-line: #fed7aa;
  --shadow: 0 24px 70px rgba(25, 58, 68, .13);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, rgba(8,168,203,.11), transparent 34%),
    radial-gradient(circle at 93% 7%, rgba(245,130,32,.10), transparent 30%),
    #f8fbfc;
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }

a { color: var(--cyan-dark); }

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 58px) 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 92px;
  height: 66px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(23,49,58,.08);
}

.eyebrow, .section-kicker {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 5px 16px rgba(24, 55, 64, .05);
}

.connection-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #98a2b3;
}

.connection-badge.connected .dot { background: #12b76a; }
.connection-badge.demo .dot { background: var(--orange); }
.connection-badge.error .dot { background: var(--danger); }

.main-layout {
  display: grid;
  grid-template-columns: minmax(320px, .80fr) minmax(560px, 1.20fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}

.hero-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 650px;
  color: white;
  background:
    linear-gradient(145deg, rgba(8,168,203,.98), rgba(7,123,151,.98)),
    var(--cyan);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::before {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -80px;
  background: rgba(255,255,255,.10);
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -70px;
  background: rgba(245,130,32,.38);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4vw, 58px);
}

.hero-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero-panel h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-copy {
  margin: 22px 0 34px;
  max-width: 620px;
  color: rgba(255,255,255,.90);
  font-size: 1.05rem;
  line-height: 1.7;
}

.benefits {
  display: grid;
  gap: 17px;
}

.benefit {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  align-items: start;
}

.benefit-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
  font-size: .78rem;
}

.benefit strong, .benefit span { display: block; }
.benefit strong { margin: 2px 0 4px; }
.benefit div span { color: rgba(255,255,255,.78); line-height: 1.45; font-size: .92rem; }

.secure-note {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  padding: 17px;
  border-radius: 16px;
  background: rgba(6, 92, 113, .35);
  border: 1px solid rgba(255,255,255,.15);
}

.secure-note .shield {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-weight: 900;
}

.secure-note strong,
.secure-note span { display: block; }
.secure-note span { color: rgba(255,255,255,.78); margin-top: 3px; font-size: .88rem; }

.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(215,228,231,.8);
}

.form-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.03em;
}

.form-head > p:last-child {
  margin: 0 0 30px;
  color: var(--muted);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}

legend {
  width: 100%;
  padding: 0 0 11px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: block;
  min-width: 0;
}

.field.wide { grid-column: 1 / -1; }

.field > span:first-child {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 750;
}

.field b, .check-row b { color: var(--orange-dark); }

input, select, textarea {
  width: 100%;
  border: 1px solid #cddbdd;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

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

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8,168,203,.11);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--danger);
  background: #fffafa;
}

.error, .privacy-error {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: var(--danger);
  font-size: .78rem;
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.counter {
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  text-align: right;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 2px;
  color: #40575f;
  font-size: .88rem;
  line-height: 1.55;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--cyan);
}

.primary-button {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--orange), #ff9e3d);
  box-shadow: 0 12px 26px rgba(245,130,32,.25);
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(245,130,32,.30);
}

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

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-foot {
  margin: 15px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .82rem;
  line-height: 1.5;
}

.notice {
  padding: 13px 15px;
  border-radius: 11px;
  margin: 0 0 18px;
  line-height: 1.45;
  font-size: .88rem;
}

.notice.error {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.notice.warning {
  background: var(--warning-bg);
  color: #9a3412;
  border: 1px solid var(--warning-line);
}

.hidden { display: none !important; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 4px 0;
  color: #7a8a8f;
  font-size: .78rem;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-card {
  width: min(620px, 100%);
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 55px);
  box-shadow: var(--shadow);
}

.success-logo {
  width: 150px;
  height: 105px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
  margin-bottom: 22px;
}

.success-check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #12b76a, #039855);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(3,152,85,.22);
}

.success-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.3rem);
  letter-spacing: -.04em;
}

.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.folio-box {
  margin: 24px auto;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.folio-box span, .folio-box strong { display: block; }
.folio-box span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.folio-box strong { margin-top: 4px; color: var(--cyan-dark); font-size: 1.18rem; }

.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  background: var(--cyan);
  font-weight: 800;
}

.legal-card {
  width: min(900px, calc(100% - 36px));
  margin: 34px auto;
  background: white;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-card h1, .legal-card h2 { color: var(--ink); }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.legal-warning {
  border-left: 4px solid var(--orange);
  background: #fff8f2;
  padding: 14px 16px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .main-layout { grid-template-columns: 1fr; }
  .hero-panel { position: relative; top: auto; min-height: auto; }
  .hero-panel h1 { max-width: 760px; }
}

@media (max-width: 680px) {
  .page-shell { padding: 14px 14px 20px; }
  .topbar { align-items: flex-start; }
  .brand-logo { width: 75px; height: 55px; }
  .connection-badge { font-size: .76rem; padding: 8px 10px; }
  .brand-lockup > div { display: none; }
  .grid.two { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .form-card, .hero-panel { border-radius: 20px; }
  .hero-content { padding: 29px 23px; }
  footer { flex-direction: column; }
}
