/* dataengineer.help Consulting — commercial redesign */
:root {
  --brand: #004aad;
  --brand-deep: #00357a;
  --brand-soft: #e8f0fb;
  --ink: #0b1220;
  --ink-2: #1a2332;
  --muted: #5b6577;
  --line: #dbe3ef;
  --surface: #f5f7fb;
  --surface-2: #eef2f8;
  --white: #ffffff;
  --success: #0f8a4b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.1);
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  background: var(--brand);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

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

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

.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--surface);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.section-dark .section-head h2 {
  color: var(--white);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-head p {
  color: #b7c0cf;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem !important;
}

.nav-cta:hover {
  background: var(--brand-deep);
  color: var(--white) !important;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 74, 173, 0.22);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--white);
}

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

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 85% 15%, rgba(0, 74, 173, 0.09), transparent 55%),
    linear-gradient(180deg, #f8fafd 0%, #ffffff 70%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-secondary-link {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-secondary-link a {
  text-decoration: none;
  color: var(--brand);
}

.hero-secondary-link a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 0;
}

.arch-card {
  --arch-gap: 0.85rem;
  background:
    radial-gradient(circle at 1px 1px, #d5deec 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, #f8fafd 0%, #ffffff 100%);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.arch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #3d8bfd);
}

.arch-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.arch-row {
  display: grid;
  align-items: center;
  gap: 0.45rem;
}

.arch-row--top {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.arch-row--bottom {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.arch-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
}

.arch-line {
  display: block;
  background: linear-gradient(90deg, var(--brand), #3d8bfd);
  flex-shrink: 0;
}

.arch-line--h {
  width: clamp(0.55rem, 2.2vw, 1.1rem);
  height: 2px;
  border-radius: 2px;
}

.arch-line--v {
  width: 2px;
  height: 1.1rem;
  margin: 0.2rem auto;
  background: linear-gradient(180deg, var(--brand), #9db6d9);
  border-radius: 2px;
}

.arch-line--center {
  height: 1.25rem;
}

.arch-core {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--brand) 0%, #1a6fd4 55%, #3d8bfd 100%);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.55vw, 0.88rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 74, 173, 0.22);
}

.arch-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.arch-fork {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  margin-top: 0.1rem;
}

.arch-fork .arch-line--v {
  background: #9db6d9;
  height: 1.15rem;
}

.arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
}

.arch-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.arch-legend li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

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

.problem-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.problem-card:hover {
  border-color: #b8cceb;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.problem-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.problem-card .linkish {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.solution-card:hover {
  border-color: #b9cdea;
  box-shadow: var(--shadow);
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.solution-card .explain {
  color: var(--muted);
}

.solution-meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.solution-meta dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.solution-meta dd {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.solution-meta ul {
  margin-left: 1.1rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.solution-card a.more {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.mid-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mid-cta p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  max-width: 36rem;
}

.mid-cta .cta-row {
  flex-shrink: 0;
}

.mid-cta .btn {
  width: auto;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem 1.25rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand);
  display: block;
  margin-bottom: 0.85rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.process-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 48rem;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  min-height: 110px;
  justify-content: center;
}

.tech-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tech-item img.is-hidden {
  display: none;
}

.tech-fallback {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.tech-item span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Differentials */
.diff-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.diff-list {
  display: grid;
  gap: 0.9rem;
}

.diff-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.diff-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.diff-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.founder-card {
  background: linear-gradient(165deg, var(--ink) 0%, #152238 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.founder-card p {
  color: #c5cedb;
  font-size: 0.98rem;
}

.founder-card a {
  color: #9ec0ff;
}

.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8eef8;
}

/* Projetos públicos & evidências */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

a.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

a.case-card:hover {
  border-color: #b7c9e3;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}

a.case-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.case-badge {
  display: inline-flex;
  width: fit-content;
  margin: 1.25rem 1.25rem 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-badge--public {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.case-badge--experience {
  background: var(--surface-2);
  color: var(--ink-2);
}

.case-visual {
  height: 140px;
  margin: 1rem 1.25rem 0;
  border-radius: 10px;
  background:
    linear-gradient(160deg, #f7faff 0%, var(--surface-2) 55%, #e4ecf8 100%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-visual svg {
  width: 100%;
  height: 100%;
}

.case-body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.case-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.case-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
}

.case-cta::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

a.case-card:hover .case-cta::after {
  transform: translateX(3px);
}

.cases-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brand);
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-a {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 5.5rem) 0;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  max-width: 18ch;
  margin-inline: auto;
}

.final-cta p {
  color: #b7c0cf;
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.channel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.contact-note {
  margin-top: 1.5rem;
  color: #8a94a6;
  font-size: 0.9rem;
}

/* Resource hub (blog) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.resource-card:hover {
  border-color: #b8cceb;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.resource-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.resource-card .linkish {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

.topic-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.topic-list li {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.topic-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #070d18;
  color: #9aa6b8;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}

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

.site-footer h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #9aa6b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.wa-float:hover {
  transform: scale(1.06);
  background: var(--whatsapp-dark);
  color: var(--white);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float:focus-visible {
  outline-offset: 4px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Service / inner pages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.2rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.prose strong {
  color: var(--ink-2);
  font-weight: 600;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.article-meta time {
  font-variant-numeric: tabular-nums;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.blog-card:hover {
  border-color: #b8cceb;
  box-shadow: var(--shadow);
  color: inherit;
}

.blog-card .blog-date {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  flex: 1;
}

.blog-card .blog-more {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.prose .cta-box {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--brand-soft);
  border-radius: var(--radius);
  border: 1px solid #c9daf0;
}

.prose .cta-box p {
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

.prose .related-links {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.prose .related-links li {
  margin-bottom: 0.4rem;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.service-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
}

.service-link-card:hover {
  border-color: #b8cceb;
  box-shadow: var(--shadow);
  color: inherit;
}

.service-link-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.service-link-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .diff-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .arch-card {
    padding: 1.35rem 1.25rem 1.15rem;
  }
}

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

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.4rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .solutions-grid,
  .problem-grid,
  .cases-grid,
  .resource-grid,
  .service-links,
  .blog-grid,
  .process {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    max-width: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .mid-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-core {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 0.85rem;
  }

  .arch-dot {
    display: none;
  }

  .arch-node {
    min-height: 2.75rem;
    padding: 0.55rem 0.45rem;
  }

  .arch-legend {
    gap: 0.4rem;
  }
}
