:root {
  --brand-blue: #4285F4;
  --brand-green: #34A853;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E6E9EF;
  --text: #202124;
  --text-soft: #5F6368;

  --footer-height: 52px;
}

[data-theme="dark"] {
  --bg: #16171A;
  --surface: #1E1F23;
  --border: #2C2E33;
  --text: #F4F5F7;
  --text-soft: #A7ABB3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand-blue); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Controls (floating, not a header bar) ---------- */
.page-controls {
  position: fixed;
  top: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  z-index: 50;
  display: flex;
  gap: 8px;
}

.control-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.control-btn:hover { color: var(--text); border-color: var(--brand-blue); }
.control-btn .icon-moon { display: none; }
[data-theme="dark"] .control-btn .icon-sun { display: none; }
[data-theme="dark"] .control-btn .icon-moon { display: block; }

/* ---------- Hero ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--footer-height));
  padding: clamp(48px, 10vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  width: 100%;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo svg {
  width: clamp(120px, 28vw, 180px);
  height: clamp(120px, 28vw, 180px);
}

.brand-word {
  margin-top: clamp(12px, 2.5vw, 20px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--text);
  letter-spacing: -.02em;
}
.brand-x { color: var(--brand-blue); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(20px, 4vw, 32px);
  font-size: clamp(12px, 2.5vw, 13px);
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  flex-shrink: 0;
}

.hero-title {
  margin-top: clamp(20px, 4vw, 28px);
  font-size: clamp(26px, 5.5vw, 44px);
  font-weight: 700;
}
.hero-title .accent {
  display: block;
  color: var(--brand-blue);
}
.hero-sub {
  margin-top: clamp(14px, 3vw, 20px);
  max-width: 420px;
  font-size: clamp(15px, 2.8vw, 17px);
  color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 48px);
}
.footer-copy { color: var(--text-soft); font-size: 13px; }

@media (min-width: 480px) {
  .hero-title .accent { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
