/* ==========================================================================
   RustMesh design system
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Utilities
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --ink: #14110f;
  --ink-soft: #3a3430;
  --muted: #6b6460;
  --line: #ebe6e1;
  --bg: #ffffff;
  --bg-soft: #f8f5f1;

  --accent: #f46a1f;
  --accent-strong: #d9520b;
  --accent-soft: #fff1e8;

  --dark: #131110;
  --dark-raised: #1d1a18;
  --dark-text: #f4efea;
  --dark-muted: #a8a09a;
  --dark-line: rgba(255, 255, 255, 0.1);

  --whatsapp: #25d366;
  --whatsapp-strong: #1ebe5b;

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.06);
  --shadow: 0 12px 32px -12px rgba(20, 17, 15, 0.18);
  --shadow-lg: 0 32px 64px -24px rgba(20, 17, 15, 0.35);

  --container: 1200px;
  --header-height: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

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

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

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

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

/* 3. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding: 112px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Lets code blocks scroll inside their column instead of widening the page. */
.hero__inner > *,
.architecture > *,
.contact__inner > *,
.faq > * {
  min-width: 0;
}

/* 4. Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

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

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(244, 106, 31, 0.6);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

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

.btn--whatsapp {
  background: var(--whatsapp);
  color: #06301a;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.6);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-strong);
}

/* Eyebrow label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.text-accent {
  color: var(--accent);
}

/* Section heading */
.section-heading {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

.section--dark .section-heading p:not(.eyebrow) {
  color: var(--dark-muted);
}

.section-heading--left {
  margin: 0;
  text-align: left;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 500;
}

.tags--subtle li {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--accent-strong);
}

/* Cards */
.card,
.benefit {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.card:hover,
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__icon,
.benefit__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
}

.card h3,
.benefit h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p,
.benefit p {
  color: var(--muted);
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a524;
}

/* 5. Sections ------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo--light {
  color: var(--dark-text);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 4px 0;
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.lang-switch:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(244, 106, 31, 0.12), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(244, 106, 31, 0.06), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__proof .icon {
  color: var(--accent);
}

.hero__visual {
  position: relative;
}

.code-window {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dark-line);
}

.code-window__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3532;
}

.code-window__bar span:first-child { background: #ff5f57; }
.code-window__bar span:nth-child(2) { background: #febc2e; }
.code-window__bar span:nth-child(3) { background: #28c840; }

.code-window__bar em {
  margin-left: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-muted);
}

.code-window__body {
  margin: 0;
  padding: 24px;
  font-size: 13px;
  line-height: 1.75;
  color: #e9e2dc;
  overflow-x: auto;
}

.code-window figcaption {
  padding: 12px 24px 18px;
  font-size: 12px;
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
}

.code-window .c { color: #7d746d; }
.code-window .k { color: #ff8a4c; }
.code-window .f { color: #7cc4ff; }
.code-window .s { color: #a6e3a1; }
.code-window .m { color: #f5c26b; }
.code-window .t { color: #d4a5ff; }

.metric-chip {
  position: absolute;
  display: grid;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.metric-chip strong {
  font-size: 26px;
  line-height: 1.1;
  color: var(--accent);
}

.metric-chip span {
  font-size: 12px;
  color: var(--muted);
}

.metric-chip--speed {
  left: -32px;
  bottom: -28px;
}

.metric-chip--score {
  right: -16px;
  top: -24px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 80px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.stats__item {
  display: flex;
  flex-direction: column-reverse;
  padding: 28px 32px;
}

.stats__item + .stats__item {
  border-left: 1px solid var(--line);
}

.stats dd {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stats dt {
  font-size: 14px;
  color: var(--muted);
}

/* Trust strip */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.trust__label {
  flex-shrink: 0;
  max-width: 200px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.trust__names {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #b4aca6;
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

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

.case--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.case__media {
  display: block;
  margin: 20px 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.case--featured .case__media {
  flex: 1.35;
  margin: 20px 0 20px 20px;
}

.case__browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f3efeb;
  border-bottom: 1px solid var(--line);
}

.case__browser span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d1cb;
}

.case__browser em {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.case__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}

.case:hover .case__media img {
  transform: scale(1.03);
}

.case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 32px 32px;
}

