/* Jeeves landing — base styles */

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

html, body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0c0f17;
  --bg-soft: #141a28;
  --ink: #f3eedc;
  --ink-dim: #b9b29a;
  --gold: #c9a96b;
  --gold-soft: #e7cf9b;
  --rule: rgba(243, 238, 220, 0.12);
  --serif: 'Georgia', 'Cambria', 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1080px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 32px 24px 96px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 169, 107, 0.10), transparent 60%),
    linear-gradient(180deg, #0c0f17 0%, #0a0d14 60%, #07090f 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Fallback gradient under canvas — visible if WebGL fails (canvas stays empty) */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(201, 169, 107, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(60, 80, 130, 0.18), transparent 55%);
  filter: blur(40px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 14vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--ink-dim);
  margin: 0;
}

.hero__scroll {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero__scroll:hover { opacity: 1; }

.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  61%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 24px;
  border-top: 1px solid var(--rule);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 64px;
  max-width: 720px;
  color: var(--ink);
}

/* ---------- Cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--gold-soft);
}

.card__body {
  margin: 0;
  color: var(--ink-dim);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.step:first-child {
  border-top: none;
}

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--gold);
  text-align: right;
}

.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}

.step__body {
  margin: 0;
  color: var(--ink-dim);
  grid-column: 2;
}

/* ---------- Manifesto ---------- */

.section--manifesto .section__inner {
  max-width: 760px;
  text-align: center;
}

.manifesto {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  color: var(--ink);
}

.manifesto p {
  margin: 0;
}

.manifesto__signature {
  margin-top: 32px;
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}
