:root {
  --bg: #0a0b0c;
  --surface: #111214;
  --border: rgba(255,255,255,0.07);
  --text: #e8e6e1;
  --muted: rgba(232,230,225,0.45);
  --accent: #c8f53c;
  --accent-dim: rgba(200,245,60,0.12);
  --orange: #f6821f;
  --mono: 'Space Mono', monospace;
  --sans: 'Syne', sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}

/* Noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Subtle grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 28px 40px 28px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fade-up 0.6s ease both;
}

.wordmark {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.wordmark .dot {
  color: var(--accent);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(200,245,60,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Main content */
.main-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 720px;
  animation: fade-up 0.7s 0.1s ease both;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.headline {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.line-2 {
  color: var(--text);
}

.accent {
  color: var(--accent);
  animation: blink 1.1s step-start infinite;
}

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

.subtext {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 40px;
  max-width: 520px;
}

/* Deploy buttons */
.deploy-options {
  display: flex;
  gap: 12px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.deploy-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

.deploy-btn.primary {
  background: var(--accent);
  color: #0a0b0c;
  border: 1px solid var(--accent);
}

.deploy-btn.primary:hover {
  background: transparent;
  color: var(--accent);
}

.deploy-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.deploy-btn.secondary:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.deploy-btn.primary .btn-icon {
  filter: brightness(0);
}

.deploy-btn.primary:hover .btn-icon {
  filter: brightness(0) saturate(0) invert(0) sepia(1) hue-rotate(50deg) brightness(1);
}

.arrow {
  margin-left: 4px;
  transition: transform 0.18s ease;
}

.deploy-btn:hover .arrow {
  transform: translateX(4px);
}

/* Metrics */
.metrics-row {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fade-up 0.7s 0.25s ease both;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* World map */
.world-wrap {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  pointer-events: none;
  animation: fade-in 1.2s 0.3s ease both;
}

.world-map {
  width: 100%;
  opacity: 0.12;
  filter: brightness(2) hue-rotate(180deg) saturate(3);
}

.world-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200,245,60,0.06) 0%, transparent 70%);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fade-up 0.6s 0.4s ease both;
}

.docs-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

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

.cf-link img {
  height: 28px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.cf-link:hover img {
  opacity: 0.7;
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 24px 24px;
  }

  .world-wrap {
    opacity: 0.5;
    width: 100%;
    right: 0;
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .headline {
    font-size: clamp(44px, 13vw, 72px);
  }

  .metrics-row {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  html, body {
    overflow: auto;
  }

  .container {
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }

  .deploy-options {
    flex-direction: column;
  }

  .deploy-btn {
    justify-content: space-between;
  }
}
