:root {
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --bg-start: #f8fafc;
  --bg-end: #eef2ff;
  --bg-spot-left: rgba(79, 70, 229, 0.12);
  --bg-spot-right: rgba(56, 189, 248, 0.08);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --border: rgba(148, 163, 184, 0.28);
  --text: #111827;
  --muted: #6b7280;
  --link: #312e81;
  --button-text: #ffffff;
  --input-border: rgba(148, 163, 184, 0.35);
  --input-focus: rgba(79, 70, 229, 0.45);
  --input-focus-ring: rgba(79, 70, 229, 0.18);
  --danger-bg: rgba(254, 242, 242, 0.95);
  --danger-text: #991b1b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --toggle-bg: rgba(255, 255, 255, 0.78);
  --toggle-border: rgba(148, 163, 184, 0.28);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 56px;
  margin-top: 24px;
}

.brand-logo {
  text-decoration: none;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-main {
  color: var(--text-primary);
}

.brand-accent {
  color: #8b8cff;
}
.dark-mode {
  --accent: #818cf8;
  --accent-dark: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --bg-start: #111827;
  --bg-end: #1f2937;
  --bg-spot-left: rgba(99, 102, 241, 0.16);
  --bg-spot-right: rgba(14, 165, 233, 0.1);
  --surface: rgba(17, 24, 39, 0.82);
  --surface-strong: rgba(31, 41, 55, 0.94);
  --surface-solid: #1f2937;
  --border: rgba(100, 116, 139, 0.35);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --link: #c7d2fe;
  --button-text: #f8fafc;
  --input-border: rgba(100, 116, 139, 0.45);
  --input-focus: rgba(129, 140, 248, 0.55);
  --input-focus-ring: rgba(129, 140, 248, 0.2);
  --danger-bg: rgba(69, 10, 10, 0.75);
  --danger-text: #fecaca;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
  --toggle-bg: rgba(31, 41, 55, 0.9);
  --toggle-border: rgba(100, 116, 139, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
a,
button,
input,
select,
textarea,
.hero-panel,
.form-panel,
.info-card,
.stat-card,
.form-alert,
.theme-toggle {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, var(--bg-spot-left), transparent 28%),
    radial-gradient(circle at top right, var(--bg-spot-right), transparent 24%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
}

.app-body {
  min-height: 100vh;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel,
.form-panel,
.info-card,
.stat-card,
.form-alert {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  padding: 34px;
  border-radius: 32px;
  margin-top: 26px;
}

.hero-content h1,
.page-heading h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.5rem, 4.5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 11ch;
}

.hero-text,
.heading-copy p,
.section-heading p,
.info-card p,
.stat-value {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions,
.form-actions {
  margin-top: 28px;
}

.cta-helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--button-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.3s ease, color 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.28);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.stat-card,
.info-card {
  border-radius: 24px;
  padding: 22px;
}

.stat-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.info-card h2,
.section-heading h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.preview-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.preview-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.preview-copy p,
.trust-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-actions {
  margin-top: 24px;
}

.report-preview-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background: var(--surface-solid);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.preview-report-header,
.preview-client-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.preview-report-header {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 5px solid var(--accent);
}

.preview-report-brand {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.preview-report-title {
  margin-top: 6px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.preview-report-period {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-client-row {
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
}

.preview-client-row strong {
  color: var(--text);
}

.preview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-kpi-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
}

.preview-kpi-card span,
.preview-summary-block span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-kpi-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.preview-kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.preview-summary-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.preview-line {
  height: 9px;
  width: 74%;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--border);
}

.preview-line.wide {
  width: 100%;
}

.preview-line.short {
  width: 52%;
}

.trust-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.trust-points span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.final-cta-trust-card {
  align-self: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--text);
}

.final-trust-section h2 {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-trust-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.final-trust-section li {
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.final-trust-section li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: 2px;
}

.final-cta-trust-card blockquote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.dark-mode .final-cta-trust-card {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
  color: #f8fafc;
}

.dark-mode .final-trust-section h2 {
  color: #c7d2fe;
}

.dark-mode .final-trust-section li {
  color: #d1d5db;
}

.dark-mode .final-cta-trust-card blockquote {
  border-top-color: rgba(199, 210, 254, 0.18);
  color: #f8fafc;
}

.page-heading {
  display: grid;
  gap: 16px;
  margin: 24px 0 18px;
}

.heading-copy {
  max-width: 760px;
}

.back-link {
  color: var(--link);
  font-weight: 700;
}

.form-alert {
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: var(--danger-bg);
  color: var(--danger-text);
}

.report-form {
  display: grid;
  gap: 18px;
}

.form-panel {
  border-radius: 28px;
  padding: 26px;
}

.section-heading {
  margin-bottom: 18px;
}

.field-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-wide,
.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.93rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 16px;
  padding: 14px 15px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--input-focus-ring);
  border-color: var(--input-focus);
}

.field input[type="file"] {
  padding: 12px;
}

.field input[type="color"] {
  padding: 6px;
  min-height: 52px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 920px) {
  .hero-panel,
  .preview-section,
  .info-grid,
  .field-grid.two-column,
  .metric-grid,
  .metric-pair {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .preview-section,
  .form-panel {
    padding: 24px;
  }

  .preview-copy h2 {
    max-width: 14ch;
  }

  .preview-kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 960px);
    padding-top: 82px;
  }
}
