:root {
  color-scheme: dark;
  --bg: #0d1110;
  --ink: #f4f1e8;
  --muted: #a9b0a8;
  --line: rgba(244, 241, 232, 0.14);
  --panel: #151a18;
  --panel-soft: rgba(21, 26, 24, 0.78);
  --green: #8ee86f;
  --cyan: #52d6c9;
  --blue: #7aa7ff;
  --amber: #f1bc55;
  --red: #ff776b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 16, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(142, 232, 111, 0.48);
  border-radius: 8px;
  background: rgba(142, 232, 111, 0.12);
  color: var(--green);
  font-size: 13px;
}

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

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

.nav-cta {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(82, 214, 201, 0.48);
  border-radius: 8px;
  color: var(--cyan);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.language-switch button.is-active {
  background: var(--green);
  color: #071008;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 112px clamp(18px, 4vw, 56px) 58px;
}

.hero-bg,
.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(13, 17, 16, 0.96), rgba(13, 17, 16, 0.66) 48%, rgba(13, 17, 16, 0.36)),
    linear-gradient(0deg, rgba(13, 17, 16, 0.94), transparent 42%),
    #0d1110;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(30px, 6vw, 78px);
  align-items: end;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 710px;
  color: #d6dbd0;
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  background: var(--green);
  color: #071008;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.button.light {
  background: var(--ink);
  color: #071008;
}

.button.light-outline {
  border-color: rgba(244, 241, 232, 0.32);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.terminal-card,
.dashboard-card,
.calc-panel,
.contact,
.service-item,
.price-card,
.problem-grid article,
.workflow div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.terminal-card {
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) {
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.terminal-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.terminal-body {
  min-height: 292px;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.terminal-body p {
  margin-bottom: 12px;
  color: #d5ddd0;
}

.terminal-body span {
  color: var(--cyan);
}

.terminal-body b {
  color: var(--green);
}

.terminal-body p:nth-child(4) b {
  color: var(--amber);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121816;
}

.proof-strip div {
  min-height: 114px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.proof-strip span,
.workflow span,
.badge,
.dashboard-card span,
.calc-result span,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 24px);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.inline {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 28px;
  align-items: end;
}

.section-head p:not(.eyebrow),
.problem-grid p,
.service-item p,
.price-card p,
.workflow p,
.calculator p,
.contact p,
.scripts-section p {
  color: var(--muted);
}

.problem-grid,
.pricing-grid,
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.problem-grid article,
.workflow div {
  min-height: 220px;
  padding: 22px;
}

.problem-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: rgba(82, 214, 201, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.service-band {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(82, 214, 201, 0.11), transparent 35%),
    linear-gradient(315deg, rgba(142, 232, 111, 0.1), transparent 36%),
    #111715;
}

.service-band .section-head,
.service-layout {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.74fr);
  gap: 22px;
  align-items: stretch;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-item {
  min-height: 150px;
  padding: 24px;
  box-shadow: none;
}

.dashboard-card {
  padding: 22px;
  background: #151a18;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.rings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ring {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #151a18 56%, transparent 57%),
    conic-gradient(var(--green) var(--value), rgba(244, 241, 232, 0.1) 0);
}

.ring strong,
.ring span {
  grid-area: 1 / 1;
}

.ring strong {
  transform: translateY(-8px);
  font-size: 20px;
}

.ring span {
  align-self: center;
  transform: translateY(16px);
}

.bar-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.bar-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.bar-list span {
  color: var(--muted);
  font-size: 13px;
}

.bar-list i {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  min-height: 450px;
  padding: 24px;
  box-shadow: none;
}

.price-card.featured {
  border-color: rgba(142, 232, 111, 0.48);
  background: linear-gradient(180deg, rgba(142, 232, 111, 0.1), rgba(21, 26, 24, 0.88));
}

.badge {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
}

.price-card h3 {
  font-size: 34px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  color: #dbe0d8;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.commercial-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.commercial-notes article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 24, 0.72);
  padding: 20px;
}

.commercial-notes h3 {
  color: var(--cyan);
}

.commercial-notes p {
  margin-bottom: 0;
  color: var(--muted);
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.calc-panel {
  padding: 22px;
  box-shadow: none;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-label strong {
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

input[type="range"],
select {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--green);
}

select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1412;
  color: var(--ink);
  padding: 0 12px;
}

.calc-result {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(82, 214, 201, 0.1);
}

.calc-result strong {
  font-size: 28px;
}

.calc-result em {
  color: var(--green);
  font-style: normal;
}

.workflow div {
  box-shadow: none;
}

.workflow span {
  display: block;
  margin-bottom: 20px;
  color: var(--amber);
}

.scripts-section pre {
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111715;
  padding: 22px;
}

.scripts-section code {
  color: #dce3d8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 58px;
  padding: 34px;
  background: linear-gradient(90deg, rgba(142, 232, 111, 0.16), rgba(82, 214, 201, 0.1));
}

.contact h2 {
  font-size: clamp(28px, 3vw, 40px);
}

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

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 17, 16, 0.96);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .language-switch {
    width: 100%;
    margin: 8px 0;
  }

  .language-switch button {
    min-height: 42px;
  }

  .hero-inner,
  .service-layout,
  .calculator,
  .contact,
  .section-head.inline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .terminal-card {
    max-width: 560px;
  }

  .problem-grid,
  .pricing-grid,
  .commercial-notes,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 96px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(13, 17, 16, 0.96), rgba(13, 17, 16, 0.74)),
      linear-gradient(0deg, rgba(13, 17, 16, 0.94), transparent 42%),
      #0d1110;
  }

  h1 {
    font-size: 42px;
  }

  .proof-strip,
  .problem-grid,
  .pricing-grid,
  .commercial-notes,
  .workflow,
  .rings {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .contact {
    padding: 24px;
  }

  .contact-actions {
    justify-content: stretch;
  }

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