/* ============================================================
   Liminal — Landing Page Styles
   Dark, atmospheric, premium. No frameworks.
   ============================================================ */

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

:root {
  --bg:          #0f1410;
  --bg-deep:     #0d1a14;
  --card-bg:     #1a2420;
  --card-bg2:    #151e1a;
  --green:       #4eb88a;
  --green-light: #a8dfc4;
  --green-dim:   #2a6b52;
  --green-glow:  rgba(78, 184, 138, 0.18);
  --green-glow2: rgba(78, 184, 138, 0.06);
  --text:        #e8f0ea;
  --muted:       #7a9984;
  --border:      rgba(78, 184, 138, 0.12);
  --border-hover:rgba(78, 184, 138, 0.45);
  --radius:      14px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Liberation Sans", sans-serif, "Apple Color Emoji",
          "Segoe UI Emoji";
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Keyframes ─────────────────────────────────────────── */

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.12);
  }
}

@keyframes glow-drift {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.4; }
  33%  { transform: translate(-48%, -52%) scale(1.08); opacity: 0.55; }
  66%  { transform: translate(-52%, -48%) scale(0.96); opacity: 0.38; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.4; }
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(78,184,138,0.4), 0 4px 20px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 36px rgba(78,184,138,0.7), 0 4px 30px rgba(0,0,0,0.5); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}

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

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}

/* Radial glow orb */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(800px, 120vw);
  height: min(800px, 120vw);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(78, 184, 138, 0.22) 0%,
    rgba(78, 184, 138, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite;
  z-index: 0;
}

/* Secondary smaller glow ring */
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(78, 184, 138, 0.12) 0%,
    transparent 65%
  );
  animation: glow-pulse 5s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: fade-up 0.9s ease both;
}

.hero-logo {
  font-size: 3rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 18px rgba(78,184,138,0.6));
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 1.6rem;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green-light);
  font-style: italic;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--green);
  color: #0a140f;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  animation: btn-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px) scale(1.03);
  animation: none;
  box-shadow: 0 0 40px rgba(78,184,138,0.8);
}

.btn-secondary {
  display: inline-block;
  color: var(--green-light);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 223, 196, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  animation: scroll-bounce 2.2s ease-in-out infinite;
  text-decoration: none;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  opacity: 0.7;
}

/* ── Shared Section Styles ─────────────────────────────── */

section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.01em;
}

.section-title span {
  color: var(--green);
}

/* ── Features ──────────────────────────────────────────── */

#features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(78,184,138,0.12), 0 4px 16px rgba(0,0,0,0.4);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── States ────────────────────────────────────────────── */

.states-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.states-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.state-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  text-align: center;
  flex: 1 1 160px;
  max-width: 200px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.state-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 28px rgba(78,184,138,0.1);
}

.state-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.7rem;
}

.state-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.state-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── How It Works ──────────────────────────────────────── */

.how-section {
  background: var(--bg);
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 0;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 24px rgba(78,184,138,0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(78,184,138,0.15);
  border: 1px solid rgba(78,184,138,0.3);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dim);
  font-size: 1.4rem;
  font-weight: 300;
}

/* ── CTA Section ───────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, #0a1a10 0%, #0d2018 50%, #091510 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(78,184,138,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

.cta-section .section-inner {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.cta-heading em {
  color: var(--green);
  font-style: normal;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--green);
  color: #0a140f;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  margin-bottom: 1.4rem;
  transition: background 0.2s, transform 0.2s;
  animation: btn-glow 3s ease-in-out infinite;
}

.btn-cta:hover {
  background: var(--green-light);
  transform: translateY(-3px) scale(1.04);
  animation: none;
  box-shadow: 0 0 50px rgba(78,184,138,0.85);
}

.cta-footnote {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Footer ────────────────────────────────────────────── */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.15em;
}

.footer-brand .mark {
  color: var(--green);
  margin-right: 0.4rem;
}

.footer-domain {
  font-size: 0.88rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-domain:hover {
  color: var(--green-light);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.2rem;
  }

  .state-card {
    flex: 1 1 130px;
    max-width: 170px;
    padding: 1.2rem 1rem;
  }
}

@media (min-width: 1440px) {
  .section-inner {
    max-width: 1260px;
  }
}
