*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0c;
  --bg-elevated: #121216;
  --border: #222228;
  --border-bright: #33333c;
  --text: #a8a8b0;
  --text-dim: #585860;
  --text-bright: #e4e4ea;
  --accent: #707078;
  --accent-hover: #c0c0c8;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.bg-effects,
.cursor-glow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .bg-effects {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .bg-grid {
    position: absolute;
    inset: -24px;
    background-image:
      radial-gradient(rgba(74, 222, 128, 0.14) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: grid-shift 40s linear infinite;
    opacity: 0.35;
  }

  .bg-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(74, 222, 128, 0.16) 50%,
      transparent 100%
    );
    box-shadow: 0 0 32px rgba(74, 222, 128, 0.1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, -4px, 0);
    animation: scan-down 14s linear infinite;
  }

  .bg-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(74, 222, 128, 0.08) 30%,
      rgba(74, 222, 128, 0.08) 70%,
      transparent 100%
    );
    animation: line-pulse 6s ease-in-out infinite;
  }

  .bg-line--1 {
    left: 18%;
    animation-delay: 0s;
  }

  .bg-line--2 {
    right: 22%;
    animation-delay: -3s;
  }

  .cursor-glow {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    margin: 0;
    pointer-events: none;
    z-index: 50;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(74, 222, 128, 0.28) 0%,
      rgba(74, 222, 128, 0.1) 42%,
      transparent 72%
    );
    will-change: transform;
    transform: translate(-9999px, -9999px);
  }
}

@keyframes grid-shift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(32px, 32px);
  }
}

@keyframes scan-down {
  0% {
    transform: translate3d(0, -4px, 0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, calc(100vh + 4px), 0);
    opacity: 0;
  }
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-scan,
  .bg-line {
    animation: none;
  }

  .bg-scan {
    display: none;
  }

  .cursor-glow {
    display: none !important;
  }
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

main {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-prefix {
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.btn-primary {
  color: var(--text-bright);
  background: var(--bg-elevated);
  border-color: var(--border-bright);
}

.btn-primary:hover {
  border-color: var(--accent);
  background: #18181e;
}

.btn-primary:hover .btn-prefix {
  color: var(--accent-hover);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  color: var(--text-bright);
  border-color: var(--accent);
}

.btn-secondary:hover .btn-prefix {
  color: var(--accent-hover);
}

.block {
  padding: 2rem 0 2.5rem;
}

.section-label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.accordion {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 0.625rem;
  transition: border-color 0.15s;
}

.accordion:last-child {
  margin-bottom: 0;
}

.accordion[open] {
  border-color: var(--border-bright);
  box-shadow: inset 3px 0 0 var(--border-bright);
}

.accordion summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.item-id {
  font-size: 0.6875rem;
  color: var(--text-dim);
  min-width: 1.25rem;
}

.accordion summary::after {
  content: "+";
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.accordion[open] summary::after {
  content: "−";
  color: var(--accent-hover);
}

.accordion summary:hover {
  background: #18181e;
}

.accordion-body {
  padding: 0 1rem 1.125rem;
  border-top: 1px solid var(--border);
}

.price-intro {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.tier {
  margin-bottom: 0.875rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.tier:last-of-type {
  margin-bottom: 0;
}

.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.tier-name {
  font-size: 0.75rem;
  color: var(--accent-hover);
  flex: 1;
  min-width: 0;
}

.tier-name::before {
  content: "— ";
  color: var(--text-dim);
}

.tier-price {
  font-size: 0.75rem;
  color: #4ade80;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.tier p {
  font-size: 0.75rem;
  color: var(--text);
}

.note {
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.note strong {
  color: var(--text);
  font-weight: 400;
}

.site-footer {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
}

.footer-label {
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-sep {
  color: var(--text-dim);
  opacity: 0.4;
}

.site-footer a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (max-width: 480px) {
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

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

  .btn {
    width: 100%;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
    flex-wrap: wrap;
  }
}
