/* Driver Hero Pro website. Colors mirror core-ui theme/Color.kt. */
:root {
  --blue: #2176ff;
  --gold: #ffc107;
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-variant: #2a2a2a;
  --outline: #3a3a3a;
  --text: #ffffff;
  --text-muted: #b3b3b3;
  --max-width: 960px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--outline);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  margin: 20px 0 8px;
  line-height: 1.15;
}

.tagline {
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 12px;
}

.hero p.lede {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-secondary {
  border-color: var(--outline);
  color: var(--text);
  background: var(--surface);
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.card-btn {
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 15px;
}

/* Sections */
section {
  padding: 40px 0;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 20px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px 20px 16px 58px;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-variant);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  color: var(--text);
}

.notice {
  background: var(--surface-variant);
  border: 1px solid var(--outline);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
}

/* Legal pages */
.legal {
  padding: 48px 0 24px;
}

.legal h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0 0 6px;
}

.updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal article {
  margin-bottom: 28px;
}

.legal article h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-size: 15px;
}

th,
td {
  border: 1px solid var(--outline);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-muted);
}

th {
  background: var(--surface-variant);
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline);
  margin-top: 32px;
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}
