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

:root {
  --color-bg: #fafafa;
  --color-text: #0f0f0f;
  --color-text-muted: #555;
  --color-accent: #4f46e5;
  --color-accent-hover: #3730a3;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  &.dark {
    --color-bg: #0f0f0f;
    --color-text: #fafafa;
    --color-text-muted: #a0a0a0;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-text);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
  transition: transform 0.15s ease;

  &:hover {
    transform: scale(1.15);
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .icon-sun,
  .icon-moon {
    display: none;
  }
}

:root:not(.dark) .theme-toggle .icon-moon {
  display: block;
}

:root.dark .theme-toggle .icon-sun {
  display: block;
}

.header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;

  h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
    margin-bottom: 1.5rem;
  }
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;

  &:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }
}

.footer {
  padding-top: 2rem;

  p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
}
