@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Kameron:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  color-scheme: dark;
  --bg: #282828;
  --surface: #3c3836;
  --surface-muted: #32302f;
  --text: #ebdbb2;
  --muted: #a89984;
  --accent: #b8bb26;
  --accent-strong: #fabd2f;
  --border: #504945;
  --shadow: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf1c7;
  --surface: #ebdbb2;
  --surface-muted: #f2e5bc;
  --text: #3c3836;
  --muted: #7c6f64;
  --accent: #98971a;
  --accent-strong: #d79921;
  --border: #bdae93;
  --shadow: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'JetBrains Mono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/*.language-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--surface);
  background-image: none;
  min-width: 110px;
  padding-right: 3p;
}*/

.language-select::-ms-expand {
  display: none;
}

.select-wrapper::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}

.language-select:hover {
  border-color: var(--accent);
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.language-select option {
  background: var(--surface);
  color: var(--text);
}

.theme-toggle, .language-toggle {
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.feature-grid article {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-grid article:hover,
.feature-grid article:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border-color: var(--accent);
}

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

.brand {
  display: grid;
  gap: 8px;
}

.brand-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-toggle, .language-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.theme-toggle:hover, .language-toggle:hover {
  background: var(--surface-muted);
  transform: translateY(-1px);
}

.content {
  display: grid;
  gap: 40px;
}

.hero {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 50px var(--shadow);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button {
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-strong);
}

.link {
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.link:hover {
  border-color: var(--accent);
}

.panel {
  display: grid;
  gap: 24px;
}

.panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 18px 32px;
  }

  .hero,
  .feature-grid article {
    padding: 24px;
  }
}
