:root {
  --bg: #0D1117;
  --muted: #6E7681;
  --comment: #7EC699;
  --string: #4FC3DC;
  --keyword: #C586C0;
  --type: #4EC9B0;
  --status: #2F81F7;
  --white: #FFFFFF;

  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 96px;
}

a {
  color: var(--string);
  text-decoration: none;
  transition: opacity 120ms linear;
}

a:hover,
a:focus-visible {
  opacity: 0.7;
  outline: none;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 64px 64px;
}

@media (max-width: 720px) {
  main {
    padding: 64px 24px 48px;
  }
}

/* ---------- Hero ---------- */

.hero {
  margin-bottom: 96px;
}

.hero__lines {
  margin-bottom: 48px;
}

.hero__line {
  font-size: 16px;
  line-height: 1.8;
  color: var(--comment);
  display: flex;
  gap: 24px;
}

.hero__line .ln {
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
  text-align: right;
}

.hero__line .comment {
  color: var(--comment);
}

.hero__title {
  color: var(--white);
  font-size: clamp(64px, 11vw, 144px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.hero__cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.55em;
  background: var(--string);
  animation: blink 1.06s steps(2, jump-none) infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cursor { animation: none; }
}

.hero__tagline {
  color: var(--white);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
  margin-top: 40px;
  max-width: 820px;
  font-weight: 400;
}

/* ---------- Sections ---------- */

section {
  margin: 96px 0;
}

@media (max-width: 720px) {
  section {
    margin: 64px 0;
  }
  .hero {
    margin-bottom: 64px;
  }
}

.section__heading {
  color: var(--keyword);
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.section__heading::before {
  content: "// ";
  color: var(--muted);
}

p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--white);
  max-width: 760px;
}

p + p {
  margin-top: 24px;
}

em {
  font-style: normal;
  color: var(--string);
}

.rule {
  border: 0;
  border-top: 1px solid var(--muted);
  opacity: 0.4;
  margin: 0;
}

/* ---------- Video ---------- */

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--muted);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.card {
  border-left: 2px solid var(--muted);
  padding: 4px 0 4px 24px;
}

.card__title {
  color: var(--type);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.card__body {
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Award ---------- */

.award__box {
  border: 1px solid var(--muted);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 760px;
}

@media (max-width: 720px) {
  .award__box {
    padding: 32px;
    gap: 24px;
  }
}

.award__rank {
  color: var(--status);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
}

.award__line {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.award__line + .award__line {
  margin-top: 8px;
}

.award__line.muted {
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact__email {
  display: inline-block;
  color: var(--string);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  margin-top: 24px;
  letter-spacing: -0.01em;
}

/* ---------- Language switch ---------- */

.lang-switch {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--muted);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: border-color 120ms linear, color 120ms linear;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--string);
  color: var(--string);
  opacity: 1;
  outline: none;
}

@media (max-width: 720px) {
  .lang-switch {
    top: 16px;
    right: 16px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ---------- Status bar ---------- */

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--status);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.status-bar::-webkit-scrollbar {
  display: none;
}

.status-bar__sep {
  color: var(--white);
  opacity: 0.6;
}

.status-bar__lang-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  flex-shrink: 0;
}

.status-bar__lang {
  color: var(--white);
  font-size: inherit;
  letter-spacing: 0.05em;
  transition: opacity 120ms linear;
}

a.status-bar__lang {
  text-decoration: none;
}

.status-bar__lang--active {
  opacity: 1;
  font-weight: 700;
}

.status-bar__lang--inactive {
  opacity: 0.5;
}

.status-bar__lang--inactive:hover,
.status-bar__lang--inactive:focus-visible {
  opacity: 1;
}

.status-bar__lang-sep {
  color: var(--white);
  opacity: 0.4;
}

@media (max-width: 720px) {
  .status-bar {
    padding: 0 16px;
    font-size: 12px;
    height: 40px;
  }
  body {
    padding-bottom: 64px;
  }
}

/* ---------- Selection ---------- */

::selection {
  background: var(--status);
  color: var(--white);
}
