/* =====================
   VARIABLES
   ===================== */
:root {
  --green:        #0a0a0e;
  --green-mid:    #111116;
  --cream:        #ede8db;
  --cream-dark:   #e4dece;
  --terracotta:   #c4602a;
  --text-on-dark: #e2ddd0;
  --text-on-dark-muted: rgba(226, 221, 208, 0.5);
  --text-on-light: #111116;
  --text-on-light-muted: rgba(17, 17, 22, 0.45);
  --rule-dark:    rgba(226, 221, 208, 0.1);
  --rule-light:   rgba(17, 17, 22, 0.1);
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-sans:    'Inter', -apple-system, sans-serif;
  --max-w:        1280px;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  font-size:   16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img   { display: block; max-width: 100%; }
a     { text-decoration: none; }

/* =====================
   SECTION THEMES
   ===================== */
.section--dark {
  background: var(--green);
  color:      var(--text-on-dark);
}
.section--light {
  background: var(--cream);
  color:      var(--text-on-light);
}

/* =====================
   SHARED LAYOUT
   ===================== */
.container {
  max-width: var(--max-w);
  margin:    0 auto;
  padding:   0 48px;
}

section { padding: 96px 0; }
.hero   { padding: 0; }

/* =====================
   LABELS (eyebrows)
   ===================== */
.label {
  font-family:    var(--font-mono);
  font-size:      0.6875rem;
  font-weight:    500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-on-dark-muted);
  margin-bottom:  40px;
  display:        block;
}
.label--accent { color: var(--terracotta); }
.section--light .label { color: var(--text-on-light-muted); }

/* =====================
   DISPLAY HEADLINES
   ===================== */
.display {
  font-family:    var(--font-display);
  font-weight:    600;
  font-size:      clamp(2.5rem, 4.5vw, 3.75rem);
  line-height:    1.1;
  letter-spacing: -0.03em;
  margin-bottom:  64px;
}
.display--wide { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; }
.display em    { font-style: normal; font-weight: 300; }

.section--dark  .display { color: var(--text-on-dark);  }
.section--light .display { color: var(--text-on-light); }

/* =====================
   NAV
   ===================== */
