:root {
  --bg: #07080c;
  --surface: #101218;
  --surface-border: #242834;
  --text: #f4f4f6;
  --muted: #a0a5b3;
  --accent: #3b82f6;
  --line: #1a1d26;
}

body[data-theme="light"] {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-border: #d9deea;
  --text: #11131a;
  --muted: #515866;
  --accent: #2563eb;
  --line: #e4e7ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 4.2rem;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  padding: 0.95rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
}

.brand-accent {
  color: var(--accent);
}

.hero {
  min-height: 46vh;
  display: grid;
  place-items: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--accent);
}

.lead {
  margin: 0.75rem auto 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

.cta {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 40%, transparent);
}

.section {
  padding: 2.8rem 0 3.8rem;
}

h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.section-lead {
  margin: 0.2rem auto 1.2rem;
  max-width: 62ch;
  text-align: center;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.3rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--surface-border));
  box-shadow: 0 14px 26px color-mix(in srgb, var(--accent) 18%, transparent);
}

.emoji {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  border-top: 1px solid var(--line);
  padding: 0.65rem 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-link,
.icon-button {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-link:hover,
.icon-button:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-link svg,
.icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  cursor: pointer;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    gap: 0.5rem;
  }
}
