:root {
  --bg: #edf3ec;
  --bg-strong: #dfe9df;
  --surface: rgba(248, 252, 247, 0.84);
  --surface-strong: #f9fcf7;
  --line: rgba(31, 53, 35, 0.12);
  --text: #17311e;
  --muted: #4e6553;
  --accent: #3f8a57;
  --accent-strong: #215b35;
  --shadow: 0 24px 60px rgba(38, 82, 44, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(63, 138, 87, 0.22), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(119, 166, 108, 0.18), transparent 28%),
    linear-gradient(180deg, #eff6ed 0%, #e7f0e5 42%, #edf3ec 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 29, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 29, 26, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 252, 244, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(37, 72, 41, 0.08);
}

.brand,
.nav a,
.lang-chip {
  color: inherit;
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 252, 247, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 91, 53, 0.1), rgba(33, 91, 53, 0.04));
  border: 1px solid rgba(33, 91, 53, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  letter-spacing: -0.02em;
}

.nav {
  display: inline-flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.lang-chip {
  min-width: 56px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lang-chip.is-active {
  background: var(--accent-strong);
  color: #f4fbf1;
}

.section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  min-height: 76vh;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-layout,
.story-points,
.timeline-list,
.capability-grid,
.references-layout,
.landscape-grid,
.metrics-band,
.screens-grid {
  display: grid;
  gap: 20px;
}

.eyebrow,
.card-kicker,
.signal-label,
.timeline-item span {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.hero-text,
.feature-card p,
.story-point p,
.timeline-item p,
.contact-panel p,
.signal-copy {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #f5fcf3;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-panel {
  grid-template-rows: auto 1fr;
}

.preview-stage {
  position: relative;
  min-height: 560px;
  padding: 18px;
  border: 1px solid rgba(31, 53, 35, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at top right, rgba(63, 138, 87, 0.14), transparent 34%),
    var(--surface-strong);
  overflow: hidden;
}

.preview-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23, 49, 30, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 30, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
}

.preview-frame,
.preview-note {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(23, 49, 30, 0.14);
}

.preview-frame {
  overflow: hidden;
  border: 1px solid rgba(31, 53, 35, 0.12);
  background: #fff;
}

.preview-frame-wide {
  top: 42px;
  left: 28px;
  width: 76%;
  transform: rotate(-1.5deg);
}

.preview-frame-tall {
  top: 160px;
  right: 24px;
  width: 36%;
  transform: rotate(2.5deg);
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.preview-note {
  max-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 53, 35, 0.08);
  background: rgba(249, 252, 247, 0.96);
  backdrop-filter: blur(10px);
}

.preview-note-left {
  left: 16px;
  bottom: 18px;
}

.preview-note-right {
  right: 18px;
  bottom: 32px;
}

.preview-note-bottom {
  left: 240px;
  bottom: 12px;
}

.preview-note-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.preview-note-text {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.signal-card,
.feature-card,
.story-point,
.timeline-item,
.contact-panel {
  padding: 24px;
  border: 1px solid rgba(31, 29, 26, 0.09);
  border-radius: 24px;
  background: var(--surface-strong);
}

.signal-card {
  background:
    linear-gradient(135deg, rgba(63, 138, 87, 0.96), rgba(33, 91, 53, 0.98)),
    var(--surface-strong);
  color: #f6fff4;
}

.signal-card .signal-label,
.signal-card .signal-copy,
.signal-card .signal-title {
  color: inherit;
}

.signal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

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

.signal-grid article,
.timeline-item {
  display: grid;
  gap: 10px;
}

.signal-grid article span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(63, 138, 87, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.signal-grid article p {
  color: var(--muted);
  line-height: 1.6;
}

.section-grid,
.story-band,
.timeline,
.capability-band,
.references-band,
.landscape-band,
.screens-band {
  display: grid;
  gap: 24px;
}

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

.screen-card {
  overflow: hidden;
  border: 1px solid rgba(31, 53, 35, 0.1);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 18px 48px rgba(38, 82, 44, 0.08);
}

.screen-card-featured {
  grid-column: span 3;
}

.screen-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(31, 53, 35, 0.08);
  background: #dde9de;
}

.screen-card figcaption {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.screen-card p {
  color: var(--muted);
  line-height: 1.6;
}

.evidence-card {
  display: grid;
  grid-column: span 2;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(31, 53, 35, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at top right, rgba(63, 138, 87, 0.14), transparent 42%),
    var(--surface-strong);
}

.evidence-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-layout {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.metrics-band {
  grid-template-columns: repeat(4, 1fr);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(23, 49, 30, 0.98), rgba(33, 91, 53, 0.94)),
    var(--surface);
  color: #f4fff1;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.metric span {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 0.95;
}

.metric p {
  color: rgba(244, 255, 241, 0.82);
  line-height: 1.5;
}

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

.capability-card,
.reference-quote,
.reference-panel,
.landscape-core {
  padding: 26px;
  border: 1px solid rgba(31, 29, 26, 0.09);
  border-radius: 24px;
  background: var(--surface-strong);
}

.capability-card {
  display: grid;
  gap: 14px;
  min-height: 240px;
}

.capability-card:nth-child(2),
.capability-card:nth-child(5) {
  background:
    radial-gradient(circle at top right, rgba(119, 166, 108, 0.18), transparent 40%),
    var(--surface-strong);
}

.capability-card:nth-child(3),
.capability-card:nth-child(6) {
  background:
    radial-gradient(circle at top left, rgba(63, 138, 87, 0.16), transparent 35%),
    var(--surface-strong);
}

.landscape-grid,
.references-layout {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.landscape-core {
  display: grid;
  gap: 12px;
}

.landscape-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06)),
    var(--surface-strong);
}

.landscape-list span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(31, 29, 26, 0.09);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  color: var(--text);
  font-weight: 700;
}

.feature-card-large {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06)),
    var(--surface-strong);
}

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

.contact-panel {
  display: grid;
  gap: 18px;
  justify-items: start;
  background:
    radial-gradient(circle at top right, rgba(119, 166, 108, 0.22), transparent 40%),
    var(--surface-strong);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

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

@media (max-width: 960px) {
  .topbar,
  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .feature-layout,
  .story-points,
  .timeline-list,
  .capability-grid,
  .metrics-band,
  .landscape-grid,
  .references-layout,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .screen-card-featured,
  .evidence-card {
    grid-column: auto;
  }

  .preview-stage {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 16px;
  }

  .preview-frame,
  .preview-note {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar,
  .section {
    padding: 20px;
    border-radius: 22px;
  }

  .hero {
    min-height: auto;
  }

  .nav {
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .contact-actions .button {
    width: 100%;
  }
}
