:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #14181d;
  --panel-strong: #1a2027;
  --line: #323b45;
  --line-focus: #f2b84b;
  --text: #f5f2ea;
  --muted: #c7c0b1;
  --quiet: #958d7e;
  --accent: #f2b84b;
  --accent-2: #2e8b77;
  --success: #74d7aa;
  --danger: #ff9c8e;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(180deg, #121416 0%, #080a0c 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 9px 12px;
  border-radius: 6px;
  color: #101010;
  background: var(--accent);
  font-weight: 800;
  transform: translateY(-160%);
}

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

.shell,
.app-shell {
  position: relative;
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 28px 0 24px;
}

.contact-shell { max-width: 760px; }

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 16px;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(242, 184, 75, .72);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(242,184,75,.22), rgba(46,139,119,.12));
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #f2b84b;
}

.brand-mark::before { height: 8px; left: 8px; top: 11px; }
.brand-mark span { height: 15px; left: 14px; top: 7px; }
.brand-mark::after { height: 10px; right: 8px; top: 10px; }

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(117,230,173,.18);
  border-radius: 6px;
  color: #c2e7d2;
  background: rgba(117,230,173,.055);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.privacy-chip span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242,184,75,.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(242,184,75,.08) 0 1px, transparent 1px),
    linear-gradient(155deg, rgba(23,29,34,.98), rgba(10,12,14,.98));
  background-size: 26px 100%, auto;
  box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
}

.compose-panel { padding: 34px; }
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  gap: 38px;
  align-items: start;
}

.hero-copy { padding-top: 8px; }
.eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.result-panel h2,
.contact-panel h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.lede.compact { margin-bottom: 22px; }
.demo-note {
  max-width: 560px;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(242,184,75,.85);
  color: #d6d9e4;
  font-size: 14px;
  line-height: 1.62;
}

form { position: relative; }
label, .field-heading label, legend {
  color: #e1e4ec;
  font-size: 13px;
  font-weight: 700;
}

.demo-console {
  padding: 20px;
  border: 1px solid rgba(242,184,75,.14);
  border-radius: 8px;
  background: rgba(7,9,10,.68);
}

.demo-options {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.demo-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.demo-choice {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #0e1215;
  text-align: left;
  cursor: pointer;
}

.demo-choice span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
}

.demo-choice strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.demo-choice.is-selected {
  border-color: rgba(242,184,75,.95);
  background: linear-gradient(150deg, rgba(242,184,75,.2), rgba(18,22,24,.95));
  box-shadow: 0 0 0 3px rgba(242,184,75,.12);
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.demo-badge {
  padding: 5px 8px;
  border: 1px solid rgba(117,230,173,.17);
  border-radius: 6px;
  color: #b9ddc9;
  background: rgba(117,230,173,.055);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-composer,
textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: rgba(7,9,14,.78);
  font: inherit;
}

.demo-composer {
  display: flex;
  min-height: 112px;
  align-items: center;
  padding: 18px;
  color: #f0f1f5;
  font-size: 28px;
  font-weight: 760;
  line-height: 1.25;
}

textarea { min-height: 154px; padding: 15px 16px; resize: vertical; font-size: 15px; line-height: 1.55; }
input, select { height: 48px; padding: 0 14px; font-size: 14px; }
textarea::placeholder, input::placeholder { color: #61687a; }
textarea:focus, input:focus, select:focus, .demo-composer:focus, button:focus-visible, a:focus-visible, pre:focus-visible {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(242,184,75,.18);
  outline: none;
}

.future-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.future-control {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  background: rgba(255,255,255,.018);
}

.future-control span,
.future-control label {
  color: #e0e3eb;
  font-size: 12px;
  font-weight: 700;
}

.future-control button,
.future-control select {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  color: #888f9e;
  background: rgba(255,255,255,.035);
  font-size: 11px;
}

.human-check {
  margin: 18px 0 0;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  background: rgba(255,255,255,.018);
}

.human-check legend { padding: 0 5px; }
.math-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.math-row label { line-height: 1.45; }
.small-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  color: #f7d28a;
  background: rgba(242,184,75,.1);
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
}

.turnstile-widget { min-height: 65px; margin-top: 13px; overflow: hidden; color: var(--quiet); font-size: 12px; }
.turnstile-widget iframe { max-width: 100%; }
.secret-field { position: relative; margin-top: 8px; }
.secret-field input { padding-right: 65px; }
.reveal-button {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  color: #b8bdca;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.field-hint, .field-error, .form-error { margin: 7px 2px 0; font-size: 11px; line-height: 1.45; }
.field-hint { color: var(--quiet); }
.field-error, .form-error { color: var(--danger); }
.form-error { text-align: center; }

button { font-family: inherit; }
.primary-button, .secondary-button, .text-button {
  border: 0;
  font-weight: 760;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(115deg, #a55f2b, #2e8b77);
  box-shadow: 0 13px 30px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.18);
  font-size: 13px;
}

.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .62; cursor: wait; transform: none; }
.secondary-button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  color: white;
  background: #2e8b77;
  white-space: nowrap;
}

