/* Spellship landing page. Brand tokens from assets/brand. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/sora-latin-600-normal.woff2") format("woff2");
}

:root {
  --ss-ink: #11162a;
  --ss-accent: #2f6bff;
  --ss-accent-strong: #1f4fd1;
  --ss-sparkle: #ffb547;
  --ss-tint: #eef3ff;
  --ss-surface: #f7f9ff;
  --ss-line: #dde5f7;
  --ss-text: #11162a;
  --ss-muted: #4b5677;
  --ss-on-ink: #e8edff;
  --ss-on-ink-muted: #b4bfdd;
  --radius: 18px;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ss-text);
  background: var(--ss-surface);
}

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

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

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

.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ss-ink);
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.btn:focus-visible {
  outline: 3px solid var(--ss-sparkle);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ss-accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgb(47 107 255 / 0.8);
}

.btn-primary:hover {
  background: #2558e8;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1.5px solid currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.08);
}

/* ----- hero (night sea) ----- */
.hero {
  position: relative;
  color: var(--ss-on-ink);
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 8%, #ffb547 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 6%, #ffb547 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(ellipse 70% 60% at 75% 45%, rgb(47 107 255 / 0.28), transparent 70%),
    linear-gradient(180deg, #0b0f1f 0%, var(--ss-ink) 60%, #17204a 100%);
  overflow: hidden;
}

.hero a:not(.btn) {
  color: var(--ss-on-ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.nav-links .btn {
  min-height: 40px;
  padding: 0 18px;
}

.hero-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 120px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ss-accent);
}

.hero .eyebrow {
  color: var(--ss-sparkle);
}

h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  color: #fff;
}

h1 .accent {
  color: #8fb0ff;
}

.lead {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--ss-on-ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.helm {
  margin: 0;
  text-align: center;
}

.helm svg {
  width: min(420px, 100%);
  height: auto;
  margin-inline: auto;
}

.helm figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ss-on-ink-muted);
  font-style: italic;
}

.wheel {
  transform-origin: 200px 200px;
  animation: helm-turn 18s ease-in-out infinite alternate;
}

@keyframes helm-turn {
  from {
    transform: rotate(-18deg);
  }
  to {
    transform: rotate(24deg);
  }
}

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

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}

/* ----- sections ----- */
.section {
  padding-block: 96px;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 22em;
}

.section-lead {
  margin: 16px 0 0;
  max-width: 40em;
  font-size: 19px;
  color: var(--ss-muted);
}

.section-tint {
  background: linear-gradient(180deg, var(--ss-tint), #fff);
}

.card {
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 32px -20px rgb(17 22 42 / 0.35);
}

.card h3 {
  font-size: 21px;
}

.card p {
  margin: 10px 0 0;
  color: var(--ss-muted);
}

.voyage {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 56px;
  align-items: center;
}

.cycle {
  margin: 0;
  text-align: center;
}

.cycle svg {
  width: min(420px, 100%);
  height: auto;
  margin-inline: auto;
}

.cycle figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ss-muted);
  font-style: italic;
}

.cycle-node circle {
  fill: var(--ss-ink);
  stroke: #fff;
  stroke-width: 4;
}

.cycle-node text {
  fill: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-anchor: middle;
}

.cycle-back {
  fill: #8a5300;
  font-weight: 700;
  font-size: 13px;
}

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

.cycle-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cycle-steps .step-n {
  flex: none;
  margin-bottom: 0;
}

.cycle-steps h3 {
  font-size: 20px;
}

.cycle-steps p {
  margin: 6px 0 0;
  color: var(--ss-muted);
}

.rollback {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1.5px dashed #e59a17;
  background: #fff8ec;
  color: #8a5300;
}

.rollback svg {
  flex: none;
  margin-top: 2px;
}

.rollback h3 {
  font-size: 20px;
  color: var(--ss-text);
}

.rollback p {
  margin: 6px 0 0;
  color: var(--ss-text);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ss-accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / 0.18);
}

.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  position: relative;
  padding-top: 40px;
}

.feature::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 28px;
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ss-accent), var(--ss-sparkle));
}

.freedom {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

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

.freedom-list li {
  padding: 24px 28px;
  border-left: 4px solid var(--ss-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
  box-shadow: 0 12px 32px -24px rgb(17 22 42 / 0.4);
}

.freedom-list h3 {
  font-size: 20px;
}

.freedom-list p {
  margin: 8px 0 0;
  color: var(--ss-muted);
}

/* ----- closing call to action ----- */
.cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgb(47 107 255 / 0.35), transparent 70%),
    var(--ss-ink);
  color: var(--ss-on-ink);
  text-align: center;
  padding-block: 88px;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 46px);
  color: #fff;
}

.cta p {
  margin: 14px 0 0;
  font-size: 19px;
  color: var(--ss-on-ink-muted);
}

.cta .actions {
  justify-content: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  font-size: 14px;
  color: var(--ss-muted);
}

.footer img {
  height: 28px;
  width: auto;
}

.footer p {
  margin: 0;
}

/* ----- small screens ----- */
@media (max-width: 900px) {
  .hero-body,
  .freedom {
    grid-template-columns: 1fr;
  }
  .helm {
    order: -1;
  }
  .helm svg {
    width: min(280px, 80%);
  }
  .voyage,
  .grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .section {
    padding-block: 72px;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- "Request access" modal ----- */
.modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ss-text);
  background: #fff;
  box-shadow: 0 30px 80px -20px rgb(11 15 31 / 0.6);
}

.modal::backdrop {
  background: rgb(11 15 31 / 0.65);
  backdrop-filter: blur(3px);
}

.modal-form,
.modal-done {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

.modal-form[hidden],
.modal-done[hidden] {
  display: none;
}

.modal h2 {
  font-size: 28px;
}

.modal-logo {
  height: 28px;
  width: auto;
  align-self: flex-start;
}

.modal-lead {
  margin: -6px 0 4px;
  color: var(--ss-muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ss-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--ss-tint);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}

.field em {
  font-weight: 400;
  color: var(--ss-muted);
}

.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--ss-line);
  border-radius: 12px;
  background: var(--ss-surface);
  color: var(--ss-text);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ss-accent);
  box-shadow: 0 0 0 3px rgb(47 107 255 / 0.2);
}

/* Honeypot for bots; never shown. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 15px;
  color: var(--ss-muted);
}

.modal-status.error {
  color: #a3123a;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal button.btn {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.modal button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-quiet {
  background: transparent;
  color: var(--ss-muted);
}

.btn-quiet:hover {
  background: var(--ss-tint);
}

.modal-done {
  align-items: center;
  text-align: center;
  padding-block: 44px;
}

.modal-done p {
  margin: 0;
  color: var(--ss-muted);
}

.modal-done-mark {
  border-radius: 18px;
  background: var(--ss-ink);
  padding: 8px;
}

/* "We can set it up for you" line under a freedom point. */
.freedom-list p.freedom-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--ss-sparkle);
  color: var(--ss-text);
  font-weight: 600;
}
