/* ========== Global theme tokens, reset, layout ========== */
:root {
  --gold-accent: #ff7a1a;
  --bg: #0c1020;
  --bg-muted: #121831;
  --border: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.06);
  --text: #eef2fb;
  --text-dim: #b9c1dc;
  --white: #fff;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.section:not(:first-child) {
  margin: 30px 0;
}

.section--muted,
.section--highlight {
  background: transparent;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 32, 0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.hero {
  margin-top: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  color: var(--gold-accent);
  font-weight: 800;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.nav-list a {
  color: var(--text-dim);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.desktop-nav {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.mobile-panel.is-open {
  transform: translateX(0%);
}

.mobile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mobile-nav li:not(:last-child) {
  margin-bottom: 10px;
}

.nav-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  font-size: 20px;
}

.nav-close > div {
  background-color: white;
  height: 4px;
  width: 36px;
  position: absolute;
  left: 0;
}

.nav-close > div:first-child {
  transform: rotate(45deg);
}

.nav-close > div:last-child {
  transform: rotate(-45deg);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
}

/* ========== Cards / Links / Buttons ========== */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--divider);
}

.list li:last-child {
  border-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.card-icon [amazon] {
  width: 100px;
  height: 52px;
}

.card-icon [stackblitz] {
  height: 45px;
}

.card-icon [youtube] {
  width: 50px;
  height: 52px;
}

.card--link {
  display: block;
  height: 100%;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card--link:hover,
.card--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.card-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--text-dim);
}

.card__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card__icon-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__text-area {
  flex: 1;
}

.card__text-area h3 {
  margin: 0 0 0.35rem;
}

.card__text-area p {
  margin: 0 0 0.25rem;
  color: var(--text-dim);
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--gold-accent);
  color: #1b1208;
  font-weight: 800;
  padding: 0.72rem 1rem;
}

.btn:hover,
.btn:focus {
  filter: brightness(1.04);
}

.btn--small {
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
}

.btn--full {
  display: block;
  text-align: center;
  width: 100%;
}

.btn--inverted {
  background: #fff;
  color: #111;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ========== Footer / A11y ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-accent);
  color: #1b1208;
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 200;
}

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

@media (min-width: 680px) {
  /* .cards:not(.cards[explore]) {
    grid-template-columns: repeat(3, 1fr);
  } */

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

  .desktop-nav {
    display: flex;
    align-items: baseline;
  }

  .nav-toggle {
    display: none;
  }

  .contact-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .timeline__item {
    display: block;
    padding-left: 40px;
  }
  footer nav,
  .footer-brand {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-panel,
  .scrim {
    transition: none;
  }
}
