/* fireflyyun.org — production stylesheet (Antigravity visual design) */

:root {
  /* Dark Night Theme */
  --night-950: #05070F;
  --night-900: #080C1B;
  --night-850: #0C1226;
  --night-800: #121A38;
  --night-750: #172146;
  --ash: #231812;

  /* Firefly & Flame Palette */
  --glow: #FFD86B;
  --glow-soft: #FFE9A8;
  --glow-bright: #FFF6D6;
  --ember: #FF8A3D;
  --ember-deep: #E0521F;
  --ember-light: #FFA666;
  --ember-glow: rgba(255, 138, 61, 0.4);

  /* Typography & Readability */
  --text: #EEF1FA;
  --text-muted: #A3ACC9;
  --text-subtle: #7681A6;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  /* Borders & Glassmorphism */
  --border: rgba(255, 216, 107, 0.12);
  --border-subtle: rgba(238, 241, 250, 0.08);
  --border-hover: rgba(255, 216, 107, 0.4);
  --border-ember: rgba(255, 138, 61, 0.35);

  /* Spatial Geometry */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= Global Reset & Foundations ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background-color: var(--night-950);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--night-950);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--glow);
  color: var(--night-950);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--night-950);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 216, 107, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 216, 107, 0.45);
}

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

a {
  color: var(--glow);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--glow-bright);
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 750;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

strong {
  color: #FFFFFF;
}

/* Containers */
.container {
  width: min(100% - 36px, var(--container));
  margin-inline: auto;
}
.container-narrow {
  max-width: 840px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 1000;
  background: var(--glow);
  color: var(--night-950);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #FF9944 0%, #FF7728 50%, #E04812 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(255, 119, 40, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 119, 40, 0.55), 0 0 12px rgba(255, 216, 107, 0.4);
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--glow-bright);
  border-color: var(--glow);
  background: rgba(255, 216, 107, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 216, 107, 0.15);
}

.btn-lg {
  min-height: 54px;
  padding: 14px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ================= Header & Navigation ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 216, 107, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 12, 27, 0.92);
  border-bottom-color: rgba(255, 216, 107, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  min-height: 44px;
  letter-spacing: 0.02em;
}
.brand .logo-mark {
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.brand:hover .logo-mark {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 10px rgba(255, 100, 20, 0.75)) drop-shadow(0 0 4px rgba(255, 216, 107, 0.8));
}
.brand-name {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.03);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .nav-toggle:hover {
    background: rgba(255, 216, 107, 0.08);
    border-color: var(--glow);
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 28px;
    background: rgba(8, 12, 27, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: none;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .main-nav.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }
  .nav-links a:hover {
    background: rgba(255, 216, 107, 0.08);
  }
  .nav-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-actions .btn {
    width: 100%;
  }
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  padding: clamp(70px, 13vw, 150px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(ellipse 90% 70% at 50% 105%, rgba(255, 138, 61, 0.32) 0%, rgba(224, 72, 18, 0.12) 50%, transparent 80%),
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(255, 216, 107, 0.09) 0%, transparent 70%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 100%);
  text-align: center;
  overflow: hidden;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

/* Split Hero Grid */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero Badge: addresses wrapping smoothly on 375px screens */
.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  text-align: left;
  margin: 0 0 24px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.1);
  box-shadow: 0 0 24px rgba(255, 138, 61, 0.16), 0 0 0 1px rgba(255, 216, 107, 0.1) inset;
  color: var(--glow-soft);
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  line-height: 1.5;
  max-width: 100%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 216, 107, 0.5);
  background: rgba(255, 138, 61, 0.15);
}
.hero-badge strong {
  color: #FFFFFF;
  background: rgba(255, 138, 61, 0.3);
  padding: 1px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.hero-badge span {
  color: var(--text-muted);
  font-size: 0.88em;
}

.hero h1 {
  text-shadow: 0 0 32px rgba(255, 216, 107, 0.28), 0 4px 18px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 32px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin: 0 0 32px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-chips li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  margin-right: 8px;
}
.hero-chips li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 107, 0.35);
  background: rgba(255, 216, 107, 0.06);
}

