/* Skyll Landing Page Styles */

:root {
  --land-bg: #ffffff;
  --land-soft: #f0f5fb;
  --land-hero-bg: #e9f0f8;
  --land-navy: #34487a;
  --land-navy-deep: #2a3a64;
  --land-text: #1a1d21;
  --land-muted: #6b7280;
  --land-border: #e5e7eb;
  --land-card: #ffffff;
  --land-step-num-opacity: 0.08;
  --land-nav-bg: rgba(255, 255, 255, 0.9);
  --land-cta-bg: #34487a;
  --land-cta-text: #ffffff;
  --land-cta-sub: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root {
    --land-bg: #0c1525;
    --land-soft: #101b2d;
    --land-hero-bg: #0e1a2e;
    --land-navy: #6080c0;
    --land-navy-deep: #7b96d4;
    --land-text: #e4ecf8;
    --land-muted: #8b9ab5;
    --land-border: #1c2c42;
    --land-card: #111e30;
    --land-step-num-opacity: 0.12;
    --land-nav-bg: rgba(11, 19, 35, 0.9);
    --land-cta-bg: #17263d;
    --land-cta-text: #e4ecf8;
    --land-cta-sub: rgba(228, 236, 248, 0.6);
  }
}

:root[data-theme="light"] {
  --land-bg: #ffffff;
  --land-soft: #f0f5fb;
  --land-hero-bg: #e9f0f8;
  --land-navy: #34487a;
  --land-navy-deep: #2a3a64;
  --land-text: #1a1d21;
  --land-muted: #6b7280;
  --land-border: #e5e7eb;
  --land-card: #ffffff;
  --land-step-num-opacity: 0.08;
  --land-nav-bg: rgba(255, 255, 255, 0.9);
  --land-cta-bg: #34487a;
  --land-cta-text: #ffffff;
  --land-cta-sub: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] {
  --land-bg: #0c1525;
  --land-soft: #101b2d;
  --land-hero-bg: #0e1a2e;
  --land-navy: #6080c0;
  --land-navy-deep: #7b96d4;
  --land-text: #e4ecf8;
  --land-muted: #8b9ab5;
  --land-border: #1c2c42;
  --land-card: #111e30;
  --land-step-num-opacity: 0.12;
  --land-nav-bg: rgba(11, 19, 35, 0.9);
  --land-cta-bg: #17263d;
  --land-cta-text: #e4ecf8;
  --land-cta-sub: rgba(228, 236, 248, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--land-text);
  background: var(--land-bg);
}

/* ── Nav ─────────────────────────────────────────── */
.land-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 60px;
  background: var(--land-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--land-border);
}

.land-nav__logo {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--land-navy);
  text-decoration: none;
  line-height: 1;
}

.land-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Buttons ─────────────────────────────────────── */
.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, opacity 0.14s;
  white-space: nowrap;
}
.land-btn:active { opacity: 0.82; }

.land-btn--primary {
  background: var(--land-navy);
  color: #fff;
  border-color: var(--land-navy);
}
.land-btn--primary:hover { background: var(--land-navy-deep); border-color: var(--land-navy-deep); }

.land-btn--ghost {
  background: transparent;
  color: var(--land-muted);
}
.land-btn--ghost:hover { color: var(--land-text); }

.land-btn--outline {
  background: transparent;
  color: var(--land-navy);
  border-color: var(--land-navy);
}
.land-btn--outline:hover { background: var(--land-navy); color: #fff; }

.land-btn--white {
  background: #fff;
  color: #34487a;
  border-color: #fff;
}
.land-btn--white:hover { background: #eef3fb; }

.land-btn--lg {
  height: 3rem;
  padding: 0 1.75rem;
  font-size: 1rem;
}

/* ── Layout ──────────────────────────────────────── */
.land-container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Hero ────────────────────────────────────────── */
.land-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(60px + clamp(3.5rem, 9vh, 6rem)) clamp(1.25rem, 5vw, 3rem) clamp(3.5rem, 9vh, 6rem);
  background: var(--land-hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle horizontal rules referencing court baselines */
.land-hero::before,
.land-hero::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--land-navy);
  opacity: 0.1;
  pointer-events: none;
}
.land-hero::before { top: calc(60px + 2.5rem); }
.land-hero::after  { bottom: 2.5rem; }

.land-hero__inner {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.land-hero__eyebrow {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border: 1px solid var(--land-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--land-muted);
  background: var(--land-card);
}

.land-hero__title {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--land-text);
  text-wrap: balance;
}

.land-hero__title em {
  font-style: italic;
  color: var(--land-navy);
  font-style: normal; /* the whole title is already italic */
}

.land-hero__sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--land-muted);
  text-wrap: balance;
}

.land-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ── Sections ────────────────────────────────────── */
.land-section {
  padding: clamp(4rem, 9vh, 6.5rem) 0;
}
.land-section--alt {
  background: var(--land-soft);
}

.land-section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--land-navy);
}

.land-section-title {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--land-text);
  text-wrap: balance;
}

/* ── Steps ───────────────────────────────────────── */
.land-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.land-step {
  position: relative;
  padding: 2rem 1.6rem 1.75rem;
  border: 1px solid var(--land-border);
  border-radius: 1.25rem;
  background: var(--land-card);
  overflow: hidden;
}

.land-step__num {
  position: absolute;
  top: -0.6rem;
  right: 0.5rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 7rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--land-navy);
  opacity: var(--land-step-num-opacity);
  user-select: none;
  pointer-events: none;
}

.land-step__title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 760;
  color: var(--land-text);
}

.land-step__body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--land-muted);
}

/* ── Features ────────────────────────────────────── */
.land-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 4rem;
}

.land-feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.8rem;
  color: var(--land-navy);
}

.land-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 760;
  color: var(--land-text);
}

.land-feature__body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--land-muted);
}

/* ── CTA band ────────────────────────────────────── */
.land-cta-band {
  padding: clamp(4rem, 9vh, 6.5rem) 0;
  background: var(--land-cta-bg);
  text-align: center;
}

.land-cta-band .land-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.land-cta-band__title {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--land-cta-text);
  text-wrap: balance;
}

.land-cta-band__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--land-cta-sub);
  max-width: 30rem;
}

/* ── Footer ──────────────────────────────────────── */
.land-footer {
  padding: 1.75rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid var(--land-border);
  text-align: center;
}

.land-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--land-muted);
  letter-spacing: 0.02em;
}

/* ── Typewriter cycling word ─────────────────────── */
.cycle-word {
  display: inline-block;
  min-width: 0.25em; /* prevents layout collapse while empty */
}

.cycle-cursor {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--land-navy);
  font-style: normal;
  animation: land-cursor-blink 0.95s step-end infinite;
}

@keyframes land-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-cursor { display: none; }
}

/* ── Scroll reveal ───────────────────────────────── */
.land-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.land-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .land-reveal { opacity: 1; transform: none; transition: none; }
  .land-hero::before, .land-hero::after { display: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 740px) {
  .land-steps { grid-template-columns: 1fr; }
  .land-features-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 500px) {
  .land-hero::before, .land-hero::after { display: none; }
  .land-nav__actions .land-btn--ghost { display: none; }
}
