/* Sierra Caelum Official Site — design tokens from pencil-new 1.pen */

:root {
  --bg: #f3f8fb;
  --bg-deep: #06263a;
  --bg-mid: #0a3a52;
  --bg-soft: #e8f2f7;
  --surface: #ffffff;
  --text: #0c2b3a;
  --text-muted: #5a7585;
  --text-on-dark: #f5fbff;
  --text-muted-dark: #a8c5d4;
  --accent: #1ab0c8;
  --accent-bright: #00e1ed;
  --accent-cta: #00e6f2;
  --accent-warm: #f0a05a;
  --border: #d5e4ec;
  --nav-link: #498cb8;
  --btn-ink: #1a1208;
  --icon-dark-bg: #0f4a63;

  --font-display: "Anton", sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-ui: "Funnel Sans", system-ui, sans-serif;

  --container: 1312px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --pad-section: clamp(3.5rem, 8vw, 6.25rem);
  --header-h: 7rem;
  --radius-card: 1rem;
  --radius-icon: 0.75rem;
  --transition: 0.25s ease;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

address {
  font-style: normal;
}

.container {
  width: min(100% - (var(--pad-x) * 2), var(--container));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #06263b;
  border-bottom: 1px solid #06263b;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo,
.logo--footer {
  flex-shrink: 0;
  width: 23.005125rem;
  height: 6.645925rem;
  overflow: hidden;
}

.logo img,
.logo--footer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--nav-link);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--text-on-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  flex-shrink: 0;
  width: 1.125rem;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: transform var(--transition), filter var(--transition), background-color var(--transition);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-download {
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  background: var(--accent-bright);
  color: var(--btn-ink);
  font-size: 0.875rem;
}

.btn-download svg {
  width: 1rem;
  height: 1rem;
}

.btn-cta {
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  min-height: 4.375rem;
  background: color-mix(in srgb, var(--accent-cta) 97%, transparent);
  color: var(--btn-ink);
  font-size: 1rem;
}

.btn-cta svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ——— Shared section styles ——— */

.section {
  padding-block: var(--pad-section);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.125em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}

.section-title--light {
  color: var(--text-on-dark);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.section-header--center {
  align-items: center;
  text-align: center;
}

.section-header--center .section-title {
  text-wrap: balance;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: clamp(28rem, 70vw, 48.75rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-on-dark);
}

.hero-media,
.why-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-media {
  background-image: url("../banner.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, #06263a 60%, transparent) 0%, color-mix(in srgb, #06263a 35%, transparent) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 45rem;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text-on-dark);
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  color: #0ddfff;
}

.hero-body {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #d6f1ff;
  max-width: 40rem;
}

/* ——— About ——— */

.about {
  background: var(--bg);
}

.about-body {
  width: min(100%, 56.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-top: 0.5rem;
}

.about-body p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.about-feature {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-feature h3 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.about-feature p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ——— Icons ——— */

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap--soft {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-icon);
  background: var(--bg-soft);
  color: var(--accent);
}

.icon-wrap--soft svg {
  width: 1.375rem;
  height: 1.375rem;
}

.icon-wrap--dark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--icon-dark-bg);
  color: var(--accent);
}

.icon-wrap--dark svg {
  width: 1.125rem;
  height: 1.125rem;
}

.icon-wrap--gradient {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #1ab0c8 0%, #0a5f7a 100%);
  color: #fff;
}

.icon-wrap--gradient svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ——— Game ——— */

.game {
  background: #06263b;
  color: var(--text-muted-dark);
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  justify-content: center;
}

.game-visual {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 560 / 520;
  background: var(--bg-mid);
}

.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-copy .eyebrow {
  margin-bottom: 0.25rem;
}

.game-subtitle {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
}

.game-copy > p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted-dark);
}

.game-points {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 0.5rem;
}

.game-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.game-points h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.25rem;
}

.game-points p {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted-dark);
}

/* ——— How it works ——— */

.how {
  background: var(--bg);
}

.how .section-header {
  margin-bottom: 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}

