/* =========================================================
   Paham Web — Frontend & Backend
   Design tokens
   ========================================================= */
:root {
  --paper: #f6f0e4;
  --paper-soft: #fbf7ee;
  --paper-deep: #eee5d4;
  --ink: #17251d;
  --muted: #5f6d64;
  --muted-light: #a8bcae;
  --orange: #ef6a3d;
  --orange-deep: #c84e26;
  --orange-soft: #ffe5d8;
  --green: #176a50;
  --green-deep: #123b2c;
  --green-dark: #0d2e23;
  --green-soft: #dcece2;
  --lime: #dff06d;
  --lime-soft: #edf5bf;
  --yellow: #f1c653;
  --blue: #4c7f96;
  --blue-soft: #dbeaf0;
  --line: rgba(23, 37, 29, 0.14);
  --line-strong: rgba(23, 37, 29, 0.24);
  --white: #fffdf8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 10px 30px rgba(23, 37, 29, 0.07);
  --shadow-md: 0 24px 70px rgba(23, 37, 29, 0.12);
  --shadow-lg: 0 34px 100px rgba(13, 46, 35, 0.2);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--lime);
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

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

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

button {
  color: inherit;
}

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 2000;
  padding: 12px 18px;
  color: var(--paper-soft);
  background: var(--ink);
  border-radius: 10px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Reading progress */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1500;
  pointer-events: none;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 48%, var(--lime) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 240, 228, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(250, 246, 237, 0.93);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 37, 29, 0.06);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-soft);
  transform: rotate(-8deg);
  transition: transform 300ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.04);
}

.brand-mark i:first-child {
  background: var(--orange);
}

.brand-mark i:last-child {
  background: var(--green);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--paper-soft);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-name span {
  color: var(--green);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 31px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.89rem;
  font-weight: 600;
  color: #33453a;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: var(--paper-soft);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-cta .icon {
  width: 15px;
  height: 15px;
}

.nav-cta:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 21px;
  height: 21px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  padding: 10px 28px 26px;
  background: rgba(250, 246, 237, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(23, 37, 29, 0.1);
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-nav-cta {
  margin-top: 16px;
  padding: 13px 18px;
  color: var(--paper-soft);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  text-align: center;
}

/* =========================================================
   Shared buttons & section headings
   ========================================================= */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button .icon {
  width: 17px;
  height: 17px;
}

.button--primary {
  color: var(--paper-soft);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 9px 24px rgba(239, 106, 61, 0.23);
}

.button--primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: var(--paper-soft);
  border-color: var(--ink);
}

.play-dot {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.play-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  transform: translate(-40%, -50%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 106, 61, 0.14);
}

