/* Soljourn marketing site — self-contained styles, system font stack, no CDNs. */

:root {
  --bg-0: #0a0812;
  --bg-1: #120e1e;
  --bg-2: #171226;
  --ink-0: #f3efe8;
  --ink-1: #cfc8db;
  --ink-2: #9a92ad;
  --gold: #e8c98a;
  --gold-soft: rgba(232, 201, 138, 0.14);
  --moon: #f0e6d2;
  --line: rgba(240, 230, 210, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-0);
  background:
    radial-gradient(ellipse 60% 40% at 18% 6%, rgba(232, 201, 138, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(140, 120, 200, 0.10), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* "Flying through space" starfield — rendered on a canvas by an inline script
   at the end of the page (stars stream outward from centre for slow forward
   motion). This fixed, non-interactive canvas sits behind all content. With
   JS disabled it stays blank and the body's nebula gradient shows through. */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: block;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 8, 18, 0.65);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-0);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.header-cta {
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #f2d9a3, var(--gold));
  color: #201a12;
  box-shadow: 0 8px 24px -8px rgba(232, 201, 138, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(232, 201, 138, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-0);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 96px 0 88px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(232, 201, 138, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.2;
  padding-bottom: 0.08em;
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, var(--ink-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-1);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-secondary {
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.hero-secondary:hover {
  color: var(--gold);
}

/* Section shell */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-1);
  margin: 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 40px -30px var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(232, 201, 138, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-1);
  font-size: 0.96rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(23, 18, 38, 0.5);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.35);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--ink-1);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding: 80px 0;
}

.cta-card {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(232, 201, 138, 0.25);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(232, 201, 138, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 30px 60px -30px var(--shadow);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
}

.cta-card p {
  color: var(--ink-1);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--ink-1);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero {
    padding: 72px 0 64px;
  }

  section {
    padding: 64px 0;
  }

  .cta-card {
    padding: 48px 22px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