.step-card h3 {
  font-family: var(--font-ui);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ——— Features ——— */

.features {
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ——— Why ——— */

.why {
  position: relative;
  min-height: clamp(22rem, 45vw, 32.5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--text-on-dark);
}

.why-media {
  background-image: url("../banner3.png");
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, #06263a 85%, transparent) 0%, color-mix(in srgb, #0a3a52 70%, transparent) 100%);
}

.why-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-block: var(--pad-section);
}

.why-body {
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
}

.why-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.why-keywords li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.why-rule {
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ——— Company ——— */

.company {
  background: var(--bg);
}

.company-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.company-card {
  width: min(100%, 73.875rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3125rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.company-card h3 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.company-card address {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.company-card address strong {
  font-weight: 500;
  color: var(--text);
}

.company-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3125rem;
  width: 100%;
}

.company-meta > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.meta-label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: none;
}

.company-meta a {
  font-size: 0.9375rem;
  color: var(--text);
  transition: color var(--transition);
}

.company-meta a:hover {
  color: var(--accent);
}

.company-intro {
  max-width: 48rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ——— Footer ——— */

.site-footer {
  background: var(--bg-deep);
  color: var(--text-muted-dark);
  padding: 3.5rem 0 2.5rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5.625rem);
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-dark);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: color-mix(in srgb, var(--text-muted-dark) 25%, transparent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p,
.legal-links {
  font-size: 0.8125rem;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
}

.legal-links a:hover {
  color: var(--text-on-dark);
}

/* ——— Motion ——— */

@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .why-content {
    animation: rise 0.8s ease both;
  }

  .about-feature,
  .step-card,
  .feature-card {
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .about-feature:hover,
  .step-card:hover,
  .feature-card:hover {
    transform: translateY(-4px);
  }

  .step-card:hover,
  .feature-card:hover {
    box-shadow: 0 12px 32px color-mix(in srgb, var(--bg-deep) 8%, transparent);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Tablet ——— */

@media (max-width: 1024px) {
  .about-features,
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-visual {
    max-width: 35rem;
    margin-inline: auto;
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-panel {
    gap: 1.5rem;
  }
}

/* ——— Mobile ——— */

@media (max-width: 768px) {
  :root {
    --header-h: 74px;
  }

  .site-header,
  .header-inner {
    height: var(--header-h);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .logo,
  .logo--footer {
    width: 17.892875rem;
    max-width: min(17.892875rem, 68vw);
    height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-inline-end: -4px;
  }

  .nav-toggle-bar {
    width: 18px;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem var(--pad-x) 2rem;
    background: #06263b;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  body.nav-open .nav-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 1.0625rem;
  }

  .btn-download {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin-inline: auto;
    padding-block: 3.5rem 4rem;
  }

  .hero-body {
    margin-inline: auto;
  }

  .hero-media {
    background-position: 70% center;
  }

  .btn-cta {
    min-height: 3.5rem;
    padding: 0.875rem 1.5rem;
  }

  .about .section-header,
  .about-body,
  .about-features,
  .about-feature {
    text-align: center;
    align-items: center;
  }

  .about-body {
    margin-inline: auto;
  }

  .about-feature {
    display: flex;
    flex-direction: column;
  }

  .how .section-header,
  .how .step-card {
    text-align: center;
    align-items: center;
  }

  .features .section-header,
  .features .feature-card {
    text-align: center;
    align-items: center;
  }

  .features .feature-grid {
    justify-items: center;
  }

  .why-content,
  .why-body,
  .why-keywords {
    text-align: center;
  }

  .footer-top,
  .footer-bottom,
  .footer-links {
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .legal-links {
    justify-content: center;
  }

  .why-keywords {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .why-keywords li {
    align-items: center;
  }

  .company-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.02em;
  }

  .step-card {
    padding: 1.5rem 1.25rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* ——— Legal pages ——— */

.legal-main {
  background: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
  min-height: calc(100vh - var(--header-h) - 12rem);
}

.legal-wrap {
  max-width: 52rem;
}

.legal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition), transform var(--transition);
}

.back-home svg {
  width: 1.125rem;
  height: 1.125rem;
}

.back-home:hover {
  color: var(--bg-mid);
  transform: translateX(-2px);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}

.legal-meta {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-content section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.legal-content h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.legal-content h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--bg-mid);
}

.legal-links a[aria-current="page"] {
  color: var(--text-on-dark);
}

/* ——— Back to top ——— */

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--accent-bright);
  color: var(--btn-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--bg-deep) 22%, transparent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), filter var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.05);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible[hidden] {
  display: inline-flex;
}