/* ================= Enterprise Glassmorphic Tech Visual Column ================= */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.tech-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* 1. Deep Atmospheric Optical Glow & Grid */
.optic-ambient-glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 138, 46, 0.24) 0%, rgba(224, 72, 18, 0.12) 35%, transparent 70%),
    radial-gradient(circle at 50% 30%, rgba(255, 216, 107, 0.12) 0%, transparent 50%);
  filter: blur(48px);
  border-radius: 50%;
  pointer-events: none;
  animation: opticGlowBreath 6s ease-in-out infinite alternate;
}

.optic-grid-bg {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(rgba(255, 216, 107, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 68%);
  pointer-events: none;
  opacity: 0.65;
}

/* 2. Concentric Precision Laser Radar Tracks */
.optic-rings-wrap {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.optic-rings-svg {
  width: 100%;
  height: 100%;
  animation: radarOrbitRotate 90s linear infinite;
  transform-origin: center;
  overflow: visible;
}

/* 3. 3D Glassmorphic Emblem Monolith */
.emblem-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemFloat 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.emblem-facet {
  position: relative;
  width: min(100%, 330px);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 28px rgba(255, 119, 40, 0.28));
  overflow: hidden;
  border-radius: 32px;
  padding: 10px;
}

/* Specular Caustic Light Sweep across Glass Emblem */
.emblem-specular-light {
  position: absolute;
  inset: -100%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 216, 107, 0.32) 50%, rgba(255, 255, 255, 0.16) 52%, transparent 60%);
  transform: translateX(-60%) rotate(25deg);
  animation: specularSweep 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

.emblem-flame-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.emblem-base-path {
  transition: filter 0.3s ease;
}

.emblem-core-path {
  animation: waveguidePulse 4s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}

/* 4. Enterprise Tech Telemetry Badges */
.tech-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 216, 107, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 138, 61, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tech-badge:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 216, 107, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 138, 61, 0.35);
}

.tech-badge-top {
  top: 14%;
  right: -8%;
  animation: badgeFloatTop 6s ease-in-out infinite alternate;
}

.tech-badge-bottom {
  bottom: 12%;
  left: -8%;
  animation: badgeFloatBottom 6.5s ease-in-out infinite alternate;
}

.tech-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  display: inline-block;
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.tech-badge-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFA826;
  box-shadow: 0 0 10px #FFA826;
  display: inline-block;
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite 1s;
}

.tech-badge-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.tech-badge-val {
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(255, 138, 61, 0.2);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 138, 61, 0.3);
}

/* 5. Precision Orbital Photon Stream Canvas */
.flame-sparks-canvas {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  pointer-events: none;
  z-index: 3;
}

