/* Sun Sandbox landing page. No framework, no JS — palette matches the simulator UI
   (#0b1020 background, #e8eefc text, #9fcaf0 accent). */

:root {
  --bg: #0b1020;
  --panel: #0e1116;
  --text: #e8eefc;
  --accent: #9fcaf0;
  --line: rgba(255, 255, 255, 0.12);
  --measure: 68ch;
  --wide: 1100px;
}

* {
  box-sizing: border-box;
  /* No grey/blue tap box over tapped elements on mobile. */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #ffe9a8, #f2a93b 62%, #d4761c);
  box-shadow: 0 0 14px rgba(242, 169, 59, 0.55);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14.5px;
}

.site-header nav a {
  color: var(--text);
  opacity: 0.72;
  text-decoration: none;
}

.site-header nav a:hover {
  opacity: 1;
}

/* ---------- layout ---------- */

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 40px;
  border-top: none;
}

h1 {
  max-width: 17ch;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

h2 {
  margin: 0 0 26px;
  font-size: clamp(23px, 3.2vw, 30px);
  letter-spacing: -0.018em;
  font-weight: 620;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

p {
  max-width: var(--measure);
}

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  opacity: 0.82;
  margin: 0 0 30px;
}

/* ---------- call to action ---------- */

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
}

.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 9px;
  background: var(--accent);
  color: #08111d;
  font-size: 16px;
  font-weight: 620;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.cta:hover {
  background: #bcdcfb;
  transform: translateY(-1px);
}

.cta-note {
  font-size: 14px;
  opacity: 0.6;
}

/* ---------- screenshot ---------- */

.shot {
  margin: 44px 0 0;
}

.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  display: block;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  opacity: 0.78;
  font-size: 15px;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card p {
  margin: 0;
  font-size: 15px;
  opacity: 0.78;
}


/* ---------- faq ---------- */

#faq h3 {
  margin-top: 30px;
  font-size: 18px;
}

#faq p {
  opacity: 0.8;
}

/* ---------- closer + footer ---------- */

.closer {
  text-align: center;
}

.closer h2,
.closer p {
  max-width: none;
}

.closer .cta-row {
  justify-content: center;
  margin-top: 24px;
}

.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 34px 24px 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  max-width: none;
  display: flex;
  gap: 22px;
  margin: 0 0 10px;
}

.fine {
  display: block;
  opacity: 0.45;
  max-width: var(--measure);
}

/* ---------- accessibility ---------- */

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
