/*
 * Atlas v2 enhancement layer.
 *
 * The published Vite bundle is kept intact so the existing interactive sections
 * remain available. This file owns only the new conversion, accessibility and
 * performance surfaces introduced in this pass.
 */

:root {
  --atlas-enhancement-ink: #f2f0e9;
  --atlas-enhancement-muted: #a9d9c0;
  --atlas-enhancement-surface: #13211e;
  --atlas-enhancement-border: rgba(169, 217, 192, 0.2);
  --atlas-enhancement-accent: #d4b56a;
}

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

body {
  overflow-x: clip;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--atlas-enhancement-accent);
  outline-offset: 4px;
}

.atlas-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 0.75rem 1rem;
  color: #07100e;
  background: var(--atlas-enhancement-muted);
  font: 700 0.74rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.atlas-skip-link:focus {
  transform: translateY(0);
}

.atlas-quick-start {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: clamp(2.5rem, 6vw, 5.5rem) auto clamp(2.5rem, 6vw, 5.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--atlas-enhancement-border);
  border-bottom: 1px solid var(--atlas-enhancement-border);
  background: linear-gradient(120deg, rgba(19, 33, 30, 0.96), rgba(7, 16, 14, 0.94));
}

.atlas-quick-start__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.atlas-quick-start__eyebrow,
.atlas-quick-start__number,
.atlas-quick-start__card small {
  color: var(--atlas-enhancement-muted);
  font: 700 0.67rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.atlas-quick-start__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
}

.atlas-quick-start__eyebrow::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--atlas-enhancement-accent);
  content: '';
}

.atlas-quick-start h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--atlas-enhancement-ink);
  font: 500 clamp(1.65rem, 3vw, 2.7rem)/0.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.atlas-quick-start__head > p {
  max-width: 43ch;
  margin: 0 0 0.2rem;
  color: rgba(242, 240, 233, 0.68);
  font-size: 0.96rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.atlas-quick-start__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.atlas-quick-start__card {
  display: grid;
  min-height: 11.5rem;
  grid-template-rows: auto 1fr auto;
  gap: 0.7rem;
  padding: 1rem;
  color: var(--atlas-enhancement-ink);
  border: 1px solid rgba(169, 217, 192, 0.16);
  background: rgba(7, 16, 14, 0.58);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.atlas-quick-start__card:hover {
  border-color: rgba(169, 217, 192, 0.55);
  background: rgba(20, 42, 35, 0.8);
  transform: translateY(-3px);
}

.atlas-quick-start__number {
  color: var(--atlas-enhancement-accent);
}

.atlas-quick-start__card strong {
  align-self: center;
  font: 500 1.15rem/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

.atlas-quick-start__card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(169, 217, 192, 0.72);
  font-size: 0.6rem;
}

.atlas-quick-start__card small::after {
  color: var(--atlas-enhancement-ink);
  content: '↗';
  font-size: 1rem;
  line-height: 1;
}

.atlas-sticky-cta {
  position: fixed;
  z-index: 4000;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  border: 1px solid rgba(7, 16, 14, 0.42);
  background: var(--atlas-enhancement-muted);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.atlas-sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.atlas-sticky-cta a {
  color: #07100e;
  font: 700 0.72rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.atlas-sticky-cta button {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7, 16, 14, 0.32);
  border-radius: 50%;
  color: #07100e;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.atlas-sticky-cta button:hover {
  background: rgba(7, 16, 14, 0.1);
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 108px;
  }

  .atlas-quick-start {
    width: min(100% - 28px, 620px);
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
    padding: 1.1rem;
  }

  .atlas-quick-start__head {
    display: block;
  }

  .atlas-quick-start h2 {
    max-width: 24ch;
    margin-bottom: 0.85rem;
  }

  .atlas-quick-start__grid {
    grid-template-columns: 1fr;
  }

  .atlas-quick-start__card {
    min-height: 0;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.75rem;
    padding: 0.9rem;
  }

  .atlas-quick-start__number {
    grid-row: span 2;
    padding-top: 0.1rem;
  }

  .atlas-quick-start__card strong {
    align-self: end;
  }

  .atlas-quick-start__card small {
    align-self: start;
  }

  .atlas-sticky-cta {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
