:root {
  --bg: #050b12;
  --panel: #0b1622;
  --panel-soft: #101f2d;
  --line: #26394b;
  --gold: #f0d17a;
  --gold-deep: #bc9138;
  --text: #f7f4eb;
  --muted: #b9c6d2;
  --teal: #79d6ca;
  --danger: #ffb2aa;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% -5%, rgba(42, 94, 123, .45), transparent 34rem),
    linear-gradient(180deg, #07111d 0, var(--bg) 32rem);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(240, 209, 122, .22);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 9px; object-fit: cover; }
.brand strong { display: block; color: var(--gold); font-size: 1.35rem; letter-spacing: .15em; }
.brand small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.support-link {
  border: 1px solid rgba(240, 209, 122, .6);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: 72px 0 64px;
}
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(3.3rem, 8vw, 7.4rem); line-height: .87; letter-spacing: -.055em; }
h1 span { color: var(--gold); }
.lede { max-width: 720px; color: #d7e0e8; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: .82rem; }
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(240, 209, 122, .38);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(30, 54, 72, .9), rgba(8, 18, 29, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}
.hero-card::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 230px; height: 230px; border: 1px solid rgba(240, 209, 122, .2); border-radius: 50%; }
.hero-card-label { color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-card strong { display: block; margin: 32px 0 22px; font: 700 clamp(2rem, 4vw, 3.5rem)/1.02 Georgia, serif; }
.hero-card p:last-child { color: var(--muted); }

.workspace, .results {
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(16, 31, 45, .98), rgba(8, 18, 28, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.workspace-heading, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.035em; }
.text-button { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-weight: 850; }
form { display: grid; gap: 12px; }
form > label, legend { color: #e6edf3; font-weight: 850; }
input[type="text"], input:not([type]), textarea {
  width: 100%;
  border: 1px solid #3b5267;
  border-radius: 14px;
  outline: none;
  background: #06101a;
  color: var(--text);
}
#meeting-title { min-height: 50px; padding: 12px 15px; }
textarea { min-height: 260px; resize: vertical; padding: 16px; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 209, 122, .13); }
.input-meta { display: flex; justify-content: space-between; gap: 16px; color: #91a2b2; font-size: .78rem; }
fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; padding: 0; border: 0; }
legend { grid-column: 1 / -1; margin-bottom: 8px; }
.choice, .dry-run {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(5, 13, 21, .65);
}
.choice input, .dry-run input { width: 20px; height: 20px; accent-color: var(--gold-deep); }
.choice b, .choice small, .dry-run b, .dry-run small { display: block; }
.choice small, .dry-run small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.dry-run { margin-top: 6px; }
.form-actions { display: flex; gap: 12px; margin-top: 14px; }
.button { min-height: 52px; border-radius: 999px; padding: 12px 22px; cursor: pointer; font-weight: 900; }
.button:disabled { cursor: wait; opacity: .6; }
.button.primary { border: 0; background: linear-gradient(135deg, #f5de99, #b8882d); color: #171006; }
.button.secondary { border: 1px solid #526b80; background: #0a1723; color: #f4f7f9; }
.status { min-height: 24px; margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.status.error { color: var(--danger); }

.mode-badge { border: 1px solid var(--gold-deep); border-radius: 999px; padding: 6px 11px; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.warnings { margin-bottom: 18px; border-left: 3px solid var(--gold); padding: 10px 14px; background: rgba(240, 209, 122, .08); color: #f4e5ba; }
.action-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: actions; }
.action-item { counter-increment: actions; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #07121d; }
.action-item::before { content: counter(actions, decimal-leading-zero); color: var(--gold); font-weight: 900; }
.action-item p { margin-bottom: 7px; font-weight: 750; }
.action-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .78rem; }
.action-meta span { border-radius: 999px; padding: 4px 8px; background: #122537; }
.empty-result { padding: 24px; text-align: center; color: var(--muted); }
.delivery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.delivery-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--panel-soft); }
.delivery-card b { text-transform: capitalize; }
.delivery-card p { margin: 5px 0 0; color: var(--muted); }
.delivery-card.failed { border-color: #75423f; }

.how-it-works { padding: 90px 0; }
.how-it-works > h2 { max-width: 720px; margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps article { min-height: 220px; border-top: 1px solid var(--line); padding: 18px 4px; }
.steps span { color: var(--gold); font-weight: 900; }
.steps h3 { margin: 40px 0 8px; font-size: 1.3rem; }
.steps p { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 24px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 42px; border-top: 1px solid var(--line); color: #91a2b2; font-size: .78rem; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .brand img { width: 58px; height: 42px; }
  .brand small { display: none; }
  .support-link { padding: 8px 11px; font-size: .76rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 54px 0 42px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .hero-card { padding: 26px; }
  .workspace, .results { padding: 20px 16px; border-radius: 21px; }
  .workspace-heading, .results-heading { align-items: flex-start; }
  .input-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
  fieldset, .delivery-grid, .steps { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .button { width: 100%; }
  .how-it-works { padding: 64px 0; }
  .steps article { min-height: 160px; }
  .steps h3 { margin-top: 24px; }
  footer { flex-direction: column; }
}

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