:root {
  --sheet: #eef3f8;
  --sheet-2: #e2eaf2;
  --white: #ffffff;
  --ink: #0f2744;
  --ink-soft: #3d5168;
  --muted: #7a8b9c;
  --cobalt: #1a5fd4;
  --cobalt-soft: rgba(26, 95, 212, 0.12);
  --lime: #2bb87a;
  --lime-soft: rgba(43, 184, 122, 0.12);
  --warn: #e8a317;
  --line: #cdd8e4;
  --grid: rgba(15, 39, 68, 0.06);
  --shadow: 0 16px 44px rgba(15, 39, 68, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1100px;
  --nav-h: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--sheet);
  color: var(--ink);
  line-height: 1.65;
  background-image:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

address {
  font-style: normal;
  color: var(--ink-soft);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(238, 243, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--cobalt);
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.header__end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav--mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav--mobile.open {
  display: flex;
}

.nav--mobile a {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav--mobile a.active,
.nav--mobile a:hover {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

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

.btn--cobalt {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 95, 212, 0.28);
}

.btn--line {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

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

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

/* Hero */
.hero-calc {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--nav-h));
}

.hero-calc__copy {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), transparent 70%);
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1.1rem;
}

.hero-calc__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 1.15rem;
}

.hero-calc__copy h1 em {
  font-style: normal;
  color: var(--cobalt);
}

.hero__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.note-line {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34rem;
  border-left: 3px solid var(--line);
  padding-left: 0.85rem;
}

.hero-calc__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 70% 30%, var(--cobalt-soft), transparent 45%),
    radial-gradient(circle at 20% 80%, var(--lime-soft), transparent 40%),
    var(--sheet-2);
}

/* Worksheet UI */
.worksheet {
  width: min(100%, 380px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: sheet-in 0.8s ease both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.worksheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  color: #fff;
}

.worksheet__bar strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.worksheet__bar span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.7;
}

.worksheet__body {
  padding: 1rem 1.1rem 1.2rem;
}

.ws-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}

.ws-row:last-child {
  border-bottom: 0;
}

.ws-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.ws-row strong {
  font-size: 0.95rem;
}

.ws-amt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.ws-result {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cobalt-soft), var(--lime-soft));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: pulse-soft 2.8s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 95, 212, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(26, 95, 212, 0.08);
  }
}

.ws-result span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.ws-result strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--ink);
}

.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.ws-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--ink {
  background: var(--ink);
  color: #fff;
}

.section--ink .eyebrow {
  color: #8eb6ff;
}

.section--ink .section-title {
  color: #fff;
}

.section--ink .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Column cards */
.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.col-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.col-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cobalt);
}

.col-card:nth-child(2)::before {
  background: var(--lime);
}

.col-card:nth-child(3)::before {
  background: var(--warn);
}

.col-card__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.col-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.col-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Steps rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.rail-step {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line);
}

.rail-step:last-child {
  border-right: 0;
}

.rail-step__n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cobalt);
  margin-bottom: 0.7rem;
}

.rail-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.rail-step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.section--ink .rail {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.section--ink .rail-step {
  border-color: rgba(255, 255, 255, 0.15);
}

.section--ink .rail-step h3 {
  color: #fff;
}

.section--ink .rail-step p {
  color: rgba(255, 255, 255, 0.68);
}

.section--ink .rail-step__n {
  color: #8eb6ff;
}

/* Feature list */
.feat-sheet {
  display: grid;
  gap: 0.65rem;
}

.feat-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.feat-row__id {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cobalt);
}

.feat-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.feat-row p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.list {
  list-style: none;
  margin-top: 1rem;
}

.list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--ink-soft);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cobalt);
}

.panel-soft {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.panel-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}

.panel-line strong {
  color: var(--ink);
}

/* CTA */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.cta-band .btn--line {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

.cta-band .btn--line:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Page hero */
.page-hero {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.info-stack {
  display: grid;
  gap: 0.75rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.info-card a,
.info-card p,
.info-card address {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--sheet);
  color: var(--ink);
}

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

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Legal */
.legal {
  max-width: 720px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.55rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.legal a {
  color: var(--cobalt);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.25rem;
}

.footer .logo {
  color: #fff;
}

.footer .logo span {
  color: #8eb6ff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__note {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer__col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

/* Cookie */
.cookie-pill {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.35s ease;
}

.cookie-pill.show {
  opacity: 1;
  transform: none;
}

.cookie-pill p {
  flex: 1 1 220px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cookie-pill a {
  color: var(--cobalt);
  text-decoration: underline;
}

.cookie-pill__btns {
  display: flex;
  gap: 0.45rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--left {
  transform: translateX(-18px);
}

.reveal--right {
  transform: translateX(18px);
}

.reveal--up {
  transform: translateY(16px);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .nav,
  .header__end .btn--line {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-calc {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-calc__copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 2.5rem;
  }

  .hero-calc__copy h1 {
    max-width: none;
  }

  .col-grid,
  .rail,
  .split,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .rail-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .feat-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cta-band {
    padding: 1.35rem;
  }
}
