:root {
  --bg: #ffffff;
  --panel: #fffaf7;
  --panel-soft: #fff0e8;
  --text: #21110d;
  --muted: #65382b;
  --border: #ef8a55;
  --accent: #f26a1b;
  --accent-strong: #da2f20;
  --accent-deep: #8f1f18;
  --accent-soft: rgba(242, 106, 27, 0.22);
  --shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.js-motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.98);
  filter: saturate(0.72) brightness(1.04);
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 780ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 780ms cubic-bezier(0.22, 1, 0.36, 1),
    background 780ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 1s);
  will-change: opacity, transform;
}

body.js-motion-ready [data-reveal="fade-down"] {
  transform: translate3d(0, -36px, 0) scale(0.985);
}

body.js-motion-ready [data-reveal="fade-right"] {
  transform: translate3d(-48px, 0, 0) scale(0.98);
}

body.js-motion-ready [data-reveal="fade-left"] {
  transform: translate3d(48px, 0, 0) scale(0.98);
}

/* Cards inside a grid (e.g. .card-grid / .step-grid) sit right next to each
   other with only a small gap, so the default 48px horizontal fade-left/right
   offset makes neighboring cards visually overlap while animating in. Use a
   distance smaller than the grid gap to prevent that. */
body.js-motion-ready .card-grid [data-reveal="fade-left"] {
  transform: translate3d(12px, 0, 0) scale(0.98);
}

body.js-motion-ready .card-grid [data-reveal="fade-right"] {
  transform: translate3d(-12px, 0, 0) scale(0.98);
}

body.js-motion-ready [data-reveal="zoom-in"] {
  transform: translate3d(0, 32px, 0) scale(0.92);
}

/* Top-level section blocks (direct children of <main>) sit right next to each
   other with only a small gap, so a large reveal offset makes them visually
   overlap the neighboring section while animating in. Keep their motion
   distance smaller than the grid gap to avoid that overlap. */
body.js-motion-ready main > [data-reveal] {
  transform: translate3d(0, 16px, 0) scale(0.995);
}

body.js-motion-ready main > [data-reveal="fade-down"] {
  transform: translate3d(0, -16px, 0) scale(0.995);
}

body.js-motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1) brightness(1);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SUIT", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.site-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(242, 106, 27, 0.3);
  border-radius: 18px;
  background: #ffffff;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.brand img {
  display: block;
  width: 140px;
  height: auto;
  max-height: 52px;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: #7d2f1f;
  font-size: 0.95rem;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: #b5786a;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--accent-deep);
  text-decoration: underline;
}

.lang-switch button:hover {
  color: var(--accent-deep);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.lang-divider {
  color: #d9b7ac;
}

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

.panel {
  position: relative;
  overflow: clip;
  padding: 28px;
  border: 1px solid rgba(242, 106, 27, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.panel::after {
  content: none;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  min-height: 420px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.hero-copy {
  align-content: center;
}

.hero-visual {
  width: 100%;
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  transition: transform 220ms linear;
}

.compact-hero {
  min-height: 300px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.headline-accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 58%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead,
.info-card p,
.stack-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease;
}

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

.button-primary {
  background: var(--accent-strong);
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 244, 237, 0.88);
  color: var(--accent-deep);
  border-color: rgba(242, 106, 27, 0.34);
}

.scan-card {
  padding: 22px;
  border: 1px solid rgba(242, 106, 27, 0.3);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.hero-visual-main {
  border-color: rgba(242, 106, 27, 0.34);
  background: #ffffff;
}

.scan-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(242, 106, 27, 0.18);
  color: var(--accent-deep);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.scan-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
}

.hero-visual-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.scan-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hero-metrics article {
  padding: 18px;
  border: 1px solid rgba(242, 106, 27, 0.24);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.hero-metrics span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-metrics p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  color: #3a1711;
}

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

.info-card,
.stack-card {
  padding: 20px;
  border: 1px solid rgba(242, 106, 27, 0.24);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 360ms ease,
    box-shadow 360ms ease,
    border-color 360ms ease;
}

.panel:hover,
.info-card:hover,
.stack-card:hover,
.scan-card:hover,
.hero-metrics article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(218, 47, 32, 0.34);
}

.topbar:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(218, 47, 32, 0.34);
}

.info-card h3,
.stack-card h3,
.hero-metrics strong,
.scan-card strong {
  color: #251714;
}

.info-card:nth-child(1),
.step-grid .info-card:nth-child(1),
.hero-metrics article:nth-child(1) {
  border-color: rgba(242, 106, 27, 0.42);
}

.info-card:nth-child(2),
.step-grid .info-card:nth-child(2) {
  border-color: rgba(234, 84, 29, 0.4);
}

.info-card:nth-child(3),
.step-grid .info-card:nth-child(3),
.hero-metrics article:nth-child(2) {
  border-color: rgba(218, 47, 32, 0.38);
}

.contact-panel {
  display: block;
}

.company-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(218, 47, 32, 0.24);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  color: #6c1f16;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
}

