@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --bg: #f3f6fa;
  --bg-strong: #eaf0f8;
  --surface: #ffffff;
  --surface-subtle: #f9fbfe;
  --surface-emphasis: #f2f6fc;
  --ink: #111f33;
  --ink-soft: #4a5a72;
  --line: #d5dfec;
  --line-strong: #bfcde0;
  --primary: #12345b;
  --primary-strong: #0d2744;
  --primary-soft: #dce8fa;
  --accent: #0d8a7b;
  --accent-soft: #d8f2ee;
  --warm: #9f7735;
  --warm-soft: #f6eddc;
  --danger: #b13d37;
  --danger-soft: #fdeeee;
  --ok: #1f7a4a;
  --ok-soft: #e9f7ef;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 26px rgba(13, 39, 68, 0.07);
  --shadow-md: 0 16px 40px rgba(13, 39, 68, 0.11);
  --shadow-lg: 0 24px 56px rgba(13, 39, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, #f7f9fd 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(18, 52, 91, 0.17), transparent 33%),
    radial-gradient(circle at 92% -6%, rgba(13, 138, 123, 0.12), transparent 34%),
    linear-gradient(rgba(40, 63, 91, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 63, 91, 0.07) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    48px 48px,
    48px 48px;
  background-position:
    0 0,
    0 0,
    -1px -1px,
    -1px -1px;
  opacity: 0.42;
}

body::after {
  z-index: -3;
  background:
    radial-gradient(circle at 28% 100%, rgba(159, 119, 53, 0.09), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(26, 100, 182, 0.09), transparent 36%);
}

body.page-auth::before,
body.page-thanks::before {
  opacity: 0.3;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-family: "Source Serif 4", Georgia, serif;
}

p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.container {
  width: min(1160px, calc(100vw - 2.6rem));
  margin: 0 auto;
}

.main-shell {
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 31, 51, 0.1);
  background: rgba(245, 249, 255, 0.88);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    linear-gradient(145deg, #244f80 0%, #18385f 60%),
    linear-gradient(145deg, #0f9686 0%, #0f9686 100%);
  background-blend-mode: screen;
  box-shadow:
    inset 0 -11px 18px rgba(6, 16, 31, 0.34),
    0 4px 10px rgba(10, 28, 49, 0.28);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.link-btn,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  padding: 0.66rem 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn {
  background: linear-gradient(145deg, #1d4675 0%, #12345b 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 52, 91, 0.3);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(18, 52, 91, 0.32);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.secondary:hover {
  background: #fff;
  border-color: #a7b8cf;
}

.link-btn {
  background: rgba(255, 255, 255, 0.74);
  color: #243d5d;
  border: 1px solid var(--line-strong);
}

.link-btn:hover {
  background: #fff;
  border-color: #9eb0c9;
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 86, 146, 0.2);
  background: linear-gradient(145deg, #edf4ff, #e6f0fc);
  color: #1b4772;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.05rem;
}

.hero {
  padding: 4.2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 1.05rem;
  align-items: stretch;
}

.hero-card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.97));
  border: 1px solid rgba(33, 63, 100, 0.12);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 2.2vw, 2.2rem);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -46% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 138, 123, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-card h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  max-width: 20ch;
  margin-bottom: 0.95rem;
}

.hero-card p {
  max-width: 68ch;
}

.hero-actions {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.68rem;
  flex-wrap: wrap;
}

.hero-points {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.76rem;
}

.hero-point {
  padding: 0.9rem 0.95rem;
  border: 1px solid #d3deec;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, #f9fcff 0%, #f4f8fd 100%);
}

.hero-point strong {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--primary);
  font-size: 0.93rem;
}

.kpi-panel {
  display: grid;
  gap: 0.74rem;
}

.kpi-item {
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(20, 56, 95, 0.14);
  background: linear-gradient(160deg, rgba(245, 250, 255, 0.95), rgba(235, 246, 255, 0.93));
  box-shadow: var(--shadow-sm);
}

.kpi-item p:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4a6382;
  margin-bottom: 0.35rem;
}

.kpi-number {
  font-family: "Source Serif 4", serif;
  font-size: 2.05rem;
  color: #143e68;
  margin-bottom: 0.15rem;
}

