@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f4f0;
  --fg: #2a2a2a;
  --fg-muted: #6b6b6b;
  --fg-subtle: #a3a3a3;
  --card: #ffffff;
  --primary: #9bc83e;
  --primary-rgb: 155, 200, 62;
  --primary-fg: #1a1a1a;
  --muted: #ebeae6;
  --border: #d4d3cf;
  --border-dashed: #c8c7c3;
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

.dark {
  --bg: #1a1a1a;
  --fg: #f5f4f0;
  --fg-muted: #a3a3a3;
  --fg-subtle: #6b6b6b;
  --card: #242424;
  --primary: #b8e060;
  --primary-rgb: 184, 224, 96;
  --primary-fg: #1a1a1a;
  --muted: #2e2e2e;
  --border: #3a3a3a;
  --border-dashed: #444444;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot grid overlay */
.dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--fg) 1.5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Star canvas */
#star-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.page-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 36px; height: 36px; display: block; }
.brand img.brand-logo-light { display: none; }
.dark .brand img.brand-logo-dark { display: none; }
.dark .brand img.brand-logo-light { display: block; }

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.4;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.75rem;
  border: 2px dashed var(--border);
  background: var(--card);
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-dashed);
  background: color-mix(in srgb, var(--card) 75%, transparent);
}

.theme-toggle svg { width: 16px; height: 16px; }

/* Main */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 0.375rem 1rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Headline */
.headline {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.headline-line1 {
  display: block;
  background: linear-gradient(to bottom, var(--fg), color-mix(in srgb, var(--fg) 70%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline-line2 {
  display: block;
  color: var(--primary);
}

/* Description */
.description {
  max-width: 28rem;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Social buttons */
.social-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  border: 2px dashed var(--border);
  background: var(--card);
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.social-btn:hover {
  border-color: var(--border-dashed);
  background: color-mix(in srgb, var(--card) 75%, transparent);
  color: var(--fg);
}

/* Tooltip */
.tooltip-wrapper .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}

.tooltip-wrapper .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--fg);
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .site-header { padding: 1.5rem 2rem; }
  .site-main { padding: 3rem 2rem; }
  .description { font-size: 1.125rem; }
}
