/*
File: style.css
Version: 0.2
Last updated: 2026-07-29
System: frontend
*/

:root {
  --bg: #313131;
  --surface: #3a3a3a;
  --surface-2: #444444;
  --text: #f2f2f2;
  --text-muted: #cfcfcf;
  --border: rgba(242, 242, 242, 0.16);
  --border-strong: rgba(242, 242, 242, 0.32);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  --radius-pill: 999px;
  --radius-card: 28px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
  text-transform: lowercase;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.lang-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.lang-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 116px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lang-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--text);
  transition: transform var(--transition);
}

.lang-toggle[data-lang="en"] .lang-toggle__thumb {
  transform: translateX(100%);
}

.lang-toggle__option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.lang-toggle__option.is-active {
  color: var(--bg);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 8vw, 96px) 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 8ch;
}

.hero__text {
  margin: 28px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--text);
}

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

  .topbar {
    margin-bottom: 18px;
  }

  .hero__text {
    max-width: 100%;
  }

  .actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}