.nav {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    100;
  transition: background 0.3s ease;
}
.nav.scrolled {
  background:     rgba(12, 43, 31, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          68px;
  padding-top:     0;
  padding-bottom:  0;
}

.nav__logo {
  font-family:    var(--font-display);
  font-size:      1.125rem;
  font-weight:    700;
  color:          var(--text-on-dark);
  letter-spacing: -0.03em;
}
.nav__tag {
  font-family:    var(--font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  color:          var(--text-on-dark-muted);
}
.nav__right {
  display:     flex;
  align-items: center;
  gap:         40px;
}
.nav__links {
  display:    flex;
  list-style: none;
  gap:        32px;
}
.nav__links a {
  font-size:  0.875rem;
  color:      var(--text-on-dark-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-on-dark); }

.nav__cta {
  font-family:    var(--font-mono);
  font-size:      0.75rem;
  letter-spacing: 0.08em;
  color:          var(--terracotta);
  border:         1px solid rgba(196, 96, 42, 0.4);
  padding:        8px 18px;
  border-radius:  2px;
  transition:     all 0.2s;
}
.nav__cta:hover {
  background: rgba(196, 96, 42, 0.08);
  border-color: var(--terracotta);
}

.nav__rule {
  height:     1px;
  background: var(--rule-dark);
  margin:     0 48px;
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height:  100vh;
  display:     flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 68px;
}
.hero .container {
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  flex:            1;
  padding-top:     80px;
  padding-bottom:  64px;
}
.hero .label { margin-bottom: 48px; }

.hero__headline {
  font-family:    var(--font-display);
  font-size:      clamp(3rem, 6vw, 5.5rem);
  font-weight:    600;
  line-height:    1.06;
  letter-spacing: -0.035em;
  color:          var(--text-on-dark);
  margin-bottom:  auto;
  padding-bottom: 80px;
}
.hero__headline em { font-style: normal; font-weight: 300; color: rgba(226, 221, 208, 0.7); }

.hero__footer {
  display:       grid;
  grid-template-columns: repeat(3, 1fr);
  gap:           0;
  padding-top:   32px;
  border-top:    1px solid var(--rule-dark);
}
.hero__meta { padding: 20px 0; }
.hero__meta + .hero__meta { padding-left: 40px; border-left: 1px solid var(--rule-dark); margin-left: 0; }

.meta-label {
  display:        block;
  font-family:    var(--font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.12em;
  color:          var(--text-on-dark-muted);
  margin-bottom:  6px;
}
.meta-value {
  display:        block;
  font-family:    var(--font-display);
  font-size:      1rem;
  font-weight:    500;
  letter-spacing: -0.01em;
  color:          var(--text-on-dark);
}

/* =====================
   HERO VISUAL
   ===================== */
.hero__visual-inline {
  margin: 48px 0 56px;
}
.hero__screen-wrap {
  position:      relative;
  border-radius: 6px 6px 0 0;
  overflow:      hidden;
  border:        1px solid rgba(226, 221, 208, 0.08);
  border-bottom: none;
  background:    #0d0d12;
  /* browser chrome bar */
}
.hero__screen-wrap::before {
  content:        '';
  display:        block;
  height:         28px;
  background:     #1a1a22;
  border-bottom:  1px solid rgba(255,255,255,0.06);
  background-image: radial-gradient(circle at 14px 14px, #ff5f57 4px, transparent 4px),
                    radial-gradient(circle at 28px 14px, #febc2e 4px, transparent 4px),
                    radial-gradient(circle at 42px 14px, #28c840 4px, transparent 4px);
  background-repeat: no-repeat;
}
.hero__screen {
  width:      100%;
  height:     auto;
  display:    block;
  opacity:    0.92;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

/* =====================
   PROBLEM
   ===================== */
.split {
  display:               grid;
  grid-template-columns: 1fr 1.3fr;
  gap:                   80px;
  align-items:           start;
}
.split__left .display { margin-bottom: 0; }

.lead {
  font-family:    var(--font-display);
  font-size:      1.25rem;
  font-weight:    500;
  line-height:    1.5;
  letter-spacing: -0.02em;
  color:          var(--text-on-light);
  margin-bottom:  28px;
}
.body-text {
  font-size:    1rem;
  line-height:  1.75;
  color:        rgba(12, 43, 31, 0.65);
  margin-bottom: 20px;
}
.body-text.closing {
  font-family: var(--font-display);
  font-size:   1.125rem;
  color:       var(--text-on-light);
  margin-top:  12px;
}

/* =====================
   STATS
   ===================== */
.stats {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  border-top:            1px solid var(--rule-light);
  margin-top:            16px;
}
.stat-block {
  padding:      40px 32px 40px 0;
  border-right: 1px solid var(--rule-light);
}
.stat-block:last-child { border-right: none; padding-right: 0; }
.stat-block:first-child { padding-left: 0; }

.stat-block__number {
  font-family:    var(--font-display);
  font-size:      clamp(2.75rem, 4vw, 3.75rem);
  font-weight:    300;
  line-height:    1;
  letter-spacing: -0.04em;
  color:          var(--text-on-light);
  margin-bottom:  16px;
}
.stat-block__plus {
  color:      var(--terracotta);
  font-size:  0.6em;
  vertical-align: super;
}
.stat-block__tag {
  font-family:    var(--font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.1em;
  color:          var(--terracotta);
  margin-bottom:  10px;
  display:        block;
}
.stat-block__desc {
  font-size:   0.875rem;
  line-height: 1.6;
  color:       rgba(12, 43, 31, 0.6);
}

/* =====================
   PRACTICES / SERVICES
   ===================== */
.practices {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   8px;
}

.practice {
  padding:       44px 36px;
  border-radius: 4px;
}
.practice--light {
  background: var(--cream-dark);
}
.practice--dark {
  background: var(--green);
}
.practice--dark .practice__num { color: var(--terracotta); }
.practice--dark .practice__title { color: var(--text-on-dark); }
.practice--dark .practice__desc  { color: var(--text-on-dark-muted); }

.practice__num {
  margin-bottom: 20px;
  color:         var(--terracotta);
}
.practice__title {
  font-family:    var(--font-display);
  font-size:      1.625rem;
  font-weight:    600;
  line-height:    1.2;
  letter-spacing: -0.025em;
  color:          var(--text-on-light);
  margin-bottom:  16px;
}
.practice__desc {
  font-size:   0.9rem;
  line-height: 1.65;
  color:       rgba(12, 43, 31, 0.6);
}

/* =====================
   PROCESS
   ===================== */
.process__steps {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   0;
}
.process__step { padding: 0 40px 0 0; }
.process__step:first-child { padding-left: 0; }

.process__rule {
  height:        1px;
  background:    var(--rule-dark);
  margin-bottom: 28px;
}
.process__num {
  margin-bottom: 16px;
  color:         var(--text-on-dark-muted);
}
.process__title {
  font-family:    var(--font-display);
  font-size:      1.625rem;
  font-weight:    600;
  letter-spacing: -0.025em;
  color:          var(--text-on-dark);
  margin-bottom:  16px;
  line-height:    1.2;
}
.process__desc {
  font-size:   0.9375rem;
  line-height: 1.75;
  color:       var(--text-on-dark-muted);
  margin-bottom: 20px;
}
.process__duration {
  font-family:    var(--font-mono);
  font-size:      0.7rem;
  letter-spacing: 0.08em;
  color:          var(--terracotta);
}

/* =====================
   USE CASES
   ===================== */
.usecases__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
  background:            var(--rule-light);
  border-top:            1px solid var(--rule-light);
  margin-top:            -16px;
}
.usecase {
  background:  var(--cream);
  padding:     40px 36px 40px 0;
}
.usecase + .usecase { padding-left: 36px; }

.usecase__header {
  display:       flex;
  align-items:   baseline;
  gap:           16px;
  margin-bottom: 20px;
}
.usecase__num {
  font-family:    var(--font-mono);
  font-size:      0.65rem;
  color:          var(--terracotta);
  letter-spacing: 0.1em;
  flex-shrink:    0;
}
.usecase__sector {
  font-family:    var(--font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.08em;
  color:          var(--text-on-light-muted);
  text-transform: uppercase;
}
.usecase__title {
  font-family:    var(--font-display);
  font-size:      1.25rem;
  font-weight:    600;
  letter-spacing: -0.025em;
  color:          var(--text-on-light);
  line-height:    1.25;
  margin-bottom:  14px;
}
.usecase__desc {
  font-size:     0.9rem;
  line-height:   1.75;
  color:         rgba(12, 43, 31, 0.6);
  margin-bottom: 24px;
}
.usecase__outcome {
  padding:       16px;
  border-left:   2px solid var(--terracotta);
  font-size:     0.875rem;
  line-height:   1.6;
  color:         var(--text-on-light);
}
.usecase__outcome-label {
  display:        block;
  font-family:    var(--font-mono);
  font-size:      0.6rem;
  letter-spacing: 0.12em;
  color:          var(--terracotta);
  margin-bottom:  6px;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials__grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   2px;
  border-top:            1px solid var(--rule-light);
  margin-top:            -16px;
}
.testimonial {
  padding:    48px 0 0;
}
.testimonial + .testimonial {
  padding-left: 64px;
  border-left:  1px solid var(--rule-light);
}

.testimonial__quote {
  font-family:   var(--font-sans);
  font-size:     1rem;
  font-weight:   400;
  line-height:   1.75;
  color:         rgba(12, 43, 31, 0.75);
  margin-bottom: 36px;
}
.testimonial__author {
  display:        flex;
  flex-direction: column;
  gap:            4px;
}
.testimonial__name {
  font-family:    var(--font-display);
  font-size:      0.9375rem;
  font-weight:    600;
  letter-spacing: -0.01em;
  color:          var(--text-on-light);
}
.testimonial__role {
  font-family:    var(--font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  color:          var(--text-on-light-muted);
}

/* =====================
   FAQ
   ===================== */
.faq .display { margin-bottom: 0; }
.faq__list {
  margin-top: 56px;
  border-top: 1px solid var(--rule-dark);
}

.faq-item {
  border-bottom: 1px solid var(--rule-dark);
}
.faq-item__q {
  width:          100%;
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  gap:            24px;
  padding:        26px 0;
  background:     none;
  border:         none;
  cursor:         pointer;
  text-align:     left;
  font-family:    var(--font-display);
  font-size:      1.0625rem;
  font-weight:    500;
  letter-spacing: -0.01em;
  color:          var(--text-on-dark);
  transition:     color 0.2s;
}
.faq-item__q:hover { color: var(--cream); }

.faq-item__icon {
  font-size:    1.5rem;
  font-weight:  300;
  color:        var(--terracotta);
  flex-shrink:  0;
  transition:   transform 0.3s ease;
  line-height:  1;
  font-family:  var(--font-sans);
}
.faq-item.active .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.38s ease;
}
.faq-item.active .faq-item__a { max-height: 300px; }
.faq-item__a p {
  padding:     0 48px 28px 0;
  font-size:   0.9375rem;
  line-height: 1.75;
  color:       var(--text-on-dark-muted);
}

/* =====================
   CTA
   ===================== */
.cta__headline { margin-bottom: 24px; }
.cta__sub {
  font-size:     1.0625rem;
  line-height:   1.65;
  color:         var(--text-on-dark-muted);
  max-width:     480px;
  margin-bottom: 48px;
}
.cta__actions {
  display:     flex;
  align-items: center;
  gap:         16px;
  flex-wrap:   wrap;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display:        inline-flex;
  align-items:    center;
  font-family:    var(--font-mono);
  font-size:      0.75rem;
  letter-spacing: 0.08em;
  padding:        14px 28px;
  border-radius:  2px;
  cursor:         pointer;
  border:         none;
  transition:     all 0.2s;
  white-space:    nowrap;
}
.btn--primary {
  background: var(--terracotta);
  color:      white;
}
.btn--primary:hover {
  background: #b0541f;
}
.btn--ghost {
  background: transparent;
  color:      var(--text-on-dark-muted);
  border:     1px solid var(--rule-dark);
}
.btn--ghost:hover {
  color:        var(--text-on-dark);
  border-color: var(--rule-dark);
  background:   rgba(226, 221, 208, 0.06);
}

/* =====================
   FOOTER
   ===================== */
.footer { padding: 40px 0; }
.footer__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             24px;
  border-top:      1px solid var(--rule-dark);
  padding-top:     40px;
}
.footer__logo {
  font-family:    var(--font-display);
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: -0.025em;
  color:          var(--text-on-dark);
}
.footer__links {
  display:    flex;
  list-style: none;
  gap:        28px;
}
.footer__links a {
  font-size: 0.875rem;
  color:     var(--text-on-dark-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-on-dark); }
.footer__copy {
  font-family:    var(--font-mono);
  font-size:      0.65rem;
  letter-spacing: 0.1em;
  color:          var(--text-on-dark-muted);
}

/* =====================
   FADE-UP ANIMATION
   ===================== */
.fade-up {
  opacity:    0;
  transform:  translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav__rule  { margin: 0 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(3) { border-top: 1px solid var(--rule-light); padding-top: 32px; }
  .stat-block:nth-child(4) { border-top: 1px solid var(--rule-light); padding-top: 32px; border-right: none; }
}

@media (max-width: 860px) {
  .container   { padding: 0 24px; }
  .nav__rule   { margin: 0 24px; }
  .nav__tag    { display: none; }
  .nav__links  { display: none; }
  section      { padding: 72px 0; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .practices,
  .process__steps,
  .testimonials__grid,
  .usecases__grid {
    grid-template-columns: 1fr;
    background: none;
  }
  .usecase { padding: 32px 0; border-bottom: 1px solid var(--rule-light); }
  .usecase + .usecase { padding-left: 0; }
  .practice--dark { order: -1; }
  .process__step { padding: 0; margin-bottom: 40px; }
  .testimonial + .testimonial { padding-left: 0; border-left: none; border-top: 1px solid var(--rule-light); padding-top: 40px; }

  .hero__headline { font-size: clamp(2.75rem, 8vw, 4rem); }
  .hero__footer   { grid-template-columns: 1fr; }
  .hero__meta + .hero__meta { padding-left: 0; border-left: none; border-top: 1px solid var(--rule-dark); }

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

  .cta__actions { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; }
  .footer__links { flex-wrap: wrap; gap: 16px; }
}