.section {
  position: relative;
  padding: clamp(80px, 9vw, 124px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(280px, 0.87fr);
  align-items: end;
  gap: clamp(36px, 6vw, 88px);
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-tag span {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-soft);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.64rem;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  line-height: 0.98;
}

.section-lead {
  max-width: 475px;
  justify-self: end;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.section-head--light h2 {
  color: var(--paper-soft);
}

.section-head--light .section-lead {
  color: #c6d5cb;
}

.section-head--light .section-tag {
  color: var(--lime);
}

.section-head--light .section-tag span {
  color: var(--green-deep);
  background: var(--lime);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(54px, 7vw, 88px) 0 clamp(76px, 8vw, 108px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 14%, rgba(223, 240, 109, 0.23), transparent 32%),
    radial-gradient(circle at 9% 78%, rgba(239, 106, 61, 0.11), transparent 24%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23, 37, 29, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  width: 610px;
  height: 610px;
  top: -290px;
  right: -170px;
}

.hero-orbit--two {
  width: 280px;
  height: 280px;
  bottom: -180px;
  left: -90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 5.2vw, 76px);
}

.hero-copy {
  max-width: 650px;
  animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(3.3rem, 6.3vw, 5.65rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  margin-right: 0.09em;
  color: var(--green);
  font-weight: 600;
  font-style: italic;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -3%;
  bottom: 4%;
  height: 19%;
  background: var(--lime);
  border-radius: 4px;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: #495b50;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 27px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #657468;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-meta > span:not(.meta-separator) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.meta-separator {
  width: 3px;
  height: 3px;
  display: inline-block;
  border-radius: 50%;
  background: #a3aea5;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero visual */
.hero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 570px;
  justify-self: end;
  padding: 20px 20px 19px;
  overflow: hidden;
  color: var(--paper-soft);
  background:
    radial-gradient(circle at 107% 9%, rgba(223, 240, 109, 0.23), transparent 34%),
    linear-gradient(145deg, #194b38 0%, var(--green-deep) 58%, #0d2e23 100%);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  animation: hero-rise 780ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  top: -170px;
  right: -150px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  top: -118px;
  right: -98px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.visual-glow {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -30px;
  bottom: 82px;
  border-radius: 50%;
  background: rgba(239, 106, 61, 0.2);
  filter: blur(55px);
  pointer-events: none;
}

.visual-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 4px;
  color: #d4e1d7;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(223, 240, 109, 0.14);
  animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(223, 240, 109, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(223, 240, 109, 0.02); }
}

.live-tag {
  margin-left: auto;
  padding: 3px 8px;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.browser-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 20px);
  margin: 19px auto 0;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(5, 25, 17, 0.24);
  transform: rotate(-1.15deg);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-visual:hover .browser-card {
  transform: rotate(-0.4deg) translateY(-2px);
}

.browser-chrome {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #e9e1d2;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(23, 37, 29, 0.1);
}

.browser-dots {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.browser-dots i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #b4ab9b;
}

.browser-dots i:first-child { background: var(--orange); }
.browser-dots i:nth-child(2) { background: var(--yellow); }
.browser-dots i:nth-child(3) { background: #7fac8e; }

.browser-url {
  flex: 1;
  max-width: 180px;
  margin: 0 auto;
  padding: 2px 11px;
  color: #6d776f;
  background: rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  font-size: 0.58rem;
  text-align: center;
}

.browser-more {
  color: #7c857e;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.shop-nav {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 17px;
  border-bottom: 1px solid rgba(23, 37, 29, 0.08);
  font-size: 0.55rem;
  font-weight: 600;
  color: #6b776e;
}

.shop-nav strong {
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.shop-cart {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
}

.shop-content {
  min-height: 168px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 15px 19px 20px;
}

.shop-copy {
  position: relative;
  z-index: 2;
  flex: 1;
}

.shop-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--orange-deep);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-copy h2 {
  margin-bottom: 5px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.shop-copy p {
  margin-bottom: 6px;
  color: #6f7a72;
  font-size: 0.62rem;
  line-height: 1.45;
}

.shop-price {
  margin-bottom: 11px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-price span {
  color: #89938b;
  font-size: 0.55rem;
  font-weight: 500;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  color: var(--paper-soft);
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(23, 37, 29, 0.18);
}

.coffee-scene {
  position: relative;
  align-self: stretch;
  width: 42%;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(145deg, #f4d9bf, #e7bd98);
  border-radius: 14px 36% 14px 14px;
  overflow: hidden;
}

.coffee-scene::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  top: -43px;
  right: -35px;
  border: 1px solid rgba(23, 37, 29, 0.18);
  border-radius: 50%;
}

.coffee-cup {
  position: relative;
  z-index: 2;
  width: 86%;
  max-width: 125px;
  height: auto;
  transform: translateY(7px);
  filter: drop-shadow(0 8px 12px rgba(86, 45, 23, 0.15));
}

.steam {
  position: absolute;
  z-index: 3;
  top: 8px;
  width: 18px;
  height: 30px;
  border-left: 1.5px solid rgba(23, 37, 29, 0.28);
  border-radius: 50%;
  transform: rotate(15deg);
  animation: steam-float 3.4s ease-in-out infinite;
}

.steam--1 { left: 38%; }
.steam--2 { left: 50%; top: 5px; animation-delay: 0.8s; }
.steam--3 { left: 63%; animation-delay: 1.5s; }

@keyframes steam-float {
  0%, 100% { opacity: 0.2; transform: translateY(3px) rotate(12deg); }
  50% { opacity: 0.6; transform: translateY(-4px) rotate(-4deg); }
}

.visual-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid rgba(23, 37, 29, 0.22);
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(23, 37, 29, 0.1);
}

.visual-label small {
  color: rgba(23, 37, 29, 0.65);
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.visual-label--front {
  right: 12px;
  bottom: -15px;
  background: var(--orange-soft);
  transform: rotate(1.3deg);
}

.api-connector {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 20px 16px;
  color: #b7cbbd;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(223, 240, 109, 0.5) 0 4px, transparent 4px 8px);
}

.connector-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.connector-pill .icon {
  width: 11px;
  height: 11px;
}

.connector-note {
  font-size: 0.52rem;
  letter-spacing: 0.02em;
}

.server-card {
  position: relative;
  width: calc(100% - 50px);
  margin-left: 50px;
  padding: 13px 16px 15px;
  background: rgba(8, 28, 20, 0.7);
  border: 1px solid rgba(223, 240, 109, 0.2);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(3, 16, 10, 0.22);
  transform: rotate(1deg);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-visual:hover .server-card {
  transform: rotate(0.3deg) translateY(-2px);
}

.server-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  color: #c9d8ce;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.56rem;
  letter-spacing: 0.03em;
}

.server-light {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(223, 240, 109, 0.65);
}

.server-code {
  margin-left: auto;
  color: var(--lime);
  font-family: "DM Sans", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}

.terminal-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  color: #a9bfb1;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.52rem;
  line-height: 1.6;
}

.terminal-lines span {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.terminal-lines i {
  color: #648070;
  font-style: normal;
}

.terminal-lines b {
  color: var(--lime);
}

.visual-label--back {
  right: 12px;
  bottom: -13px;
  color: var(--paper-soft);
  background: var(--green);
  border-color: rgba(223, 240, 109, 0.35);
  transform: rotate(-1.2deg);
}

.visual-label--back small {
  color: #cde0d3;
}

.visual-footnote {
  margin-top: 24px;
  color: #9eb5a7;
  font-size: 0.6rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Personal note */
.love-note {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 21px;
  margin-top: 31px;
  padding: 22px 28px;
  overflow: hidden;
  color: #4d2f24;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(112deg, #fff8f2 0%, #ffe9dd 54%, #ffd9c9 100%);
  border: 1px solid rgba(200, 78, 38, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(159, 77, 45, 0.08);
}

.love-note::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  top: -122px;
  right: 142px;
  border: 1px solid rgba(200, 78, 38, 0.17);
  border-radius: 50%;
}

.love-note::after {
  content: "♥";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 106px;
  color: rgba(239, 106, 61, 0.07);
  font-family: var(--font-display);
  font-size: 8.2rem;
  line-height: 1;
  transform: translateY(-50%) rotate(9deg);
}

.love-note-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 7px 17px rgba(200, 78, 38, 0.23);
}

.love-note-icon .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke-width: 1.2;
}

.love-note-copy {
  position: relative;
  z-index: 1;
}

.love-note-kicker {
  margin-bottom: 4px;
  color: var(--orange-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.love-note-text {
  max-width: 870px;
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 2.05vw, 1.8rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.005em;
}

.love-note-text strong {
  color: var(--orange-deep);
  font-weight: 700;
  white-space: nowrap;
}

.love-note-stamp {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: end;
  color: var(--orange-deep);
  border: 1px dashed rgba(200, 78, 38, 0.48);
  border-radius: 50%;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 0.82;
  text-align: center;
  transform: rotate(7deg);
}

.love-note-stamp b {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1;
}

.footer-heart {
  color: var(--orange);
}

/* =========================================================
   Section 01 — Dasar
   ========================================================= */
.section--dasar {
  background:
    radial-gradient(circle at 100% 20%, rgba(239, 106, 61, 0.06), transparent 26%),
    var(--paper);
}

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

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: clamp(25px, 3.4vw, 39px);
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.role-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  right: -55px;
  border: 1px solid rgba(23, 37, 29, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.role-card--front {
  background:
    radial-gradient(circle at 94% 4%, rgba(239, 106, 61, 0.15), transparent 32%),
    #fff8f1;
}

.role-card--back {
  background:
    radial-gradient(circle at 94% 4%, rgba(23, 106, 80, 0.15), transparent 32%),
    #f1f8f3;
}

.role-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 31px;
}

.role-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 37, 29, 0.17);
  border-radius: 15px;
}

.role-icon .icon {
  width: 25px;
  height: 25px;
}

.role-card--front .role-icon {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.role-card--back .role-icon {
  color: var(--green);
  background: var(--green-soft);
}

.role-number {
  color: rgba(23, 37, 29, 0.22);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.role-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.role-card h3 {
  margin-bottom: 13px;
  font-size: clamp(2.3rem, 3.7vw, 3.2rem);
  line-height: 0.95;
}

.role-statement {
  max-width: 430px;
  margin-bottom: 13px;
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.role-copy {
  max-width: 460px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.tag-list li {
  padding: 5px 10px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.role-footer {
  display: flex;
  gap: 27px;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.role-footer div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.role-footer span {
  color: #7b877e;
  font-size: 0.63rem;
  font-weight: 500;
}

.role-footer strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.api-strip {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  align-items: center;
  gap: 21px;
  margin-top: 20px;
  padding: 24px 27px;
  background: var(--lime);
  border: 1px solid rgba(23, 37, 29, 0.2);
  border-radius: var(--radius-md);
}

.api-strip-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.5);
  border: 1px solid rgba(23, 37, 29, 0.16);
  border-radius: 50%;
}

.api-strip-icon .icon {
  width: 24px;
  height: 24px;
}

.api-strip-copy .role-kicker {
  margin-bottom: 3px;
  color: rgba(23, 37, 29, 0.56);
}

.api-strip-copy h3 {
  margin-bottom: 3px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.api-strip-copy p:last-child {
  max-width: 650px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.api-strip-copy span {
  font-weight: 700;
}

.api-mini-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 24px;
  border-left: 1px solid rgba(23, 37, 29, 0.18);
}

.api-mini-flow span {
  padding: 6px 10px;
  background: rgba(255, 253, 248, 0.5);
  border: 1px solid rgba(23, 37, 29, 0.14);
  border-radius: 7px;
  font-size: 0.63rem;
  font-weight: 700;
  white-space: nowrap;
}

.api-mini-flow span.is-api {
  background: var(--green);
  color: var(--paper-soft);
  border-color: var(--green);
}

.api-mini-flow .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   Section 02 — Analogy
   ========================================================= */
.section--analogy {
  overflow: hidden;
  color: var(--paper-soft);
  background:
    radial-gradient(circle at 88% 8%, rgba(223, 240, 109, 0.1), transparent 27%),
    radial-gradient(circle at 2% 90%, rgba(239, 106, 61, 0.12), transparent 28%),
    var(--green-deep);
}

.analogy-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image: radial-gradient(rgba(223, 240, 109, 0.42) 0.65px, transparent 0.65px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.analogy-flow {
  display: flex;
  align-items: stretch;
  gap: 3px;
}

.analogy-card {
  position: relative;
  flex: 1 1 0;
  min-height: 270px;
  padding: 24px 21px 23px;
  background: rgba(255, 253, 248, 0.055);
  border: 1px solid rgba(255, 253, 248, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.analogy-card:hover {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(223, 240, 109, 0.4);
  transform: translateY(-4px);
}

.analogy-index {
  position: absolute;
  top: 17px;
  right: 19px;
  color: rgba(255, 253, 248, 0.3);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.analogy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 31px;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 50%;
}

.analogy-card:nth-of-type(2) .analogy-icon,
.analogy-card:nth-of-type(4) .analogy-icon {
  background: var(--orange-soft);
}

.analogy-icon .icon {
  width: 22px;
  height: 22px;
}

.analogy-place {
  margin-bottom: 4px;
  color: #b8cbc0;
  font-size: 0.69rem;
  font-weight: 600;
}

.analogy-card h3 {
  margin-bottom: 9px;
  color: var(--paper-soft);
  font-size: 1.75rem;
  line-height: 1;
}

.analogy-card > p:last-child {
  color: #b5c8bd;
  font-size: 0.81rem;
  line-height: 1.65;
}

.flow-arrow {
  width: 27px;
  display: grid;
  place-items: center;
  color: var(--lime);
  opacity: 0.65;
}

.flow-arrow .icon {
  width: 16px;
  height: 16px;
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 272px;
  gap: 26px;
  align-items: start;
  margin-top: 22px;
  padding: 28px 29px;
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(5, 27, 18, 0.2);
}

.story-quote {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;
}

.story-quote .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 0.8;
}

.story-label {
  margin-bottom: 5px;
  color: var(--orange-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-main {
  max-width: 680px;
  margin-bottom: 11px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.story-main strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(239, 106, 61, 0.38);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.story-web {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.story-web span {
  margin: 0 3px;
  color: var(--orange);
  font-weight: 700;
}

.story-web strong {
  color: var(--green);
}

.story-note {
  display: flex;
  gap: 10px;
  padding: 15px;
  color: #365446;
  background: var(--green-soft);
  border-radius: 13px;
}

.story-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green);
}

.story-note p {
  font-size: 0.69rem;
  line-height: 1.6;
}

/* =========================================================
   Section 03 — Simulation
   ========================================================= */
.section--simulation {
  background:
    radial-gradient(circle at 7% 10%, rgba(223, 240, 109, 0.25), transparent 19%),
    var(--paper-deep);
}

.sim-shell {
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid rgba(23, 37, 29, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sim-topbar {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: #a9bfb1;
  background: var(--green-dark);
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

.sim-window-dots {
  display: flex;
  gap: 5px;
}

.sim-window-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #4e665a;
}

.sim-window-dots i:first-child { background: var(--orange); }
.sim-window-dots i:nth-child(2) { background: var(--yellow); }
.sim-window-dots i:nth-child(3) { background: #86ad91; }

.sim-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  color: #cad9cf;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 600;
}

.sim-status i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: #8aa094;
  transition: background 160ms ease;
}

.sim-status.is-running i {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(241, 198, 83, 0.6);
  animation: status-pulse 1s ease-in-out infinite;
}

.sim-status.is-done i {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(223, 240, 109, 0.6);
}

.sim-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.sim-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(25px, 3.5vw, 45px);
  background:
    radial-gradient(circle at 8% 87%, rgba(239, 106, 61, 0.1), transparent 27%),
    #efe5d5;
  border-right: 1px solid var(--line);
}

.demo-note {
  width: fit-content;
  margin: 0 auto 15px;
  padding: 5px 10px;
  color: #7c6d5e;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid rgba(23, 37, 29, 0.1);
  border-radius: 999px;
  font-size: 0.56rem;
}

.phone-card {
  width: min(100%, 345px);
  margin: 0 auto;
  padding: 22px;
  background: var(--paper-soft);
  border: 1px solid rgba(23, 37, 29, 0.15);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(78, 54, 34, 0.12);
}

.phone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.phone-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--orange-deep);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-head h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 700;
}

.open-badge i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: var(--green);
}

.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.order-art {
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #f5dcc3, #ecc4a3);
  border-radius: 13px;
}

.order-art svg {
  width: 45px;
  height: 45px;
  transform: translateY(2px);
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.order-info strong {
  font-size: 0.8rem;
  line-height: 1.3;
}

.order-info span {
  color: var(--muted);
  font-size: 0.64rem;
}

.qty {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.63rem;
  font-weight: 700;
}

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
}

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

.order-summary strong {
  font-size: 1.05rem;
}

.order-button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--paper-soft);
  background: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.order-button:hover:not(:disabled) {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  transform: translateY(-1px);
}

.order-button:disabled {
  cursor: wait;
}

.order-button.is-complete {
  background: var(--green);
  border-color: var(--green);
}

.order-button .icon {
  width: 15px;
  height: 15px;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 253, 248, 0.35);
  border-top-color: var(--paper-soft);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.order-button.is-loading .button-spinner {
  display: block;
}

.order-button.is-loading .icon {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.order-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  color: #1b4a36;
  background: var(--green-soft);
  border: 1px solid rgba(23, 106, 80, 0.2);
  border-radius: 11px;
}

.order-success.is-visible {
  display: flex;
  animation: success-pop 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes success-pop {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper-soft);
  background: var(--green);
  border-radius: 50%;
}

.success-icon .icon {
  width: 15px;
  height: 15px;
}

.order-success strong {
  display: block;
  font-size: 0.7rem;
}

.order-success p {
  color: #4e7563;
  font-size: 0.58rem;
}

.order-success b {
  color: var(--green);
}

.sim-hint {
  margin-top: 14px;
  color: #7d6b5a;
  font-size: 0.64rem;
  text-align: center;
}

.sim-hint span {
  display: inline-block;
  margin-right: 4px;
  color: var(--orange-deep);
  font-size: 0.9rem;
}

/* Backend log panel */
.backend-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 3.4vw, 41px);
  color: var(--paper-soft);
  background:
    radial-gradient(circle at 102% 7%, rgba(223, 240, 109, 0.09), transparent 27%),
    var(--green-deep);
}

.backend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.backend-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.backend-head h3 {
  color: var(--paper-soft);
  font-size: 1.45rem;
  line-height: 1.1;
}

.backend-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: #bdd0c3;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: "Consolas", monospace;
  font-size: 0.5rem;
}

.backend-live i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: var(--lime);
}

.sim-steps {
  flex: 1;
}

.sim-step {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  opacity: 0.48;
  transition: opacity 260ms ease, background 260ms ease, padding 260ms ease;
}

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

.sim-step.is-active {
  padding-inline: 10px;
  background: rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  opacity: 1;
}

.sim-step.is-done {
  opacity: 0.7;
}

.sim-step.is-done.is-active {
  opacity: 1;
}

.step-marker {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: #9bb2a3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 0.53rem;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.sim-step.is-active .step-marker {
  color: var(--green-deep);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(223, 240, 109, 0.12);
}

.sim-step.is-done .step-marker {
  color: var(--green-deep);
  background: #a7c3b2;
  border-color: #a7c3b2;
}

.sim-step.is-active.is-done .step-marker {
  background: var(--lime);
  border-color: var(--lime);
}

.step-layer {
  display: block;
  margin-bottom: 1px;
  color: var(--orange-soft);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sim-step:nth-child(2) .step-layer,
.sim-step:nth-child(5) .step-layer {
  color: var(--yellow);
}

.sim-step:nth-child(3) .step-layer {
  color: #a5d6b8;
}

.sim-step:nth-child(4) .step-layer {
  color: #9fcddd;
}

.sim-step strong {
  display: block;
  color: #edf4ee;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.sim-step p {
  color: #a7bbae;
  font-size: 0.67rem;
  line-height: 1.5;
}

.sim-step code {
  padding: 1px 4px;
  color: #c9dbc4;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-family: "Consolas", monospace;
  font-size: 0.6rem;
}

.step-state {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  color: var(--lime);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 220ms ease, transform 220ms ease;
}

.step-state .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.sim-step.is-done .step-state {
  opacity: 1;
  transform: scale(1);
}

.backend-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.backend-time {
  color: #93a99b;
  font-family: "Consolas", monospace;
  font-size: 0.53rem;
}

.backend-terminal {
  display: flex;
  gap: 4px;
}

.backend-terminal i {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: #577064;
}

/* =========================================================
   Section 04 — Comparison
   ========================================================= */
.section--compare {
  background:
    radial-gradient(circle at 0% 4%, rgba(23, 106, 80, 0.07), transparent 22%),
    var(--paper-soft);
}

.compare-wrap {
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 17px 23px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  padding-top: 15px;
  padding-bottom: 15px;
  background: #efe7d8;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0;
}

.compare-table thead th:first-child {
  width: 25%;
  color: #9db0a3;
  background: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.compare-table thead th.col-front {
  background: var(--orange-soft);
}

.compare-table thead th.col-back {
  background: var(--green-soft);
}

.compare-table thead th span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.compare-table thead th .icon {
  width: 18px;
  height: 18px;
}

.compare-table thead th.col-front .icon {
  color: var(--orange-deep);
}

.compare-table thead th.col-back .icon {
  color: var(--green);
}

.compare-table thead th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table tbody th {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.compare-table tbody td {
  color: #526158;
  font-size: 0.85rem;
  line-height: 1.55;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover td {
  background: rgba(239, 229, 212, 0.26);
}

.remember-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
  padding: 17px 22px;
  background: var(--lime-soft);
  border: 1px solid rgba(23, 37, 29, 0.13);
  border-radius: 16px;
}

.remember-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper-soft);
  background: var(--green);
  border-radius: 50%;
}

.remember-icon .icon {
  width: 17px;
  height: 17px;
}

.remember-strip p {
  font-size: 0.83rem;
  line-height: 1.6;
}

.remember-strip em {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

/* =========================================================
   Section 05 — Examples
   ========================================================= */
.section--examples {
  background:
    radial-gradient(circle at 100% 90%, rgba(223, 240, 109, 0.24), transparent 23%),
    #e8eee2;
}

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

.example-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--paper-soft);
  border: 1px solid rgba(23, 37, 29, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(23, 37, 29, 0.045);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.example-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 13px;
}

.example-card:nth-child(2) .example-icon {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.example-card:nth-child(3) .example-icon {
  color: var(--ink);
  background: var(--lime);
}

.example-icon .icon {
  width: 21px;
  height: 21px;
}

.example-label {
  color: #8a958d;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.example-card h3 {
  margin-bottom: 4px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.example-intro {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.example-split {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.example-side {
  padding: 12px 13px;
  border-radius: 10px;
}

.example-side--front {
  background: #fff5ee;
  border: 1px solid rgba(239, 106, 61, 0.15);
}

.example-side--back {
  background: #edf6f0;
  border: 1px solid rgba(23, 106, 80, 0.14);
}

.example-side span {
  display: block;
  margin-bottom: 3px;
  color: var(--orange-deep);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.example-side--back span {
  color: var(--green);
}

.example-side p {
  color: #4f5e55;
  font-size: 0.75rem;
  line-height: 1.55;
}

.example-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
  color: #738077;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  line-height: 1.4;
}

.example-foot .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* =========================================================
   Section 06 — FAQ
   ========================================================= */
.section--faq {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(45px, 7vw, 104px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  margin-bottom: 21px;
}

.faq-intro .section-lead {
  max-width: 390px;
  justify-self: auto;
}

.faq-doodle {
  position: relative;
  width: 118px;
  height: 98px;
  margin-top: 39px;
}

.doodle-circle {
  position: absolute;
  inset: 4px 14px 4px 0;
  border: 1.5px dashed rgba(23, 37, 29, 0.3);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.faq-doodle .icon {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 43px;
  height: 43px;
  color: var(--orange);
  transform: rotate(10deg);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 23px 2px;
  font-size: clamp(0.98rem, 1.3vw, 1.09rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.faq-plus .icon {
  width: 15px;
  height: 15px;
  transition: transform 240ms ease;
}

.faq-item summary:hover .faq-plus {
  color: var(--paper-soft);
  background: var(--green);
  border-color: var(--green);
}

.faq-item[open] .faq-plus {
  color: var(--paper-soft);
  background: var(--orange);
  border-color: var(--orange);
}

.faq-item[open] .faq-plus .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 54px 24px 2px;
}

.faq-answer p {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.75;
}

/* =========================================================
   Section 07 — Quiz
   ========================================================= */
.section--quiz {
  overflow: hidden;
  color: var(--paper-soft);
  background:
    radial-gradient(circle at 0% 12%, rgba(223, 240, 109, 0.1), transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(239, 106, 61, 0.11), transparent 26%),
    var(--green-deep);
}

.section--quiz::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: -260px;
  bottom: -330px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 94px);
  align-items: center;
}

.section-tag--light {
  color: var(--lime);
}

.section-tag--light span {
  color: var(--green-deep);
  background: var(--lime);
}

.quiz-intro h2 {
  margin-bottom: 22px;
  color: var(--paper-soft);
  font-size: clamp(3rem, 5.4vw, 4.65rem);
}

.quiz-intro .section-lead {
  max-width: 410px;
  justify-self: auto;
  color: #b9cbc0;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-meta span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #9eb4a6;
  font-size: 0.66rem;
}

.quiz-meta strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.quiz-card {
  min-height: 480px;
  padding: clamp(25px, 3.5vw, 37px);
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(2, 17, 11, 0.25);
}

.quiz-progress-wrap {
  margin-bottom: 27px;
}

.quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: #7b877f;
  font-size: 0.64rem;
  font-weight: 600;
}

.quiz-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.quiz-bars i {
  height: 4px;
  display: block;
  background: #e7dfd0;
  border-radius: 999px;
  transition: background 260ms ease;
}

.quiz-bars i.is-done {
  background: var(--green);
}

.quiz-bars i.is-current {
  background: var(--orange);
}

.quiz-kicker {
  margin-bottom: 7px;
  color: var(--orange-deep);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-card h3 {
  margin-bottom: 21px;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.9vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-noscript {
  padding: 12px 14px;
  color: #7a3c25;
  background: var(--orange-soft);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.quiz-option:hover:not(:disabled) {
  background: #f4eee2;
  border-color: var(--ink);
  transform: translateX(2px);
}

.quiz-option:disabled {
  cursor: default;
}

.option-letter {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #758178;
  background: #f0e9dd;
  border-radius: 6px;
  font-size: 0.59rem;
  font-weight: 800;
}

.quiz-option.is-correct {
  color: #164c37;
  background: var(--green-soft);
  border-color: var(--green);
}

.quiz-option.is-correct .option-letter {
  color: var(--paper-soft);
  background: var(--green);
}

.quiz-option.is-wrong {
  color: #84391f;
  background: var(--orange-soft);
  border-color: var(--orange);
}

.quiz-option.is-wrong .option-letter {
  color: var(--paper-soft);
  background: var(--orange);
}

.quiz-option.is-dimmed {
  opacity: 0.48;
}

.quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.73rem;
  line-height: 1.55;
}

.quiz-feedback.is-correct {
  color: #1b553d;
  background: var(--green-soft);
}

.quiz-feedback.is-wrong {
  color: #7a3c25;
  background: var(--orange-soft);
}

.feedback-icon {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: currentColor;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.button--quiz {
  min-height: 43px;
  padding: 10px 17px;
  color: var(--paper-soft);
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 9px;
  font-size: 0.75rem;
}

.button--quiz:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.button--quiz .icon {
  width: 14px;
  height: 14px;
}

.quiz-result {
  padding-top: 6px;
  animation: result-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-badge {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  color: var(--green-deep);
  background: var(--lime);
  border: 1px solid rgba(23, 37, 29, 0.15);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

.result-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 22px;
}

.result-recap span {
  padding: 5px 9px;
  color: #536158;
  background: #f0e9dd;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 66px 0 24px;
  color: var(--paper-soft);
  background: var(--green-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -440px;
  right: -140px;
  border: 1px solid rgba(223, 240, 109, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 47px;
}

.brand--footer {
  margin-bottom: 21px;
  color: var(--paper-soft);
}

.brand--footer .brand-name span {
  color: var(--lime);
}

.brand--footer .brand-mark {
  border-color: rgba(255, 255, 255, 0.75);
}

.footer-statement {
  max-width: 360px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.glossary-title {
  margin-bottom: 15px;
  color: var(--lime);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mini-glossary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 26px;
}

.mini-glossary dl > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.mini-glossary dt {
  color: #d5e2d9;
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-glossary dd {
  color: #8fa697;
  font-size: 0.66rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #7e9788;
  font-size: 0.62rem;
}

.footer-recap {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.recap-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}

.recap-dot--orange { background: var(--orange); }
.recap-dot--green { background: var(--lime); }

.recap-arrow {
  margin: 0 2px;
  color: #617c6c;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 11px;
  color: #b7cabf;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-top:hover {
  color: var(--green-deep);
  background: var(--lime);
  border-color: var(--lime);
}

.back-top .icon {
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
}

/* =========================================================
   Reveal animation
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .nav-wrap {
    gap: 22px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.94fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5.9vw, 5.1rem);
  }

  .hero-visual {
    max-width: 505px;
  }

  .terminal-lines {
    grid-template-columns: 1fr;
  }

  .analogy-card {
    padding-inline: 17px;
  }

  .story-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .story-note {
    grid-column: 2;
  }

  .faq-layout {
    gap: 55px;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 9.4vw, 5.7rem);
  }

  .hero-lead {
    max-width: 650px;
  }

  .hero-visual {
    max-width: 640px;
    justify-self: center;
  }

  .browser-card {
    width: calc(100% - 35px);
  }

  .terminal-lines {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .section-lead {
    max-width: 560px;
    justify-self: start;
  }

  .analogy-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .flow-arrow {
    display: none;
  }

  .analogy-card {
    min-height: 235px;
  }

  .analogy-icon {
    margin-bottom: 25px;
  }

  .sim-body {
    grid-template-columns: 1fr;
  }

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

  .phone-card {
    max-width: 390px;
  }

  .backend-panel {
    padding-bottom: 34px;
  }

  .sim-step {
    padding-block: 11px;
  }

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

  .example-card {
    padding: 27px;
  }

  .example-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro .section-lead {
    max-width: 620px;
  }

  .faq-doodle {
    display: none;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .quiz-intro .section-lead {
    max-width: 600px;
  }

  .quiz-meta {
    max-width: 500px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-statement {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 73px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12.4vw, 4.4rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-meta {
    gap: 9px;
    font-size: 0.72rem;
  }

  .hero-visual {
    border-radius: 27px;
    padding: 16px 14px 17px;
  }

  .browser-card {
    width: 100%;
    transform: rotate(-0.6deg);
  }

  .hero-visual:hover .browser-card,
  .hero-visual:hover .server-card {
    transform: none;
  }

  .api-connector {
    margin-inline: 8px;
  }

  .server-card {
    width: calc(100% - 24px);
    margin-left: 24px;
    transform: rotate(0.6deg);
  }

  .visual-label--front {
    right: 9px;
  }

  .visual-label--back {
    right: 9px;
  }

  .love-note {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    margin-top: 26px;
    padding: 20px;
  }

  .love-note-icon {
    width: 44px;
    height: 44px;
  }

  .love-note-icon .icon {
    width: 20px;
    height: 20px;
  }

  .love-note-text {
    font-size: 1.45rem;
  }

  .love-note-stamp {
    display: none;
  }

  .love-note::after {
    right: -24px;
    font-size: 6.5rem;
  }

  .section {
    padding: 72px 0;
  }

  .section h2 {
    font-size: clamp(2.5rem, 8.8vw, 3.65rem);
  }

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

  .role-card {
    min-height: 0;
    padding: 26px;
  }

  .role-footer {
    margin-top: 24px;
  }

  .api-strip {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    padding: 21px;
  }

  .api-strip-icon {
    width: 44px;
    height: 44px;
  }

  .api-mini-flow {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 14px 0 0;
    border-top: 1px solid rgba(23, 37, 29, 0.16);
    border-left: 0;
  }

  .story-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 23px;
  }

  .story-quote {
    width: 38px;
    height: 38px;
  }

  .story-note {
    grid-column: 1;
  }

  .story-main {
    font-size: 0.96rem;
  }

  .phone-card {
    padding: 19px;
  }

  .sim-demo {
    padding: 27px 20px;
  }

  .backend-panel {
    padding: 26px 20px;
  }

  .sim-step {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 9px;
  }

  .compare-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody tr {
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--paper-soft);
    border: 1px solid var(--line-strong);
    border-radius: 15px;
  }

  .compare-table tbody th {
    padding: 12px 16px;
    color: var(--paper-soft);
    background: var(--ink);
    border-bottom: 0;
    font-size: 0.71rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .compare-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 0.79rem;
  }

  .compare-table tbody td:last-child {
    border-bottom: 0;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .compare-table tbody tr:hover td {
    background: transparent;
  }

  .remember-strip {
    align-items: flex-start;
  }

  .example-split {
    grid-template-columns: 1fr;
  }

  .example-card {
    padding: 23px;
  }

  .faq-answer {
    padding-right: 26px;
  }

  .quiz-card {
    min-height: 0;
    border-radius: 24px;
  }

  .quiz-meta {
    gap: 17px;
  }

  .footer-top {
    padding-bottom: 35px;
  }

  .mini-glossary dl {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 13px 20px;
  }

  .footer-recap {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .back-top {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-name {
    font-size: 1.07rem;
  }

  .love-note {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding: 17px 16px;
    border-radius: 18px;
  }

  .love-note-icon {
    width: 36px;
    height: 36px;
  }

  .love-note-icon .icon {
    width: 17px;
    height: 17px;
  }

  .love-note-kicker {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .love-note-text {
    font-size: 1.28rem;
    line-height: 1.35;
  }

  .love-note-text strong {
    white-space: normal;
  }

  .hero {
    padding-top: 34px;
  }

  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12.8vw, 3.4rem);
    margin-bottom: 21px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-meta .meta-separator {
    display: none;
  }

  .hero-meta {
    gap: 6px 13px;
  }

  .hero-visual {
    padding: 14px 12px 16px;
  }

  .visual-topline {
    font-size: 0.56rem;
  }

  .browser-chrome {
    height: 30px;
  }

  .browser-url {
    max-width: 130px;
  }

  .shop-nav {
    gap: 10px;
    padding-inline: 13px;
  }

  .shop-nav span:not(.shop-cart) {
    display: none;
  }

  .shop-content {
    min-height: 148px;
    padding: 13px 12px 18px 14px;
  }

  .shop-copy h2 {
    font-size: 1.5rem;
  }

  .shop-copy p {
    display: none;
  }

  .coffee-scene {
    width: 43%;
    min-height: 125px;
  }

  .coffee-cup {
    width: 94%;
  }

  .steam {
    top: 2px;
    height: 22px;
  }

  .visual-label {
    padding: 6px 8px;
    font-size: 0.48rem;
  }

  .visual-label small {
    font-size: 0.4rem;
  }

  .connector-note {
    display: none;
  }

  .server-card {
    width: calc(100% - 14px);
    margin-left: 14px;
  }

  .terminal-lines {
    font-size: 0.47rem;
    gap: 4px 8px;
  }

  .terminal-lines span {
    gap: 4px;
  }

  .visual-footnote {
    margin-top: 22px;
    font-size: 0.53rem;
  }

  .section {
    padding: 62px 0;
  }

  .section h2 {
    font-size: clamp(2.25rem, 10.4vw, 3rem);
  }

  .section-head {
    margin-bottom: 33px;
  }

  .role-card {
    padding: 23px;
  }

  .role-top {
    margin-bottom: 24px;
  }

  .role-statement {
    font-size: 1.15rem;
  }

  .role-footer {
    flex-direction: column;
    gap: 12px;
  }

  .analogy-flow {
    grid-template-columns: 1fr;
  }

  .analogy-card {
    min-height: 0;
    padding: 22px;
  }

  .analogy-icon {
    margin-bottom: 22px;
  }

  .api-strip {
    padding: 18px;
  }

  .api-strip-copy h3 {
    font-size: 1.08rem;
  }

  .story-panel {
    padding: 20px;
  }

  .sim-topbar {
    padding-inline: 13px;
    gap: 8px;
    font-size: 0.55rem;
  }

  .sim-window-dots {
    gap: 3px;
  }

  .sim-window-dots i {
    width: 6px;
    height: 6px;
  }

  .sim-status {
    padding: 4px 7px;
    font-size: 0.48rem;
  }

  .demo-note {
    font-size: 0.51rem;
    text-align: center;
  }

  .sim-demo,
  .backend-panel {
    padding: 22px 15px;
  }

  .phone-card {
    padding: 17px;
  }

  .backend-head h3 {
    font-size: 1.3rem;
  }

  .sim-step {
    padding-block: 9px;
  }

  .step-marker {
    width: 20px;
    height: 20px;
    font-size: 0.48rem;
  }

  .sim-step strong {
    font-size: 0.68rem;
  }

  .sim-step p {
    font-size: 0.58rem;
  }

  .sim-step code {
    font-size: 0.52rem;
  }

  .phone-head h3 {
    font-size: 1.15rem;
  }

  .remember-strip {
    padding: 15px;
  }

  .remember-strip p {
    font-size: 0.76rem;
  }

  .faq-item summary {
    gap: 16px;
    padding-block: 19px;
    font-size: 0.92rem;
  }

  .faq-plus {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding-right: 8px;
    padding-bottom: 20px;
  }

  .faq-answer p {
    font-size: 0.85rem;
  }

  .quiz-card {
    padding: 22px 18px;
  }

  .quiz-option {
    padding: 11px 12px;
    font-size: 0.77rem;
  }

  .quiz-option .option-letter {
    width: 22px;
    height: 22px;
  }

  .button--quiz {
    width: 100%;
  }

  .result-badge {
    width: 76px;
    height: 76px;
    font-size: 1.45rem;
  }

  .site-footer {
    padding-top: 48px;
  }

  .mini-glossary dl > div {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .footer-bottom {
    font-size: 0.57rem;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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