:root {
  color-scheme: dark;
  --ink: #f7f4ed;
  --muted: #b7c2cb;
  --night: #030912;
  --panel: #091522;
  --panel-strong: #0d1c2b;
  --gold: #f2d58b;
  --gold-deep: #b88a32;
  --blue: #75d9f2;
  --line: rgba(242, 213, 139, 0.22);
  --danger: #ffb4ac;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% -10%, rgba(40, 105, 139, 0.34), transparent 31rem),
    var(--night);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 18, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; object-position: left center; }
.brand strong {
  display: block;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0.12em;
  background: linear-gradient(110deg, #999, #fff 30%, var(--blue) 50%, #fff 67%, var(--gold));
  background-clip: text;
  color: transparent;
}
.brand small { display: block; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: 0.13em; }
.townline-link { color: #d8e8ef; font-size: 13px; font-weight: 800; text-decoration: none; }
.townline-link:hover { color: var(--gold); }

.hero { padding: clamp(68px, 9vw, 118px) 0 64px; border-bottom: 1px solid rgba(117, 217, 242, 0.12); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr); gap: clamp(34px, 7vw, 96px); align-items: end; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 820px;
  margin: 0;
  font: 700 clamp(48px, 7.5vw, 92px)/0.94 Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-copy { max-width: 760px; margin: 28px 0 0; color: #d5dee5; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.hero-points span { padding: 8px 11px; border: 1px solid #334657; border-radius: 999px; color: #d6e0e7; font-size: 12px; font-weight: 750; }
.trust-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 28, 43, 0.96), rgba(5, 13, 23, 0.96)); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28); }
.trust-card p { margin: 6px 0 16px; color: var(--muted); }
.trust-card strong { color: var(--ink); font-size: 20px; }
.trust-card a { display: inline-flex; margin-top: 5px; color: var(--gold); font-weight: 850; text-underline-offset: 5px; }
.status-dot { display: block; width: 11px; height: 11px; margin-bottom: 18px; border-radius: 50%; background: #6ce1a2; box-shadow: 0 0 0 6px rgba(108, 225, 162, 0.1); }

.workspace-section { padding: clamp(68px, 8vw, 105px) 0; background: linear-gradient(180deg, rgba(9, 21, 34, 0.35), transparent); }
.section-heading { max-width: 760px; margin-bottom: 37px; }
.section-heading h2, .launch-card h2 { margin: 0; font: 700 clamp(36px, 4.6vw, 58px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -0.035em; text-wrap: balance; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 18px; align-items: stretch; }
.composer, .result-panel { border: 1px solid #2a3d4e; border-radius: var(--radius); background: rgba(9, 21, 34, 0.94); }
.composer { padding: clamp(20px, 3vw, 34px); }
.form-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.form-header > div { display: flex; align-items: center; gap: 12px; }
.form-header > div > span, .benefit-grid article > span { color: var(--gold); font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.form-header h3 { margin: 0; font: 700 25px/1.1 Georgia, serif; }
.review-header { margin-top: 35px; padding-top: 30px; border-top: 1px solid #263847; }
.text-button, .secondary-button, .copy-button { border: 0; cursor: pointer; }
.text-button { padding: 7px 0; background: transparent; color: var(--gold); font-size: 13px; font-weight: 850; text-decoration: underline; text-underline-offset: 5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compact-grid { grid-template-columns: repeat(3, 1fr); }
.field { display: block; margin-bottom: 17px; }
.field > span:first-child { display: block; margin-bottom: 7px; color: #e5ebef; font-size: 13px; font-weight: 800; }
.field b { color: var(--gold); }
input, select, textarea {
  width: 100%;
  border: 1px solid #3c5163;
  border-radius: 12px;
  outline: 0;
  background: #06111c;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input, select { min-height: 48px; padding: 10px 12px; }
textarea { display: block; min-height: 164px; padding: 13px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #82909d; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 213, 139, 0.12); }
[aria-invalid="true"] { border-color: var(--danger); }
.field-meta { display: flex !important; justify-content: space-between; gap: 10px; margin-top: 6px; color: #8e9aa5 !important; font-weight: 500 !important; }
.field-error { min-height: 1em; color: var(--danger); }
.primary-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #f4db98, var(--gold-deep));
  color: #171106;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(184, 138, 50, 0.14);
}
.primary-button:hover { filter: brightness(1.06); }
.primary-button:disabled { cursor: wait; filter: grayscale(0.3); opacity: 0.72; }
.form-note { margin: 12px 0 0; color: #8996a1; font-size: 12px; }

.result-panel { position: relative; min-height: 590px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; overflow: hidden; }
.result-panel::before { content: ""; position: absolute; width: 280px; height: 280px; right: -150px; top: -160px; border: 1px solid rgba(117, 217, 242, 0.28); border-radius: 50%; box-shadow: 0 0 90px rgba(117, 217, 242, 0.08); }
.result-topline { position: relative; display: flex; justify-content: space-between; gap: 12px; color: var(--gold); font-size: 10px; font-weight: 950; letter-spacing: 0.15em; }
.mode-badge { padding: 5px 8px; border: 1px solid #3d5263; border-radius: 999px; color: #bdd0db; letter-spacing: 0.06em; }
.result-empty { margin: auto 0; max-width: 430px; }
.quote-mark { height: 72px; color: rgba(242, 213, 139, 0.2); font: 120px/1 Georgia, serif; }
.result-empty h3 { margin: 10px 0; font: 700 36px/1.08 Georgia, serif; letter-spacing: -0.025em; }
.result-empty p, .result-notice { color: var(--muted); }
.result-content { position: relative; margin: auto 0; }
.rating-preview { margin-bottom: 20px; color: var(--gold); font-size: 18px; letter-spacing: 0.13em; }
blockquote { margin: 0; font: 500 clamp(22px, 2.2vw, 30px)/1.48 Georgia, serif; letter-spacing: -0.015em; }
.result-notice { margin: 24px 0 0; padding-top: 17px; border-top: 1px solid #273948; font-size: 12px; }
.result-actions { display: flex; gap: 9px; margin-top: 20px; }
.copy-button, .secondary-button, .outline-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 999px; font-weight: 850; }
.copy-button { background: var(--gold); color: #171106; }
.secondary-button { border: 1px solid #42586a; background: transparent; color: var(--ink); }
.result-error { margin: auto 0; padding: 16px; border: 1px solid rgba(255, 180, 172, 0.4); border-radius: 12px; background: rgba(124, 30, 26, 0.18); color: #ffd4cf; }
.privacy-line { position: relative; margin-top: auto; padding-top: 20px; color: #82919e; font-size: 11px; letter-spacing: 0.04em; }
.privacy-line span { margin-right: 6px; color: var(--blue); }

.how-it-works { padding: 30px 0 94px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 25px 0 70px; border: 1px solid #263949; border-radius: var(--radius); overflow: hidden; background: #263949; }
.benefit-grid article { min-height: 230px; padding: 28px; background: #07131f; }
.benefit-grid h3 { margin: 30px 0 10px; font: 700 25px/1.1 Georgia, serif; }
.benefit-grid p { color: var(--muted); }
.launch-card { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(115deg, #10283a, #0b1725 64%); }
.launch-card > div { max-width: 750px; }
.launch-card > div > p:last-child { color: var(--muted); }
.outline-button { flex: 0 0 auto; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; }
.outline-button:hover { background: var(--gold); color: #171106; }
footer { border-top: 1px solid var(--line); background: #02070d; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #929faa; font-size: 12px; }

@media (max-width: 850px) {
  .hero-grid, .workspace-grid { grid-template-columns: 1fr; }
  .trust-card { max-width: 540px; }
  .result-panel { min-height: 510px; }
  .compact-grid { grid-template-columns: 1fr 1fr; }
  .launch-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 58px; height: 44px; }
  .brand strong { font-size: 20px; }
  .brand small { display: none; }
  .townline-link { max-width: 120px; text-align: right; font-size: 11px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .hero-copy { margin-top: 21px; font-size: 18px; }
  .field-grid, .compact-grid, .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid { gap: 1px; }
  .benefit-grid article { min-height: 0; }
  .form-header { align-items: flex-start; }
  .result-actions { flex-direction: column; }
  .copy-button, .secondary-button { width: 100%; }
  blockquote { font-size: 22px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
