/* Scoreboard landing page. Tokens mirror the app's dark theme
   (scoreboard/lib/core/theme.dart): graphite surfaces, gold accent,
   Geist for display and Inter for reading. Interest comes from type,
   contrast and composition, not from glows or gradients. */

:root {
  --bg: #0e0f11;
  --bg-alt: #131417;
  --surface: #18191d;
  --surface-raised: #212328;
  --border: #2a2c32;
  --text: #ecedef;
  --muted: #8c9099;
  --gold: #e9b949;
  --gold-hover: #f0c968;
  --gold-soft: rgba(233, 185, 73, 0.14);
  --on-gold: #1c1505;
  --blue: #4a9fd8;
  --blue-soft: rgba(74, 159, 216, 0.14);
  --green: #4ca36a;
  --green-soft: rgba(76, 163, 106, 0.14);

  --font-display: Geist, Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.icon {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container.narrow {
  max-width: 800px;
}

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons: the gold one is the action; the rest stay neutral. */

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

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

/* The arrow nudges forward, the only motion on the page. */
.button .icon {
  transition: transform 0.15s ease;
}

.button:hover .icon {
  transform: translateX(2px);
}

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

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.button-small {
  padding: 7px 14px;
  font-size: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--on-gold);
}

.logo-mark.large {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.header-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }

  .language-menu {
    margin-left: auto;
  }
}

/* On phones the hero's own button, right below, asks for the demo. */
@media (max-width: 480px) {
  .header-inner .button-small {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 96px 0 80px;
}

.hero .container {
  display: grid;
  gap: 56px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: var(--space-lg) 0 var(--space-xl);
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* The app's stat strip: one hairline panel, label over a big figure. */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 18px 22px 20px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* The last figure is the punchline. */
.stat:last-child dd {
  color: var(--gold);
}

@media (max-width: 720px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* Screenshots */

.screenshot {
  margin: 0;
}

.window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.8);
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot figcaption {
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: 14px;
}

/* Sections */

.section {
  padding: 112px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-title.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title h2,
.cta h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-title .lead {
  margin-top: var(--space-lg);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold);
}

/* Recognition types */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.type-card {
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.type-card.verified .icon-tile {
  background: var(--blue-soft);
  color: var(--blue);
}

.type-card.peer .icon-tile {
  background: var(--green-soft);
  color: var(--green);
}

.type-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.type-card h3 {
  font-size: 22px;
}

.check-list {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
}

.check-list .icon {
  margin-top: 4px;
  color: var(--muted);
}

.type-card.verified .check-list .icon {
  color: var(--blue);
}

.type-card.peer .check-list .icon {
  color: var(--green);
}

/* Features and qualities: an editorial list on hairlines, not a wall of
   boxes. The icon sits with the title, in the accent. */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px var(--space-2xl);
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
  font-size: 17px;
  letter-spacing: -0.015em;
}

.feature h3 .icon {
  color: var(--gold);
}

.feature p {
  font-size: 15px;
}

/* Console */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

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

.console-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-list li {
  display: flex;
  gap: 14px;
}

.list-icon {
  display: inline-flex;
  margin-top: 3px;
  color: var(--gold);
}

.console-list strong {
  font-weight: 600;
}

.console-list p {
  font-size: 15px;
}

.stack {
  display: grid;
  gap: var(--space-xl);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px var(--space-xl);
}

/* Steps: numbered like a scoreboard, not like a wizard. */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.step-number {
  display: block;
  margin-bottom: var(--space-lg);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: var(--space-sm);
  font-size: 19px;
}

/* FAQ */

.faq {
  display: grid;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: 20px 2px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary:hover {
  color: var(--gold);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 680px;
  padding: 0 2px 22px;
}

/* Call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.cta h2 {
  margin: var(--space-xl) 0 var(--space-md);
}

.cta .lead {
  max-width: 560px;
}

/* Footer */

.site-footer {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
}

.footer-inner p {
  margin-top: var(--space-md);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) 28px;
  font-size: 14px;
}

.footer-links a,
.footer-languages a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-languages a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
  font-size: 13px;
}

.footer-languages {
  display: flex;
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero .container {
    gap: 40px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .type-card {
    padding: var(--space-xl);
  }

  .section-title {
    margin-bottom: 40px;
  }

  .cta {
    padding: 48px var(--space-xl);
  }
}

/* Language menu */

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
  color: var(--text);
  background: var(--surface);
}

.language-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.8);
}

.language-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.language-menu a:hover {
  background: var(--surface);
  color: var(--text);
}

.language-menu a[aria-current='page'] {
  color: var(--gold);
  font-weight: 600;
}