.case--featured .case__body {
  justify-content: center;
  padding: 48px;
}

.case__industry {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.case h3 {
  font-size: 26px;
}

.case--featured h3 {
  font-size: 34px;
}

.case__body > p:not(.case__industry) {
  color: var(--muted);
}

.case .link-arrow {
  margin-top: auto;
}

.case--featured .link-arrow {
  margin-top: 12px;
}

/* Comparison table */
.table-wrap {
  margin-top: 56px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare caption {
  padding: 18px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.compare th,
.compare td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

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

.compare thead th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.compare tbody th {
  font-weight: 500;
}

.compare td {
  color: var(--muted);
}

.compare .compare__ours {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

/* Rust stack */
.stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stack__layer {
  padding: 36px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  background: var(--dark-raised);
}

.stack__layer header {
  margin-bottom: 24px;
}

.stack__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.stack__layer h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.stack__layer header p {
  color: var(--dark-muted);
  font-size: 15px;
}

.stack__tools {
  display: grid;
  gap: 2px;
}

.stack__tools li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
}

.stack__tools strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
}

.stack__tools span {
  color: var(--dark-muted);
}

/* Architecture */
.architecture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.architecture__copy h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.architecture__copy > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.tree {
  margin: 32px 0 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: #e9e2dc;
  overflow: hidden;
}

.tree figcaption {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--dark-muted);
  border-bottom: 1px solid var(--dark-line);
}

.tree pre {
  margin: 0;
  padding: 20px;
  font-size: 12.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.tree .c {
  color: #7d746d;
}

.layers {
  display: grid;
  gap: 10px;
}

.layers__ring {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.layers__ring--2 { margin: 0 20px; background: #fffaf6; }
.layers__ring--3 { margin: 0 40px; background: #fff3ea; }
.layers__ring--4 {
  margin: 0 60px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.layers__label {
  display: grid;
  gap: 4px;
}

.layers__label code {
  font-size: 12px;
  color: var(--accent-strong);
}

.layers__ring--4 .layers__label code,
.layers__ring--4 .layers__tech,
.layers__ring--4 .layers__label p {
  color: rgba(255, 255, 255, 0.88);
}

.layers__label strong {
  font-size: 17px;
}

.layers__tech {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.layers__label p {
  font-size: 14px;
  color: var(--muted);
}

.layers__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.layers__rule .icon {
  transform: rotate(90deg);
  color: var(--accent);
}

/* Process timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: step;
}

.timeline__step {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline__step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.timeline__index {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.timeline__body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.timeline__duration {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.timeline__body h3 {
  font-size: 20px;
}

.timeline__body > p:not(.timeline__duration):not(.timeline__label) {
  color: var(--muted);
}

.timeline__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.standards {
  margin-top: 48px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--dark-text);
}

.standards h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.standards ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}

.standards li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--dark-muted);
}

.standards .icon {
  color: var(--accent);
}

/* Reviews */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.reviews {
  columns: 3;
  column-gap: 24px;
}

.review {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review blockquote {
  margin: 14px 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.review figcaption strong {
  display: block;
  font-size: 15px;
}

.review figcaption small {
  font-size: 13px;
  color: var(--muted);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.plan h3 {
  font-size: 22px;
}

.plan__audience {
  margin-top: 8px;
  min-height: 3.3em;
  font-size: 15px;
  color: var(--muted);
}

.plan__price {
  margin-top: 24px;
}

.plan__price strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price span {
  font-size: 14px;
  color: var(--muted);
}

.plan__timeline {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.plan__features {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.plan__features li {
  display: flex;
  gap: 10px;
}

.plan__features .icon {
  margin-top: 4px;
  color: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

/* Guarantee */
.guarantee {
  padding: 0 0 112px;
  background: var(--bg-soft);
}

.guarantee__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.guarantee__inner > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
}

.guarantee__inner > h2 .icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.guarantee__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.guarantee__items h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guarantee__items p {
  font-size: 14px;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}

.faq .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.faq .section-heading .btn {
  margin-top: 24px;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  padding: 24px 40px 24px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq__item p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

/* Contact */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.contact__copy h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.contact__copy > p:not(.eyebrow) {
  margin: 20px 0 36px;
  font-size: 18px;
  color: var(--dark-muted);
}

.channels {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 420px;
}

.channels__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}

.channels__item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--dark-raised);
}

.channels__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(244, 106, 31, 0.15);
  color: var(--accent);
  font-size: 20px;
}

.channels__icon--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
}

.channels__item strong {
  display: block;
  color: var(--dark-text);
  font-size: 16px;
}

.channels__item small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark-muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}

.brief {
  display: grid;
  gap: 18px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.brief h3 {
  font-size: 22px;
}

.brief__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brief__note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 64px 0 32px;
  background: #0d0b0a;
  color: var(--dark-muted);
  font-size: 15px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}

.site-footer__brand p {
  margin-top: 12px;
  max-width: 320px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.site-footer__links a:hover,
.site-footer__contact:hover {
  color: #fff;
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-text);
  font-weight: 600;
}

.site-footer__contacts {
  display: grid;
  gap: 12px;
}

.site-footer__contact .icon {
  color: var(--whatsapp);
}

.site-footer__contact--email .icon {
  color: var(--accent);
}

.site-footer__legal {
  padding-top: 24px;
  font-size: 13px;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-float__label {
  display: grid;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.3;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  pointer-events: none;
}

.wa-float__label strong {
  font-size: 14px;
}

.wa-float__label small {
  font-size: 12px;
  color: var(--muted);
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  opacity: 1;
  transform: none;
}

.wa-float__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s var(--ease);
}

.wa-float__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}

.wa-float:hover .wa-float__icon {
  transform: scale(1.06);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Simple pages */
.prose-page {
  padding: 80px 0 112px;
}

.prose h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.prose__meta {
  margin-top: 8px;
  color: var(--muted);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin-top: 16px;
}

.prose ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found {
  text-align: center;
}

.not-found__code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.not-found h1 {
  margin: 16px 0 12px;
  font-size: 32px;
}

.not-found p:not(.not-found__code) {
  margin-bottom: 32px;
  color: var(--muted);
}

/* 6. Utilities: scroll reveal -------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .plan--featured[data-reveal].is-visible {
  transform: translateY(-12px);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    gap: 20px;
    font-size: 14px;
  }

  .hero__inner,
  .architecture,
  .contact__inner,
  .faq {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual {
    max-width: 640px;
  }

  .code-window {
    transform: none;
  }

  .faq .section-heading {
    position: static;
  }

  .guarantee__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 17px;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .site-header__actions {
    margin-left: auto;
  }

  .grid--3,
  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .stack,
  .cases {
    grid-template-columns: 1fr;
  }

  .case--featured {
    flex-direction: column;
  }

  .case--featured .case__media {
    margin: 20px 20px 0;
  }

  .case--featured .case__body {
    padding: 28px 32px 32px;
  }

  .reviews {
    columns: 2;
  }

  .plan--featured,
  .js .plan--featured[data-reveal].is-visible {
    transform: none;
  }

  .trust__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .trust__label {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .site-header__actions .btn {
    display: none;
  }

  .grid--3,
  .plans,
  .timeline,
  .standards ul,
  .guarantee__items,
  .brief__row {
    grid-template-columns: 1fr;
  }

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

  .stats__item:nth-child(3) {
    border-left: 0;
  }

  .stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stats__item {
    padding: 20px;
  }

  .stats dd {
    font-size: 26px;
  }

  .metric-chip--speed {
    left: 8px;
    bottom: -20px;
  }

  .metric-chip--score {
    right: 8px;
  }

  .reviews {
    columns: 1;
  }

  .stack__tools li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .layers__ring--2 { margin: 0 10px; }
  .layers__ring--3 { margin: 0 20px; }
  .layers__ring--4 { margin: 0 30px; }

  .standards,
  .brief,
  .stack__layer,
  .plan {
    padding: 28px;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
  }

  .wa-float__label {
    display: none;
  }
}