/* Keyframe Animations */
@keyframes opticGlowBreath {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

@keyframes radarOrbitRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes emblemFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes specularSweep {
  0%, 20% { transform: translateX(-120%) rotate(25deg); opacity: 0; }
  35% { opacity: 1; }
  55%, 100% { transform: translateX(120%) rotate(25deg); opacity: 0; }
}

@keyframes waveguidePulse {
  0% { opacity: 0.82; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

@keyframes badgeFloatTop {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

@keyframes badgeFloatBottom {
  0% { transform: translateY(0px); }
  100% { transform: translateY(6px); }
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Mobile & Tablet Responsiveness for Split Hero */
@media (max-width: 960px) {
  .hero {
    text-align: center;
  }
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    align-items: center;
  }
  .hero-badge {
    text-align: center;
    margin: 0 auto 20px;
  }
  .hero h1 {
    text-align: center;
  }
  .hero-lead {
    text-align: center;
    margin: 0 auto 28px;
  }
  .hero-actions {
    justify-content: center;
    margin: 0 0 28px;
  }
  .hero-chips {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }
  .tech-stage {
    width: min(100%, 300px);
  }
  .emblem-facet {
    width: min(100%, 240px);
  }
  .tech-badge-top {
    top: 4%;
    right: -2%;
    transform: scale(0.88);
  }
  .tech-badge-bottom {
    bottom: 4%;
    left: -2%;
    transform: scale(0.88);
  }
  .flame-sparks-canvas {
    inset: -36px;
    width: calc(100% + 72px);
    height: calc(100% + 72px);
  }
}

/* ================= Generic Section Layout ================= */
.section {
  position: relative;
  padding: clamp(68px, 10vw, 115px) 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--night-900) 0%, var(--night-850) 60%, var(--night-950) 100%);
  border-top: 1px solid rgba(255, 216, 107, 0.06);
  border-bottom: 1px solid rgba(255, 216, 107, 0.06);
}

.section h2 {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto 52px;
}

/* ================= Cards & Grids ================= */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(18, 26, 56, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Card interactive spotlight effect */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 216, 107, 0.1), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 216, 107, 0.12);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.card h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  flex-shrink: 0;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(23, 33, 70, 0.8) 0%, rgba(18, 26, 56, 0.8) 100%);
  border-color: rgba(255, 216, 107, 0.18);
}
.card-wide p {
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag-list li {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 216, 107, 0.08);
  border: 1px solid rgba(255, 216, 107, 0.2);
  color: var(--glow-bright);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tag-list li:hover {
  transform: translateY(-2px);
  background: rgba(255, 216, 107, 0.16);
  border-color: var(--glow);
  box-shadow: 0 0 12px rgba(255, 216, 107, 0.25);
}

/* ================= Client Showcase Mockup ================= */
.client-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  max-width: 980px;
  margin: 0 auto clamp(36px, 6vw, 56px);
  padding: 0 16px;
}

.mockup {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(14, 21, 48, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 138, 61, 0.12);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mockup:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), 0 0 45px rgba(255, 216, 107, 0.18);
}

/* Desktop Window Mockup */
.mockup-desktop {
  width: min(100%, 480px);
  border-radius: 14px;
}
.mockup-header {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: rgba(8, 12, 27, 0.95);
  border-bottom: 1px solid rgba(255, 216, 107, 0.1);
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #FF5F56; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27C93F; }

.mockup-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* Mobile Phone Mockup */
.mockup-mobile {
  width: min(100%, 250px);
  border-radius: 28px;
  border-width: 2px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 138, 61, 0.15);
}
.mockup-phone-notch {
  width: 72px;
  height: 14px;
  background: #000000;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.mockup-screen {
  overflow: hidden;
  display: flex;
}
.mockup-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .client-showcase {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .mockup-desktop {
    width: 100%;
    max-width: 420px;
  }
  .mockup-mobile {
    width: 230px;
  }
}

/* ================= Platforms / Download Cards ================= */
.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.platform-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.platform-card p {
  margin-bottom: 24px;
  flex-grow: 1;
}
.platform-card p strong {
  background: rgba(255, 138, 61, 0.25);
  color: var(--glow-bright);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.platform-card .btn {
  margin-top: auto;
}

/* ================= Pricing Section ================= */
.plan-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: rgba(18, 26, 56, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 216, 107, 0.1), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.plan-card:hover::before {
  opacity: 1;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 216, 107, 0.14);
}

/* Recommended Plan Card Highlight */
.plan-card.is-recommended {
  border-color: var(--ember);
  background: linear-gradient(180deg, rgba(28, 38, 78, 0.9) 0%, rgba(18, 26, 56, 0.85) 100%);
  box-shadow: 0 0 0 1px var(--ember), 0 16px 48px rgba(255, 138, 61, 0.28), 0 0 35px rgba(255, 138, 61, 0.15);
  z-index: 2;
}
.plan-card.is-recommended:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px var(--ember-light), 0 24px 60px rgba(255, 138, 61, 0.4), 0 0 45px rgba(255, 216, 107, 0.25);
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 28px;
  margin: 0;
  padding: 4px 16px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(224, 72, 18, 0.5);
}

