/* Rally — design tokens */
:root {
  --navy: #0b1c3d;
  --navy-soft: #132847;
  --coral: #ed5851;
  --coral-hover: #d94a44;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text-soft: #c8d0dc;
  --text-muted: #5a6578;
  --border: rgba(11, 28, 61, 0.1);
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(11, 28, 61, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 28, 61, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  padding: 0.65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  order: 1;
}

.logo:hover {
  color: var(--white);
  opacity: 0.92;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 100%;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  flex-wrap: wrap;
  order: 3;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
  order: 2;
}

.nav-toggle {
  display: none;
}

.nav-mobile {
  display: none;
}

@media (min-width: 960px) {
  .nav {
    flex-wrap: nowrap;
    padding: 0;
  }

  .nav-links {
    flex: 1 1 auto;
    justify-content: center;
    order: 2;
    padding: 0;
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.9375rem;
  }

  .nav-actions {
    order: 3;
    margin-left: 0;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary-light {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 28, 61, 0.25);
}

.btn-secondary-light:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(11, 28, 61, 0.04);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(237, 88, 81, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--navy);
  color: var(--white);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4.5rem, 11vw, 8rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  animation: fade-up 0.7s var(--ease) both;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
  animation: fade-up 0.7s 0.08s var(--ease) both;
}

.hero h1 {
  max-width: 16ch;
  animation: fade-up 0.7s 0.14s var(--ease) both;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--text-soft);
  margin-top: 1.25rem;
  animation: fade-up 0.7s 0.22s var(--ease) both;
}

.trust-line {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(200, 208, 220, 0.85);
  animation: fade-up 0.7s 0.3s var(--ease) both;
}

.hero .btn-group {
  animation: fade-up 0.7s 0.38s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-intro p,
.section-dark .muted {
  color: var(--text-soft);
}

.section-light {
  background: var(--off-white);
}

.section-white {
  background: var(--white);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9875rem;
}

/* Feature lists */
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature h3::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  margin-bottom: 0.1rem;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: middle;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9875rem;
  padding-left: 1.05rem;
}

.section-cta {
  margin-top: 2.5rem;
}

/* Muse band */
.muse-band {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(237, 88, 81, 0.1), transparent 45%),
    var(--navy);
}

.prompt-list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.prompt-list li {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.9875rem;
  font-style: italic;
}

.muse-note {
  color: var(--text-soft);
  font-size: 0.9875rem;
  max-width: 40rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 44rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 0.65rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9875rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(237, 88, 81, 0.14), transparent 55%),
    var(--navy);
}

.final-cta .section-intro {
  margin-inline: auto;
  margin-bottom: 0;
}

.final-cta .btn-group {
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  background: #071428;
  color: var(--text-soft);
  padding: 3rem 0 2.5rem;
  font-size: 0.9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--white);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.footer-meta p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(200, 208, 220, 0.75);
  max-width: 48rem;
}

.footer-meta a {
  color: var(--white);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--coral);
}

/* —— Legal / Support pages —— */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-hero .meta {
  color: var(--text-soft);
  margin-top: 0.75rem;
  font-size: 0.9875rem;
}

.legal-content {
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
  max-width: 44rem;
}

.legal-content > p:first-of-type {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.9875rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.45rem;
}

.legal-content a {
  color: var(--navy);
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--coral);
}

.support-grid {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}

@media (min-width: 800px) {
  .support-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.support-block h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.support-block p,
.support-block li {
  color: var(--text-muted);
  font-size: 0.9875rem;
}

.support-block ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.support-block li {
  margin-bottom: 0.4rem;
}

.answer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.answer-links a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--off-white);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.answer-links a:hover {
  border-color: rgba(237, 88, 81, 0.35);
  background: #fff5f4;
  color: var(--navy);
}

.support-aside {
  display: grid;
  gap: 1.25rem;
}

.aside-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--border);
}

.aside-panel h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.aside-panel p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.aside-panel a {
  color: var(--navy);
  font-weight: 600;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-brand,
  .eyebrow,
  .hero h1,
  .hero-lead,
  .trust-line,
  .hero .btn-group,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
