:root {
  --bg: #1d1830;
  --surface: #26203d;
  --surface-soft: #30284a;
  --fg: #f5f7fb;
  --muted: #a8b3c4;
  --border: rgba(245, 247, 251, 0.12);
  --accent: #f2c14e;
  --accent-dark: #ffd166;
  --accent-soft: rgba(242, 193, 78, 0.14);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

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

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 18px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 76px);
  background: rgba(29, 24, 48, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--bg);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.brand-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

.hero,
.section,
.contact {
  padding-left: clamp(20px, 6vw, 86px);
  padding-right: clamp(20px, 6vw, 86px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding-top: 76px;
  padding-bottom: 104px;
}

.kicker,
.section-meta,
.system-panel span,
.problem-list span,
.case-list span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 16px;
}

.lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: #c8d1df;
  font-size: clamp(20px, 2vw, 25px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-weight: 850;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border);
}

.visual-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.visual-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.system-panel {
  color: #fff;
  background: #181329;
}

.panel-head,
.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-head {
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  padding-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
}

.system-row strong {
  text-transform: lowercase;
}

.system-panel span {
  color: var(--accent);
}

.system-panel strong {
  color: #fff;
}

.system-row strong {
  text-align: right;
}

.section {
  display: grid;
  grid-template-columns: minmax(170px, 0.26fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  padding-top: 92px;
  padding-bottom: 92px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.problems {
  background: #231d38;
}

.cases {
  background: var(--surface);
}

.section-content {
  max-width: 1040px;
}

.about .section-content {
  max-width: 820px;
}

.about p {
  max-width: 760px;
  font-size: clamp(20px, 2.1vw, 25px);
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--border);
  border: 1px solid var(--border);
}

.problem-list article {
  min-height: 230px;
  padding: 26px;
  background: var(--surface);
}

.problem-list article:nth-child(2),
.problem-list article:nth-child(3) {
  background: var(--surface-soft);
}

.problem-list span {
  display: inline-flex;
  margin-bottom: 52px;
}

.problem-list p {
  margin-bottom: 0;
}

.case-list {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.case-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.case-list p {
  max-width: 720px;
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 92px;
  border-top: 1px solid var(--border);
  background: #151024;
}

.contact h2 {
  max-width: 820px;
  color: #fff;
}

.contact p {
  max-width: 620px;
  color: #c8d1df;
}

.contact .button.primary {
  color: var(--bg);
  background: var(--accent);
}

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

.contact .button.secondary {
  color: #fff;
  background: transparent;
  border-color: var(--border);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

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

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

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(-3px) rotate(45deg);
  }

  50% {
    transform: translateY(5px) rotate(45deg);
  }
}

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

  .scroll-cue span {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 940px) {
  .hero,
  .section,
  .contact,
  .problem-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .system-panel {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }

  h1 {
    font-size: clamp(50px, 17vw, 82px);
  }

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

  .case-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