.section {
  padding: 2.35rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  margin-bottom: 0.45rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.06rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-bottom: 0.46rem;
  font-size: 1.13rem;
}

.operations-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0.9rem;
}

.operations-card,
.surface-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem;
}

.operations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.54rem;
}

.operations-list li {
  padding: 0.56rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--surface-subtle);
  border: 1px solid #d6e2f0;
}

.operations-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary);
  font-size: 0.9rem;
}

.stack-paragraph {
  margin-top: 0.7rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.82rem, 3.65vw, 2.72rem);
}

.page-lead {
  margin-top: 0.62rem;
  max-width: 78ch;
}

.intro-card {
  margin-top: 1.3rem;
  margin-bottom: 1.05rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 57, 94, 0.13);
  background: linear-gradient(168deg, rgba(253, 255, 255, 0.94), rgba(242, 248, 255, 0.95));
  box-shadow: var(--shadow-sm);
}

.info-strip {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.info-pill {
  border-radius: var(--radius-sm);
  border: 1px solid #d8e2ef;
  background: #fff;
  padding: 0.74rem;
}

.info-pill strong {
  display: block;
  color: var(--primary);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.survey-shell {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 2.4rem;
}

.survey-panel,
.form-panel,
.internal-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 50, 82, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.survey-panel {
  position: sticky;
  top: 90px;
  padding: 1rem;
}

.survey-panel strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

.panel-note {
  margin-top: 0.8rem;
  padding: 0.68rem;
  border-radius: var(--radius-xs);
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  color: #46607d;
  font-size: 0.8rem;
}

.progress-bar {
  width: 100%;
  margin: 0.82rem 0 0.58rem;
  height: 9px;
  border-radius: 999px;
  background: #dfe8f4;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e568f, #0d8a7b);
  transition: width 0.24s ease;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.step-item button {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #d6e2f1;
  background: #fbfdff;
  color: #1f3b5d;
  padding: 0.62rem;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.step-item button:hover {
  background: #f2f8ff;
}

.step-item button.active {
  border-color: #2e5e97;
  background: linear-gradient(165deg, #eef5ff, #e6f1ff);
  box-shadow: inset 0 0 0 1px rgba(46, 94, 151, 0.45);
  color: #183e69;
}

.form-panel {
  padding: 1.15rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: riseIn 0.25s ease;
}

.step-header {
  margin-bottom: 0.9rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid #dfe7f4;
}

.step-header h2 {
  font-size: 1.53rem;
  margin-bottom: 0.32rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.field,
.field-full {
  display: grid;
  gap: 0.36rem;
}

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

.field-end {
  align-self: end;
}

label {
  color: #1a395d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cddaea;
  background: #fff;
  font: inherit;
  color: var(--ink);
  padding: 0.63rem 0.72rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b5c7df;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3569a6;
  box-shadow: 0 0 0 3px rgba(53, 105, 166, 0.2);
  background: #fdfefe;
}

.helper {
  font-size: 0.75rem;
  color: #60738c;
}

.form-actions {
  margin-top: 1.14rem;
  padding-top: 0.92rem;
  border-top: 1px solid #dce5f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
}

.actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.message {
  margin-top: 0.84rem;
  border-radius: var(--radius-xs);
  padding: 0.68rem 0.72rem;
  border: 1px solid transparent;
  display: none;
  font-size: 0.84rem;
}

.message.error {
  display: block;
  border-color: #e7b2b0;
  background: var(--danger-soft);
  color: var(--danger);
}

.message.success {
  display: block;
  border-color: #b5dec9;
  background: var(--ok-soft);
  color: var(--ok);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.quick_win {
  background: #e8f7ef;
  color: #1f7547;
  border-color: #b8e0c7;
}

.badge.process_improvement {
  background: #fff2de;
  color: #875314;
  border-color: #f0c78d;
}

.badge.strategic {
  background: #e7f1ff;
  color: #1f5e9a;
  border-color: #b6cceb;
}

.badge.defer {
  background: #f2f4f8;
  color: #4f637d;
  border-color: #d0d7e2;
}

.dashboard-main {
  padding-top: 1.25rem;
  padding-bottom: 2.3rem;
}

.internal-layout {
  margin-top: 0.92rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
  align-items: start;
}

.internal-card {
  padding: 1rem;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.mt-lg {
  margin-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-tile {
  border-radius: var(--radius-sm);
  border: 1px solid #d5e0ef;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
  padding: 0.78rem;
}

.stat-tile span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #557092;
  margin-bottom: 0.25rem;
}

.stat-tile strong {
  display: block;
  font-family: "Source Serif 4", serif;
  font-size: 1.63rem;
  color: #173c63;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
  margin-top: 0.92rem;
}

.table-wrap {
  margin-top: 0.86rem;
  border: 1px solid #d4deeb;
  border-radius: var(--radius-sm);
  overflow: auto;
  background: #fff;
}

.table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  font-size: 0.82rem;
  padding: 0.62rem;
  border-bottom: 1px solid #e0e8f4;
  vertical-align: top;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4fb;
  color: #294b73;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.024em;
}

.table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.table tbody tr:hover {
  background: #f7fbff;
}

.table tbody tr.active {
  background: #eaf3ff;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.kv {
  border-radius: var(--radius-xs);
  border: 1px solid #d6e0ed;
  background: #fbfdff;
  padding: 0.62rem;
}

.kv span {
  display: block;
  color: #5f7490;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.26rem;
}

.kv strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.44;
}

.answer-row {
  margin-bottom: 0.42rem;
}

.answer-value {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: pre-wrap;
}

.detail-subtitle {
  margin: 1rem 0 0.55rem;
  font-size: 1.03rem;
}

.timeline {
  list-style: none;
  margin: 0.72rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.timeline li {
  border-radius: var(--radius-xs);
  border: 1px solid #d7e1ee;
  background: #fff;
  padding: 0.6rem;
}

.timeline time {
  display: block;
  color: #557093;
  font-size: 0.74rem;
}

.timeline-event {
  display: block;
  margin: 0.2rem 0;
}

.timeline-note {
  white-space: pre-wrap;
}

.loading,
.empty {
  text-align: center;
  padding: 0.8rem;
  color: #5b6f87;
}

.auth-wrap {
  width: min(460px, calc(100vw - 2.2rem));
  margin: 4.2rem auto;
}

.auth-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 58, 95, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.96));
  box-shadow: var(--shadow-md);
  padding: 1.3rem;
}

.auth-card h1 {
  margin-bottom: 0.55rem;
}

.auth-lead {
  margin-bottom: 1rem;
}

.auth-actions {
  margin-top: 0.38rem;
}

.thanks-shell {
  padding: 3.4rem 0;
}

.thanks-card {
  max-width: 770px;
  margin: 0 auto;
}

.footer {
  padding: 1.9rem 0 2.25rem;
  text-align: center;
  color: #58708f;
  font-size: 0.81rem;
}

.reveal-up {
  animation: riseIn 0.45s ease both;
}

.hero-card,
.intro-card,
.survey-panel,
.form-panel,
.internal-card,
.auth-card {
  animation: riseIn 0.44s ease both;
}

.kpi-item,
.feature-card,
.operations-card,
.surface-card {
  animation: riseIn 0.45s ease both;
}

.kpi-item:nth-child(1),
.feature-card:nth-child(1) {
  animation-delay: 0.06s;
}

.kpi-item:nth-child(2),
.feature-card:nth-child(2) {
  animation-delay: 0.11s;
}

.kpi-item:nth-child(3),
.feature-card:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .operations-grid,
  .internal-layout {
    grid-template-columns: 1fr;
  }

  .survey-shell {
    grid-template-columns: 290px 1fr;
  }

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

@media (max-width: 980px) {
  .survey-shell {
    grid-template-columns: 1fr;
  }

  .survey-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(1160px, calc(100vw - 1.3rem));
  }

  .header-inner {
    min-height: 68px;
  }

  .header-links {
    gap: 0.5rem;
  }

  .link-btn,
  .btn {
    padding: 0.6rem 0.95rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .info-strip,
  .feature-grid,
  .form-grid,
  .filter-grid,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .actions-group {
    width: 100%;
  }

  .actions-group .btn.secondary {
    flex: 1;
  }

  #submitButton {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 700px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
