:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #18202f;
  --muted: #657184;
  --line: #d9e0ea;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #2563eb;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 18px 48px rgba(23, 32, 48, 0.12);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111d;
  --surface: #141b2a;
  --surface-2: #1d2738;
  --text: #edf2f7;
  --muted: #a7b2c3;
  --line: #2b3648;
  --brand: #2dd4bf;
  --brand-strong: #5eead4;
  --accent: #60a5fa;
  --warn: #f59e0b;
  --danger: #f87171;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.icon-button {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  max-width: 1180px;
  padding: 72px 32px 28px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 720px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.hero-panel {
  align-self: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.metric {
  background: var(--surface);
  padding: 24px;
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.metric span {
  color: var(--muted);
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-weight: 800;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  text-align: center;
}

.trust-strip span {
  background: var(--surface);
  padding: 18px;
}

.workspace,
.legal-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px 32px;
}

.workspace-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.workspace-header h2,
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 0;
}

.workspace-note,
.empty-state,
.legal-page p {
  color: var(--muted);
}

.legal-page {
  max-width: 820px;
}

.legal-page h2 {
  margin-top: 34px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px 32px;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding: 16px;
  }

  .nav-links {
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