.plan-card h3 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.plan-fit {
  color: var(--glow-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 216, 107, 0.1);
}
.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.plan-price .unit {
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-periods {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.plan-periods li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 216, 107, 0.1);
  color: var(--text-muted);
}
.plan-periods li span:last-child {
  color: #FFFFFF;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.plan-features li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.plan-note {
  display: inline-block;
  color: #FFA666;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.25);
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.plan-card .btn {
  margin-top: auto;
}

.payment-methods {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 40px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-inline: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ================= Scenarios Section ================= */
.scenario-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.scenario-list li {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(18, 26, 56, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1rem;
  color: var(--text-muted);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.scenario-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 216, 107, 0.08), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.scenario-list li:hover::before {
  opacity: 1;
}
.scenario-list li:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.scenario-list strong {
  display: block;
  font-size: 1.15rem;
  color: var(--glow-soft);
  margin-bottom: 6px;
}

/* ================= FAQ Section ================= */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 26, 56, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item:hover {
  border-color: rgba(255, 216, 107, 0.3);
}
.faq-item[open] {
  border-color: rgba(255, 138, 61, 0.4);
  background: rgba(23, 33, 70, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  position: relative;
  min-height: 44px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--glow);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  color: var(--ember);
}

.faq-item summary h3 {
  display: inline;
  font-size: 1.1rem;
  margin: 0;
  color: #FFFFFF;
}

.faq-item p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ================= Final CTA & Campfire Scene ================= */
.cta {
  position: relative;
  background:
    radial-gradient(ellipse 80% 90% at 50% 115%, rgba(255, 138, 61, 0.4) 0%, rgba(224, 72, 18, 0.16) 45%, transparent 75%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 100%);
  text-align: center;
  overflow: hidden;
  padding: clamp(90px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
  border-top: 1px solid rgba(255, 216, 107, 0.1);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Campfire Decorative Illustration */
.campfire-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  position: relative;
  filter: drop-shadow(0 0 24px rgba(255, 138, 61, 0.65));
}
.campfire-svg {
  width: 100%;
  height: 100%;
}
.flame-core {
  animation: flamePulse 2.4s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
.flame-spark {
  animation: sparkRise 3s ease-out infinite;
}
.flame-spark-2 {
  animation: sparkRise 2.2s ease-out infinite 0.7s;
}

@keyframes flamePulse {
  0% { transform: scale(0.96) rotate(-1deg); opacity: 0.9; }
  50% { transform: scale(1.04) rotate(1.5deg); opacity: 1; }
  100% { transform: scale(0.98) rotate(-0.5deg); opacity: 0.95; }
}

@keyframes sparkRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-38px) scale(0.2); opacity: 0; }
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 0 30px rgba(255, 216, 107, 0.3);
  margin-bottom: 16px;
}
.cta h2::after {
  display: none;
}

.cta p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ================= Footer ================= */
.site-footer {
  border-top: 1px solid rgba(255, 216, 107, 0.12);
  padding: 48px 0 36px;
  background: var(--night-900);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 1.1rem;
  color: #FFFFFF;
}
.footer-brand strong {
  background: linear-gradient(135deg, #FFFFFF, var(--glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--glow-bright);
  background: rgba(255, 216, 107, 0.06);
}

.footer-meta {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
}
.footer-meta a {
  color: var(--text-muted);
}
.footer-meta a:hover {
  color: var(--glow);
}

/* ================= Sub-Pages (About, Terms, Privacy, Sitemap) ================= */
.page {
  padding: 50px 0 90px;
  background: linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 100%);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--glow);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--glow-bright);
}

.prose {
  background: rgba(18, 26, 56, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.prose h2 {
  text-align: left;
  margin-top: 2em;
  margin-bottom: 16px;
  font-size: 1.45rem;
}
.prose h2::after {
  display: none;
}
.prose p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}
.prose ul {
  padding-left: 1.4em;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}
.prose li {
  margin-bottom: 0.5em;
}
.page-updated {
  color: var(--glow-soft);
  font-size: 0.88rem;
  margin-bottom: 24px;
  display: inline-block;
  background: rgba(255, 216, 107, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ================= Scroll Reveal Transition Utilities ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Reduced Motion Preference ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