.text-button {
  display: block;
  margin: 22px auto 0;
  padding: 8px;
  color: #f7d28a;
  background: transparent;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 24px;
  color: #8a93a5;
  font-size: 11px;
}

.trust-row span::before { content: "OK"; margin-right: 6px; color: var(--accent); font-weight: 800; }

.result-panel { width: min(100%, 720px); margin: 0 auto; padding: 42px 40px 34px; text-align: left; }
.status-icon, .spinner {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}
.success-icon { border: 1px solid rgba(117,230,173,.2); color: var(--success); background: rgba(117,230,173,.08); }
.lock-icon { border: 1px solid rgba(242,184,75,.25); color: #f7d28a; background: rgba(242,184,75,.09); }
.error-icon { border: 1px solid rgba(255,141,154,.22); color: var(--danger); background: rgba(255,141,154,.07); }
.copy-field { display: flex; gap: 8px; margin-top: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,9,14,.68); }
.copy-field input { flex: 1 1 auto; width: auto; min-width: 0; height: 43px; border: 0; background: transparent; box-shadow: none; color: #bfc3ce; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.notice {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  color: #9298a7;
  background: rgba(255,255,255,.02);
  font-size: 12px;
  line-height: 1.55;
}
.notice strong { color: #d4d7df; }
.notice.subtle { border-left: 2px solid #2e8b77; }
.detail-text {
  min-height: 130px;
  max-height: 52vh;
  margin: 24px 0 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #f0f1f5;
  background: rgba(7,9,14,.68);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.spinner {
  border: 2px solid #2e3443;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 20px;
  color: #646c7c;
  font-size: 11px;
  text-align: center;
}
.site-footer a, footer a { color: #f7d28a; }

.venture-footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(100%, 920px);
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(167, 156, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(117, 230, 173, .09), transparent 48%),
    linear-gradient(120deg, rgba(242, 184, 75, .16), rgba(14, 17, 18, .92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .06);
}

.venture-kicker {
  color: #75e6ad;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.venture-footer-hero h2 {
  margin: 8px 0 0;
  color: #f4f6fb;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.02;
}

.venture-footer-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #b9becc;
  font-size: 14px;
  line-height: 1.65;
}

.venture-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: #f3f0ff;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.venture-link:hover { background: rgba(255, 255, 255, .1); }

.contact-panel { padding: 30px; }
.contact-panel h1 { margin-bottom: 8px; }
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .human-check { margin: 0; }
.contact-form .primary-button { width: fit-content; min-width: 170px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; }
.contact-result { margin-top: 16px; color: #b9f4db; }
.contact-result[data-error="true"] { color: #ffb4b4; }
.contact-back { display: inline-block; margin-bottom: 20px; color: #f7d28a; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 899px) {
  .demo-grid { grid-template-columns: 1fr; gap: 24px; }
  .compose-panel { padding: 26px; }
}

@media (max-width: 639px) {
  .shell, .app-shell { width: min(100% - 24px, 1180px); padding: 16px 0 14px; }
  .brand { margin-bottom: 16px; }
  .privacy-chip { font-size: 10px; }
  .compose-panel, .contact-panel { padding: 20px 16px; }
  h1 { font-size: clamp(34px, 12vw, 48px); }
  .lede { margin-top: 14px; line-height: 1.5; }
  .demo-console { padding: 14px; }
  .demo-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .demo-choice { min-height: 68px; padding: 10px; }
  .demo-choice strong { font-size: 21px; }
  .demo-composer { min-height: 94px; padding: 14px; font-size: 23px; }
  .future-controls { grid-template-columns: 1fr; }
  input, select { height: 44px; }
  .math-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .primary-button { min-height: 48px; }
  .result-panel { padding: 25px 18px 20px; }
  .copy-field { flex-direction: column; }
  .secondary-button { width: 100%; }
  .venture-footer-hero {
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding: 20px 16px;
  }
  .venture-footer-hero h2 { font-size: 28px; }
  .venture-link { width: 100%; }
  .contact-form .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
