:root {
  --bg: #07110d;
  --bg-soft: #0c1712;
  --panel: rgba(13, 26, 19, 0.78);
  --panel-strong: rgba(17, 31, 23, 0.92);
  --line: rgba(154, 255, 205, 0.12);
  --text: #effaf2;
  --muted: #a5baaf;
  --green: #76f0a9;
  --green-strong: #2dca74;
  --green-deep: #1a8e50;
  --warning: #f0be5d;
  --error: #ef7070;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(72, 170, 112, 0.20), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(70, 214, 136, 0.16), transparent 28%),
    linear-gradient(180deg, #07100d 0%, #09130f 45%, #060b09 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 255, 205, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 255, 205, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 80%);
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 18, 14, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #c3ffd9 0%, var(--green) 48%, #167b43 100%);
  box-shadow: 0 0 24px rgba(118, 240, 169, 0.4);
}

.site-nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.button,
.text-link {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(118, 240, 169, 0.08);
}

.hero {
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1,
.section-heading h2,
.site-footer .footer-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #072514;
  background: linear-gradient(135deg, #aef8c9 0%, var(--green) 65%, #47cc7f 100%);
  box-shadow: 0 18px 40px rgba(62, 182, 112, 0.26);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(118, 240, 169, 0.06);
}

.package-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 28, 20, 0.92) 0%, rgba(9, 18, 13, 0.94) 100%);
  box-shadow: var(--shadow);
}

.clean-window-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.clean-window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 250, 242, 0.18);
}

.clean-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.clean-row-warning {
  background: rgba(240, 190, 93, 0.12);
}

.clean-row-error {
  background: rgba(239, 112, 112, 0.14);
}

.clean-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.clean-dot-info {
  background: rgba(239, 250, 242, 0.55);
}

.clean-dot-warning {
  background: var(--warning);
}

.clean-dot-error {
  background: var(--error);
}

.clean-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 250, 242, 0.95), rgba(239, 250, 242, 0.28));
}

.clean-line-long {
  width: 100%;
}

.clean-line-medium {
  width: 78%;
}

.clean-line-short {
  width: 56%;
}

.clean-badge,
.clean-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.clean-badge {
  color: white;
  background: rgba(26, 161, 88, 0.85);
}

.clean-source {
  color: #dff7e7;
  background: rgba(118, 240, 169, 0.08);
  border: 1px solid rgba(118, 240, 169, 0.18);
}

.selection-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 240, 169, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 240, 169, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.selection-loop {
  position: absolute;
  inset: 38px 36px 60px;
  border: 3px solid rgba(118, 240, 169, 0.95);
  border-radius: 53% 47% 58% 42% / 44% 58% 42% 56%;
  box-shadow:
    0 0 0 10px rgba(118, 240, 169, 0.08),
    0 0 40px rgba(118, 240, 169, 0.18);
}

.selection-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #072514;
  background: linear-gradient(135deg, #aef8c9, var(--green));
  font-size: 0.86rem;
  font-weight: 700;
}

.package-grid {
  display: grid;
  gap: 18px;
}

.footer-note {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.about-strip h2,
.info-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

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

.package-card {
  overflow: hidden;
  border-radius: 26px;
}

.package-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(118, 240, 169, 0), rgba(118, 240, 169, 0.88), rgba(118, 240, 169, 0));
  opacity: 0.45;
}

.package-card-clean {
  background:
    radial-gradient(circle at top right, rgba(118, 240, 169, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 35, 26, 0.95) 0%, rgba(9, 18, 13, 0.96) 100%);
}

.package-card-selection {
  background:
    radial-gradient(circle at 20% 0%, rgba(118, 240, 169, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(15, 28, 20, 0.92) 0%, rgba(9, 18, 13, 0.94) 100%);
}

.package-art {
  padding: 24px;
  min-height: 240px;
  border-bottom: 1px solid rgba(118, 240, 169, 0.08);
}

.clean-window,
.selection-scene {
  height: 100%;
  border-radius: 24px;
}

.clean-window {
  padding: 20px;
  background: linear-gradient(180deg, rgba(14, 24, 19, 0.96), rgba(8, 14, 11, 0.98));
}

.selection-scene {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(118, 240, 169, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(12, 24, 18, 0.94), rgba(8, 14, 11, 0.98));
}

.package-body {
  padding: 20px 24px 24px;
}

.package-body h3 {
  margin: 0;
  font-size: 1.75rem;
}

.package-link,
.footer-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
  align-items: end;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    top: 8px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .site-nav {
    justify-content: space-between;
  }

  .package-card {
    border-radius: 22px;
  }

  .site-footer {
    align-items: start;
  }
}
