/* ZeroHost — dark gaming landing page */

:root {
  --bg: #0a0e14;
  --bg-elevated: #12171f;
  --bg-card: #161b24;
  --border: #2a3140;
  --border-accent: #3d5a2e;
  --text: #e8edf4;
  --text-muted: #8b95a8;
  --accent: #5dba3a;
  --accent-bright: #8ee05a;
  --accent-glow: rgba(93, 186, 58, 0.35);
  --accent-dim: rgba(93, 186, 58, 0.12);
  --max-width: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(93, 186, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 186, 58, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  z-index: -2;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow--left {
  top: -200px;
  left: -200px;
  background: var(--accent);
}

.bg-glow--right {
  top: 40%;
  right: -300px;
  background: #2d6b4a;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.15s;
}

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

code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  background: var(--accent-dim);
  color: var(--accent-bright);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #0a0e14;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-bright);
  color: #0a0e14;
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--accent-bright);
  border: 1.5px solid var(--border-accent);
}

.btn--outline:hover {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.zero {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 50%, #c8f090 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zeroGlow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

@keyframes zeroGlow {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 20px rgba(142, 224, 90, 0.5));
  }
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

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

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-diagram {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.flow-line {
  stroke: var(--border-accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.6;
}

.flow-node rect {
  transition: stroke 0.3s;
}

.flow-node--center {
  animation: pulseCenter 4s ease-in-out infinite;
}

@keyframes pulseCenter {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section__header {
  margin-bottom: 48px;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section__lead {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: 1.05rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.step:hover {
  border-color: var(--border-accent);
}

.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.section--pricing {
  padding-top: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-card--featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(93, 186, 58, 0.08);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  background: var(--accent);
  color: #0a0e14;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 20px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.price-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.price-card__period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card__alt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.price-card__alt strong {
  color: var(--text);
}

.price-card__features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.price-card__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Requirements */
.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.req-list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.req-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
}

.req-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.req-list p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-item summary {
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer__copy {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .req-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .price-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zero,
  .flow-node--center {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
