/* SimOps site styles. Values were measured from the live Squarespace site. */

@font-face { font-family: "Saira"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/saira-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #021e42;
  --black: #000;
  --gold: #ffae00;
  --teal: #31d1d9;
  --white: #fff;
  --font-head: "Saira", sans-serif;
  --font-body: "Figtree", sans-serif;
  --gutter: 4vw;
  --max: 1500px;
  --body-size: calc(14.4px + 0.275vw); /* 17.2px at a 1024px viewport */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(16px, var(--body-size), 19px);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: -16000px; top: 24px; z-index: 100;
  background: #000; color: #fff; padding: 16px 20px; border-radius: 4px; text-transform: uppercase;
}
.skip-link:focus { left: 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0 0 0.5em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5.16vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.72vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.2; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20.8px;
  background: var(--teal); color: #000; text-decoration: none;
  font-family: var(--font-body); font-size: 1.1em; border-radius: 4px; border: 0;
}
.btn:hover, .btn:focus-visible { background: #5fe0e6; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header::before { /* soft dark fade behind the header, as on the live site */
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding: 20px var(--gutter) 21px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo img { width: clamp(180px, 30.4vw, 311px); height: auto; }
.site-nav { display: flex; gap: clamp(1.4rem, 3vw, 2.4rem); }
.site-nav a { text-decoration: none; padding: 1.7px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a.is-active { border-bottom-color: currentColor; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; background: var(--navy); overflow: hidden;
  min-height: clamp(600px, 72vw, 960px);
  display: grid; place-items: center; text-align: center;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: var(--navy); opacity: 0.1; }
.hero__content { position: relative; width: min(624px, 90%); padding: 110px 0 70px; }
.hero__logo { width: min(307px, 80%); margin: 0 auto 28px; }
.hero h1 { margin-bottom: 0.55em; }
.hero p { max-width: 386px; margin-inline: auto; }
.hero__rule { width: 14px; margin: 1.3em auto 1em; border: 0; border-top: 1px solid #fff; }
.hero .btn { margin-top: 1.4rem; }

/* Home bands */
.band { padding-block: clamp(56px, 9vw, 120px); }
.band--navy-black { background: linear-gradient(180deg, var(--navy), #000); }
.band--black { background: #000; padding-bottom: clamp(24px, 4vw, 48px); }
.band--black-gold { background: linear-gradient(180deg, #000 0%, #000 25%, var(--gold) 100%); padding-bottom: clamp(72px, 14vw, 180px); }
.band__title { max-width: 14em; margin-bottom: clamp(28px, 4vw, 56px); }
.band__title--narrow { max-width: 15.5em; }
.band__lede { max-width: 38em; margin-bottom: clamp(24px, 3vw, 40px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 90px); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.2rem; }
.card h3 { margin-bottom: 0.7em; }
.card p { margin: 0; }

/* Split rows (text and image side by side) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.split__media { width: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 466 / 706; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-about-1 { aspect-ratio: 365 / 383; }
.ar-about-3 { aspect-ratio: 272 / 308; }
.split__stack { display: grid; gap: clamp(28px, 6vw, 96px); }
.split__text h2 { margin-bottom: 0.7em; }
.split__text .btn { margin-top: 0.6rem; }
.split__text ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.split__text li { margin-bottom: 0.5em; }
.accent { color: var(--teal); }
.note { opacity: 0.85; }
.prose { max-width: 46rem; }
.prose h2 { margin: 1.6em 0 0.4em; font-size: 1.4rem; }
.prose ul { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.3em; }
.prose a { text-decoration: underline; }
.prose code { font-size: 0.95em; }

/* Inner pages: one tall gradient runs through the whole page */
.page-inner {
  background: linear-gradient(180deg, #000 0, #000 8%, var(--navy) 38%, #000 66%, var(--gold) 100%);
}
.inner-hero { text-align: center; padding: clamp(110px, 12vw, 150px) var(--gutter) clamp(40px, 6vw, 80px); }
.inner-hero h1 { max-width: 16em; margin-inline: auto; margin-bottom: 0; }
.inner-hero__lede { max-width: 36em; margin: 1.2rem auto 0; }
.inner-band { padding-block: clamp(40px, 7vw, 110px); }
.inner-band--cta { padding-bottom: clamp(70px, 12vw, 160px); }
.cta { text-align: center; max-width: 46em; }
.cta h2 { margin-bottom: 0.4em; }

/* SimApps coming-soon cards */
.coming-soon { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 48px); max-width: 1000px; }
.coming-soon__card { border: 1px solid rgba(49, 209, 217, 0.55); border-radius: 4px; padding: clamp(20px, 2.5vw, 32px); background: rgba(2, 30, 66, 0.55); }
.coming-soon__card h3 { margin: 0.6em 0 0.5em; }
.coming-soon__card p { margin: 0; }
.coming-soon__more { margin: clamp(24px, 3vw, 40px) 0 0; }
.badge { display: inline-block; font-size: 0.8em; letter-spacing: 0.06em; text-transform: uppercase; color: #000; background: var(--teal); padding: 2px 10px; border-radius: 3px; font-weight: 600; }

/* SimApps page */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.feature-card, .panel { border: 1px solid rgba(49, 209, 217, 0.55); border-radius: 4px; padding: clamp(20px, 2.5vw, 32px); background: rgba(2, 30, 66, 0.55); }
.feature-card h3, .panel h3 { margin: 0.6em 0 0.5em; }
.feature-card p { margin: 0; }
.panel ul { padding-left: 1.3em; margin: 0 0 1em; }
.panel li { margin-bottom: 0.6em; }
.panel .note { margin: 0; }
.split--top { align-items: start; }
.split__text .badge { margin-bottom: 1rem; }
.badge--now { background: var(--teal); color: #000; }
.badge--progress { background: var(--gold); color: #000; }
.badge--planned { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.7); padding: 1px 9px; }
.roadmap { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); max-width: 1000px; }
.roadmap__item { border-left: 3px solid var(--teal); padding: 4px 0 4px clamp(16px, 2vw, 24px); }
.roadmap__item h3 { margin: 0.5em 0 0.3em; }
.roadmap__item p { margin: 0; }

/* Embedded video */
.video-frame { position: relative; max-width: 960px; aspect-ratio: 16 / 9; border: 1px solid rgba(49, 209, 217, 0.55); border-radius: 4px; background: #000; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 0.9rem; }

/* Footer */
.site-footer {
  background: #000 url("../img/grid-bg.jpg") center / cover no-repeat;
  padding-block: clamp(36px, 5vw, 56px);
}
.site-footer__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start;
}
.site-footer__brand img { width: min(227px, 100%); margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin: 0 0 0.4em; }
.site-footer p { margin: 0; font-size: 0.9em; }

/* Phones and small tablets */
@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .site-header { position: absolute; }
  .site-header__logo img { width: 190px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; color: #fff;
  }
  .nav-toggle__bar { display: block; height: 2px; background: currentColor; }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0; background: #000; padding: 8px var(--gutter) 20px;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 0; }
  .site-nav a.is-active { text-decoration: underline; }

  .hero { min-height: 640px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; }
  .split--text-first .split__media { order: 2; }
  .split__media--tall { max-width: 520px; }
  .coming-soon { grid-template-columns: 1fr; }
  .feature-grid, .roadmap { grid-template-columns: 1fr; }
  /* the stacked footer is tall, so the checker art lands behind the text: fade it to navy for legibility */
  .site-footer {
    background-image: linear-gradient(180deg, rgba(2, 30, 66, 0.55) 0%, rgba(2, 30, 66, 0.88) 100%), url("../img/grid-bg.jpg");
    padding-bottom: 44px;
  }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer a { display: inline-block; padding: 6px 0; }
  .inner-hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s; }
}