.company-divider {
  color: rgba(108, 31, 22, 0.44);
}

.company-email {
  position: relative;
  color: var(--accent-strong);
  text-decoration: none;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.company-email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: scaleX(0.88);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.company-email:hover {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.company-email:hover::after {
  transform: scaleX(1);
}

@media (max-width: 800px) {
  .hero,
  .card-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .hero-copy {
    align-content: stretch;
  }

  .hero-visual {
    align-content: stretch;
    transform: none;
  }

  .company-info {
    width: 100%;
    gap: 8px;
    font-size: 0.94rem;
  }
}

.insight-panel {
  background: #ffffff;
}

.insight-grid {
  margin-bottom: 20px;
}

.insight-card {
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #d96c1a, #f0a251);
}

.insight-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(185, 90, 22, 0.14);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.insight-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.compact-actions {
  margin-top: 0;
}

.compact-actions .button {
  min-width: 180px;
}

.comparison-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.info-card h3,
.industry-card h3,
.timeline h3,
.stack-card h3,
.principles h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

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

.timeline article {
  padding: 24px;
  border-top: 2px solid rgba(185, 90, 22, 0.38);
  background: linear-gradient(135deg, #fffaf3 0%, #fff2e6 100%);
  border-radius: 20px;
}

.timeline strong,
.stack-card span {
  color: var(--green);
  font-size: 1.4rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1480px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .three-up,
  .two-up,
  .stats-strip,
  .architecture-grid,
  .timeline,
  .principles,
  .hero-visual {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .scan-points {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(1.9rem, 4.2vw, 4rem);
  }

  .benefit-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    display: grid;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 12px;
  }

  .comparison-head > div {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .company-info {
    align-items: flex-start;
    padding: 14px 15px;
  }

  .company-divider {
    display: none;
  }

  body.js-motion-ready [data-reveal],
  body.js-motion-ready [data-reveal="fade-down"],
  body.js-motion-ready [data-reveal="fade-right"],
  body.js-motion-ready [data-reveal="fade-left"],
  body.js-motion-ready [data-reveal="zoom-in"] {
    transform: translate3d(0, 28px, 0) scale(0.99);
  }

  .topbar {
    padding: 16px 18px;
    border-radius: 18px;
    gap: 16px;
  }

  .nav {
    width: 100%;
    gap: 10px 16px;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .lang-switch {
    font-size: 0.85rem;
  }

  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  .brand img {
    width: 150px;
  }

  h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.6rem);
    line-height: 1.08;
  }

  .headline-line {
    white-space: normal;
  }

  h1,
  h2,
  h3,
  strong,
  .scan-points span {
    gap: 14px;
  }

  .site-shell {
    width: min(100% - 16px, 1180px);
    padding-bottom: 40px;
  }

  .hero {
    gap: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .compact-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .comparison-intro,
  .comparison-row > div,
  .info-card,
  .industry-card,
  .stack-card,
  .principles article,
  .benefit-list article {
    padding: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .stats-strip article,
  .timeline article {
    padding: 20px;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row {
    gap: 8px;
  }

  .comparison-row:not(.comparison-head) {
    padding: 16px;
    border: 1px solid rgba(217, 108, 26, 0.14);
    border-radius: 20px;
    background: #ffffff;
  }

  .comparison-row:not(.comparison-head) > div {
    border-radius: 16px;
  }

  .scan-points {
    flex-direction: column;
  }
}