:root {
  --c-bg: #1a1a1a;
  --c-bg-subtle: #222222;
  --c-text: #ffffff;
  --c-text-muted: #999999;
  --c-copper: #b87333;
  --c-copper-glow: rgba(184, 115, 51, 0.12);
  --c-border: #333333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(26, 26, 26, 0.82);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(18px);
}

.nav-logo img {
  width: 142px;
  height: auto;
}

.nav-link {
  color: var(--c-text-muted);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-copper);
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-subtle {
  background:
    radial-gradient(circle at 20% 10%, var(--c-copper-glow), transparent 34%),
    var(--c-bg-subtle);
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(184, 115, 51, 0.18), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(184, 115, 51, 0.08), transparent 34%),
    linear-gradient(135deg, #1a1a1a 0%, #202020 100%);
}

.hero-content {
  max-width: 920px;
  text-align: center;
}

.section-label {
  margin: 0 0 18px;
  color: var(--c-copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h1 span {
  color: var(--c-copper);
  text-shadow: 0 0 42px rgba(184, 115, 51, 0.28);
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--c-text-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid rgba(184, 115, 51, 0.55);
  border-radius: 999px;
  background: var(--c-copper);
  color: var(--c-text);
  font-weight: 800;
  box-shadow: 0 18px 50px var(--c-copper-glow);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b87333;
  box-shadow: 0 24px 70px rgba(184, 115, 51, 0.22);
  transform: translateY(-2px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2,
.case-card h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.info-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.info-card:hover {
  border-color: rgba(184, 115, 51, 0.58);
  background: linear-gradient(180deg, rgba(184, 115, 51, 0.1), rgba(255, 255, 255, 0.018));
  transform: translateY(-4px);
}

.card-icon {
  margin-bottom: 26px;
  font-size: 2.35rem;
}

.info-card h3,
.flow-output h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.info-card p,
.flow-output p,
.cta-copy,
.case-subtitle,
.contact-line {
  color: var(--c-text-muted);
}

.info-card p,
.flow-output p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) auto minmax(180px, 0.8fr) auto minmax(280px, 1.55fr);
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--c-border);
  border-radius: 34px;
  background: rgba(26, 26, 26, 0.62);
}

.flow-column {
  display: grid;
  gap: 14px;
}

.flow-pill,
.flow-output,
.flow-engine {
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.flow-pill {
  padding: 18px;
  color: var(--c-text-muted);
  text-align: center;
  font-weight: 700;
}

.flow-engine {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-color: rgba(184, 115, 51, 0.62);
  background: var(--c-copper-glow);
  color: var(--c-copper);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.flow-arrow {
  color: var(--c-copper);
  font-size: 2.2rem;
  font-weight: 800;
}

.flow-output {
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  background: var(--c-bg-subtle);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 24px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--c-text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 23%;
  color: var(--c-copper);
  font-size: 1rem;
}

.comparison-table td {
  color: var(--c-text-muted);
}

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

.cta-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(184, 115, 51, 0.16), transparent 30%),
    linear-gradient(180deg, var(--c-bg) 0%, #151515 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.case-card,
.final-cta {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--c-border);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.035);
}

.case-subtitle {
  margin: 16px 0 30px;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: var(--c-bg);
}

.stat-card strong {
  color: var(--c-copper);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card span {
  color: var(--c-text-muted);
}

.final-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.final-cta h2 {
  margin-bottom: 24px;
}

.cta-copy {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-line {
  margin: 22px 0 0;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 980px) {
  .site-nav {
    min-height: 70px;
  }

  .nav-logo img {
    width: 124px;
  }

  .card-grid,
  .cta-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .flow-engine {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .nav-link {
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 74px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .card-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 18px;
  }

  .button-primary {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    text-align: center;
  }
}
