:root {
  --bg: #eff8f5;
  --bg-deep: #d8efe7;
  --panel: rgba(252, 255, 254, 0.9);
  --panel-strong: #f8fffc;
  --line: rgba(15, 48, 79, 0.12);
  --line-strong: rgba(15, 48, 79, 0.2);
  --text: #17324a;
  --muted: #587189;
  --navy: #143a5a;
  --navy-deep: #0d2b44;
  --mint: #77d7c1;
  --mint-soft: #dff8f0;
  --coral: #ff8d78;
  --coral-deep: #ef6d58;
  --shadow: 0 24px 60px rgba(20, 58, 90, 0.12);
  --shadow-soft: 0 14px 34px rgba(20, 58, 90, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(119, 215, 193, 0.42), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 141, 120, 0.22), transparent 22%),
    linear-gradient(180deg, #f8fffd 0%, var(--bg) 56%, #e6f7f0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%);
  opacity: 0.75;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: min(1320px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(248, 255, 252, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand-lockup,
.topbar-meta,
.hero-actions,
.status-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-mark,
.section-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #24567c);
  color: #f7fffd;
  font-family: "Be Vietnam Pro", "Nunito", sans-serif;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-kicker,
.workspace-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.topbar strong {
  font-family: "Be Vietnam Pro", "Nunito", sans-serif;
  font-size: 1.05rem;
}

.meta-pill,
.hero-badge,
.table-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.meta-pill {
  color: var(--navy);
  background: rgba(119, 215, 193, 0.2);
}

.meta-pill-mint {
  background: rgba(119, 215, 193, 0.24);
}

.meta-pill-coral {
  background: rgba(255, 141, 120, 0.2);
  color: #8d3f33;
}

.topbar-link {
  font-weight: 800;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(119, 215, 193, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 255, 252, 0.95)),
    var(--panel);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 141, 120, 0.18), transparent 70%);
}

.hero-card-stack {
  position: relative;
  min-height: 100%;
}

.hero-card {
  padding: 24px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 58, 90, 0.95), rgba(30, 88, 126, 0.92)),
    var(--navy);
  color: #f4fffc;
}

.hero-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.floating-note {
  position: absolute;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 58, 90, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.floating-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Be Vietnam Pro", "Nunito", sans-serif;
  font-size: 0.98rem;
}

.floating-note span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.floating-note-top {
  top: 18px;
  right: -18px;
}

.floating-note-bottom {
  bottom: 22px;
  left: -12px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--navy);
}

h1,
h2 {
  margin: 0;
  font-family: "Be Vietnam Pro", "Nunito", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  max-width: 12ch;
}

h2 {
  font-size: 1.45rem;
}

.hero-text,
.panel-head p,
.status-label,
.health-link,
.section-heading p,
.workspace-intro p {
  color: var(--muted);
}

.hero-badge {
  margin-bottom: 18px;
  color: var(--navy);
  background: rgba(119, 215, 193, 0.22);
}

.hero-text {
  max-width: 58ch;
  margin-top: 16px;
  font-size: 1.06rem;
  line-height: 1.75;
}

.status-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 255, 252, 0.72);
}

.status-text {
  margin: 10px 0 16px;
  font-family: "Be Vietnam Pro", "Nunito", sans-serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.health-link {
  text-decoration: none;
  color: var(--navy);
}

.app-form {
  display: grid;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.workspace-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 255, 252, 0.98)),
    var(--panel-strong);
}

.workspace-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 0 6px;
}

.workspace-intro h2 {
  max-width: 16ch;
}

.workspace-intro p {
  margin: 0;
  max-width: 56ch;
  line-height: 1.7;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stack {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: start;
  gap: 14px;
}

.section-heading p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.section-step {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint), #b7f0e1);
  color: var(--navy-deep);
}

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

.field span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 58, 90, 0.12);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(20, 58, 90, 0.34);
  box-shadow: 0 0 0 4px rgba(119, 215, 193, 0.22);
}

textarea {
  resize: vertical;
}

.soft-area {
  background: linear-gradient(180deg, #fbfffd, #f2fbf7);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fcfffe;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

th {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(119, 215, 193, 0.18), rgba(255, 255, 255, 0.9));
  text-align: left;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

td input {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 100px;
  box-shadow: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head p {
  margin: 0;
}

.table-tag {
  color: #8d3f33;
  background: rgba(255, 141, 120, 0.16);
}

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

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
  box-shadow: var(--shadow-soft);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fffaf8;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--navy), #2a638e);
  color: #eefcff;
}

.interpret-box {
  min-height: 340px;
}

.workspace-panel.grid-two > .stack,
.workspace-panel .calc-grid {
  padding: 18px;
  border: 1px solid rgba(20, 58, 90, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-caption {
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .hero,
  .grid-two,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .workspace-intro,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 18px;
  }

  .topbar {
    top: 10px;
    width: min(100% - 20px, 1320px);
    margin-top: 10px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 24px;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
}
