:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #586174;
  --line: #d9e0ea;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --blue: #155eef;
  --green: #0d9488;
  --red: #dc2626;
  --amber: #b45309;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef3f8;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 224, 234, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #111827, #155eef 70%, #0d9488);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--blue);
}

.utility-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

#signalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.utility-heading,
.workspace {
  position: relative;
  z-index: 1;
}

.utility-heading {
  max-width: 900px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.control-panel,
.identity-card,
.link-tool,
.sandbox-frame-wrap,
.vault-grid,
.feature-list article,
.faq-band details {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 224, 234, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.control-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

label,
legend {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.14);
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row,
.task-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.check-row input,
.task-list input {
  width: auto;
  margin: 0;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
}

.secondary-btn {
  color: #0f172a;
  background: #e7edf8;
}

.ghost-btn {
  color: #334155;
  background: transparent;
  border: 1px solid var(--line);
}

.icon-btn {
  color: #fff;
  background: #0f172a;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.identity-card {
  min-height: 190px;
  padding: 20px;
}

.main-card {
  grid-row: span 2;
}

.card-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.identity-card h2 {
  margin: 8px 0 18px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.secret-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

meter {
  width: 100%;
  height: 12px;
  margin-top: 18px;
}

.timer {
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
}

.task-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.ad-band {
  display: grid;
  min-height: 96px;
  place-items: center;
  margin: 0;
  color: #475569;
  background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 14px, #eef2f7 14px, #eef2f7 28px);
  border-block: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.tool-band,
.content-band,
.faq-band {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 48px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2,
.seo-copy h2,
.faq-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 18px;
}

.link-tool,
.vault-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.risk-report {
  min-height: 118px;
  padding: 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.risk-report strong.good {
  color: var(--green);
}

.risk-report strong.warn {
  color: var(--amber);
}

.risk-report strong.bad {
  color: var(--red);
}

.sandbox-frame-wrap {
  min-height: 360px;
  overflow: hidden;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: #fff;
}

.vault-grid {
  max-width: 920px;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: clamp(22px, 4vw, 48px);
  background: #fff;
}

.seo-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-list article {
  padding: 18px;
  box-shadow: none;
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-band {
  max-width: 980px;
}

.faq-band details {
  margin-top: 12px;
  padding: 16px 18px;
  box-shadow: none;
}

.faq-band summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-band p {
  color: var(--muted);
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: #475569;
  background: #0f172a;
}

footer a {
  color: #dbeafe;
}

@media (max-width: 920px) {
  .topbar,
  nav {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .workspace,
  .two-column,
  .content-band {
    grid-template-columns: 1fr;
  }

  .result-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .main-card {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .utility-shell {
    padding-inline: 14px;
  }

  .secret-line,
  footer {
    align-items: stretch;
    flex-direction: column;
  }
}
