:root {
  color-scheme: dark;
  --bg: #0a0d0a;
  --surface: #12160f;
  --surface-2: #171c14;
  --border: #2a2e24;
  --text: #ebeee6;
  --text-muted: #97a08c;
  --green: #5fd35a;
  --green-bright: #86e876;
  --gold: #e8b93b;
  --danger: #e0523f;
  --font-display: "Bebas Neue", "Oswald", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Зернистая текстура поверх всей страницы — снимает "гладкость" плоских
   градиентов, которая обычно и выдаёт сгенерированный дизайн. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("/grain.svg");
  background-size: 200px 200px;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Штамп/наклейка вместо круглого "eyebrow"-бейджа. */
.stamp {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  position: relative;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(232, 185, 59, 0.55);
  pointer-events: none;
}

/* Диагональная "лента опасности" — акцент между секциями. */
.hazard {
  height: 9px;
  background-image: repeating-linear-gradient(-45deg, var(--gold) 0 16px, #10130d 16px 32px);
  opacity: 0.9;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 13, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--green-bright);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
}

.site-nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-nav a {
  text-decoration: none;
}

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

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #05130a;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid #0a1a08;
  box-shadow: 3px 3px 0 0 var(--gold);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-play:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--gold);
}

.btn-play:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--gold);
}

/* Hero — асимметрия, крупная типографика на фоне вместо мягких пятен-глоу */

.hero {
  position: relative;
  padding: 64px 20px 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Кусты вдоль нижнего края hero — покачиваются от ветра (не статичный текст-вотермарк). */
.hero-bushes {
  position: absolute;
  inset: auto 0 0 0;
  height: 38vh;
  min-height: 220px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bush {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  animation: hero-sway ease-in-out infinite;
  color: #142016;
}

.bush svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bush-1 {
  left: -4%;
  width: 30vw;
  height: 26vh;
  animation-duration: 4.2s;
  animation-delay: 0.2s;
  --sway: 3deg;
}
.bush-2 {
  left: 18%;
  width: 22vw;
  height: 19vh;
  color: #1b2a1d;
  animation-duration: 5s;
  animation-delay: 1.1s;
  --sway: 2.2deg;
}
.bush-3 {
  left: 40%;
  width: 20vw;
  height: 15vh;
  color: #1b2a1d;
  animation-duration: 3.8s;
  animation-delay: 0.6s;
  --sway: 2.6deg;
}
.bush-4 {
  left: 66%;
  width: 26vw;
  height: 22vh;
  animation-duration: 4.6s;
  animation-delay: 1.6s;
  --sway: 3.4deg;
}
.bush-5 {
  left: 86%;
  width: 24vw;
  height: 30vh;
  color: #1b2a1d;
  animation-duration: 5.4s;
  animation-delay: 0.4s;
  --sway: 2.4deg;
}

@keyframes hero-sway {
  0%,
  100% {
    transform: rotate(calc(var(--sway, 3deg) * -1));
  }
  50% {
    transform: rotate(var(--sway, 3deg));
  }
}

.hero-bushes-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 55%);
}

@media (prefers-reduced-motion: reduce) {
  .bush {
    animation: none;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  max-width: 680px;
}

.hero .stamp {
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--text);
}

.hero h1 span {
  color: var(--green-bright);
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.btn-play.lg {
  font-size: 16px;
  padding: 14px 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Arc strip — дачная грядка -> балкон -> гроубокс -> синдикат */

.arc {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 760px;
}

@media (min-width: 700px) {
  .arc {
    grid-template-columns: repeat(4, 1fr);
  }
}

.arc-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  padding: 12px 12px 12px 14px;
}

.arc-step svg {
  color: var(--green-bright);
  margin-bottom: 8px;
}

.arc-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.arc-step b {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* Section shell */

section {
  padding: 60px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}

.section-head .stamp {
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

/* Feature grid — приколото как на пробковой доске, не ровная SaaS-сетка */

.chainlink {
  background-image: repeating-linear-gradient(45deg, rgba(151, 160, 140, 0.07) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, rgba(151, 160, 140, 0.07) 0 1px, transparent 1px 15px);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 22px;
}

@media (min-width: 620px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 20px 20px;
  box-shadow: 5px 6px 0 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.feature-card:nth-child(6n + 1) {
  transform: rotate(-1.1deg);
}
.feature-card:nth-child(6n + 2) {
  transform: rotate(0.8deg);
}
.feature-card:nth-child(6n + 3) {
  transform: rotate(-0.5deg);
}
.feature-card:nth-child(6n + 4) {
  transform: rotate(1deg);
}
.feature-card:nth-child(6n + 5) {
  transform: rotate(-0.9deg);
}
.feature-card:nth-child(6n + 6) {
  transform: rotate(0.5deg);
}

.feature-card:hover {
  transform: rotate(0deg) translateY(-3px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 26px;
  width: 44px;
  height: 16px;
  background: rgba(232, 185, 59, 0.4);
  border: 1px solid rgba(232, 185, 59, 0.6);
  transform: rotate(-3deg);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-bright);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  font-weight: 400;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* News — "дело"/досье вместо карточек-уведомлений */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  padding-top: 0;
}

.news-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--border);
  line-height: 1;
}

.news-item time {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.news-item h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.news-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 560px;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 8px;
}

/* Final CTA */

.cta-band {
  text-align: left;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 6px;
  max-width: 420px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */

.site-footer {
  padding: 28px 20px 40px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.site-footer .brand-word {
  font-size: 16px;
  color: var(--text);
}
