/* ==========================================================================
   星居未来 Landing Page — Design System (Refactored)
   Brand color: #165DFF | Dark theme | Inter + Noto Sans SC
   Breakpoints: 768px / 1200px
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg:            #080e18;
  --bg-soft:       #0d1728;
  --panel:         rgba(13, 22, 38, 0.72);
  --panel-strong:  rgba(16, 28, 48, 0.92);

  /* Text */
  --text:          #eaf1ff;
  --text-dim:      #c4d3ea;
  --muted:         #8a9dba;

  /* Lines */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.14);

  /* Brand Accent — #165DFF */
  --accent:        #165DFF;
  --accent-light:  #5B8EFF;
  --accent-pale:   #94B8FF;
  --accent-hover:  #0D4FE6;
  --accent-glow:   rgba(22, 93, 255, 0.18);
  --accent-subtle: rgba(22, 93, 255, 0.08);
  --accent-border: rgba(22, 93, 255, 0.2);

  /* Secondary Accent — Warm */
  --accent-warm:   #ffbf66;
  --warm-glow:     rgba(255, 208, 107, 0.14);

  /* Shadows */
  --shadow-sm:     0 4px 20px rgba(0, 0, 0, 0.18);
  --shadow-md:     0 12px 48px rgba(0, 0, 0, 0.28);
  --shadow-lg:     0 24px 72px rgba(0, 0, 0, 0.36);

  /* Typography */
  --font-display:  'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body:     'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Layout */
  --max-width:     1200px;
  --header-height: 64px;
  --section-gap:   88px;
  --card-radius:   20px;
  --radius-sm:     14px;
  --radius-pill:   999px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --duration:      0.32s;
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(22, 93, 255, 0.10), transparent),
    radial-gradient(ellipse 40% 40% at 80% 8%, rgba(255, 191, 102, 0.10), transparent),
    radial-gradient(ellipse 50% 55% at 50% 100%, rgba(14, 23, 38, 0.8), transparent),
    linear-gradient(180deg, #060c16 0%, #0a1220 50%, #0d1628 100%);
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 80%);
  opacity: 0.4;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 22%, rgba(22, 93, 255, 0.10), transparent 24%),
    radial-gradient(circle at 18% 72%, rgba(255, 191, 102, 0.06), transparent 22%);
  opacity: 0.8;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

.is-hidden {
  display: none !important;
}


/* ==========================================================================
   Layout Shell
   ========================================================================== */

.page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 16px) 0 56px;
}


/* ==========================================================================
   Fixed Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  height: var(--header-height);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark__spark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 0 6px var(--accent-glow);
  animation: spark-pulse 3s ease-in-out infinite;
}

@keyframes spark-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 10px rgba(22, 93, 255, 0.06); }
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Header right actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__login {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.header__login:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}


/* ==========================================================================
   Shared Section Styles
   ========================================================================== */

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 36%);
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 93, 255, 0.3), transparent);
  opacity: 0.65;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-heading--compact {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.section-heading p {
  margin: 12px 0 0;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent-pale);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Shared heading typography */
.hero h1,
.section-heading h2,
.cta h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Shared body text */
.section-heading p,
.cta p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Shared card style */
.feature-card,
.workflow-card,
.campaign__panel,
.campaign__rules-card,
.plan-card,
.faq-item,
.cta {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Primary — solid brand blue */
.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.3);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.4);
}

/* Outline — border + transparent bg */
.btn--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Ghost — minimal border */
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Size variants */
.btn--header {
  padding: 8px 20px;
  font-size: 0.88rem;
  border-radius: 10px;
  min-height: 40px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
  min-height: 48px;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 80px);
  padding-top: 24px;
}

.hero::before {
  content: '';
  position: absolute;
  right: 6%;
  top: 12%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.10), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

/* Value proposition list */
.hero__values {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__values li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero__values li::before {
  content: '✓';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__download-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero__quick-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color var(--duration) ease, transform var(--duration) var(--ease-out), background var(--duration) ease;
}

.hero__quick-link:hover {
  border-color: rgba(22, 93, 255, 0.22);
  background: rgba(22, 93, 255, 0.06);
  transform: translateY(-2px);
}

.hero__quick-link-label {
  color: var(--accent-pale);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero__quick-link strong {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}


/* ==========================================================================
   Hero Stage (Visual Demo) — preserved
   ========================================================================== */

.hero__stage {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.stage-window {
  width: min(560px, 100%);
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(19, 31, 52, 0.95), rgba(10, 16, 26, 0.97));
  box-shadow: var(--shadow-lg);
  animation: stage-float 6s ease-in-out infinite;
  position: relative;
}

.stage-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.22), rgba(255, 191, 102, 0.08), transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes stage-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.stage-window__topbar {
  display: flex;
  gap: 7px;
  padding-bottom: 12px;
}

.stage-window__topbar span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
}

.stage-window__topbar span:nth-child(1) { background: #ff5f57; }
.stage-window__topbar span:nth-child(2) { background: #febc2e; }
.stage-window__topbar span:nth-child(3) { background: #28c840; }

.stage-board {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(12, 22, 38, 0.99), rgba(10, 18, 30, 0.99));
}

.stage-board__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.stage-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(22, 93, 255, 0.08);
  pointer-events: none;
}

.stage-orbit--one {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -80px;
}

.stage-orbit--two {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -70px;
  border-color: rgba(255, 191, 102, 0.08);
}

.stage-card {
  position: absolute;
  z-index: 1;
  min-width: 170px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.stage-card--primary {
  top: 20px;
  left: 20px;
  background: rgba(10, 25, 42, 0.88);
  border-color: rgba(22, 93, 255, 0.18);
}

.stage-card--accent {
  right: 22px;
  bottom: 98px;
  background: rgba(41, 31, 15, 0.84);
  border-color: rgba(255, 191, 102, 0.16);
}

.stage-card__label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stage-card__value {
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Floor plan preview */
.plan-preview {
  position: absolute;
  inset: 96px 198px 124px 42px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.plan-preview::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgba(9, 17, 30, 0.42));
  pointer-events: none;
}

.blueprint {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(22, 93, 255, 0.08);
  background:
    linear-gradient(rgba(22, 93, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 20, 34, 0.96), rgba(9, 17, 30, 0.96));
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.blueprint__room {
  position: absolute;
  border: 2px solid rgba(232, 240, 255, 0.72);
  background: rgba(232, 240, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.08);
}

.blueprint__room--living   { left: 22%; top: 26%;    width: 34%; height: 36%; }
.blueprint__room--master   { right: 16%; top: 16%;   width: 24%; height: 28%; }
.blueprint__room--secondary { right: 14%; bottom: 20%; width: 26%; height: 30%; }
.blueprint__room--entry    { left: 14%; bottom: 18%;  width: 18%; height: 24%; }
.blueprint__room--study    { left: 34%; top: 10%;    width: 18%; height: 16%; }

.blueprint__wall {
  position: absolute;
  background: rgba(232, 240, 255, 0.46);
  border-radius: 999px;
}

.blueprint__wall--one   { left: 55%; top: 30%;  width: 22%; height: 2px; }
.blueprint__wall--two   { left: 52%; top: 44%;  width: 2px;  height: 26%; }
.blueprint__wall--three { left: 26%; top: 52%;  width: 28%; height: 2px; }

.blueprint__node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 5px rgba(22, 93, 255, 0.12);
}

.blueprint__node::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(22, 93, 255, 0.14);
}

.blueprint__node--gateway { left: 47%; top: 45%; }
.blueprint__node--lock    { left: 18%; bottom: 27%; }
.blueprint__node--camera  { right: 18%; top: 24%; }
.blueprint__node--curtain { right: 21%; bottom: 28%; }
.blueprint__node--panel   { left: 34%; top: 34%; }

.blueprint__label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 21, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.blueprint__label--gateway { left: 42%; top: 39%; }
.blueprint__label--lock    { left: 9%; bottom: 22%; }
.blueprint__label--camera  { right: 10%; top: 18%; }
.blueprint__label--curtain { right: 10%; bottom: 22%; }
.blueprint__label--panel   { left: 22%; top: 28%; }

.stage-sidebar {
  position: absolute;
  top: 88px;
  right: 22px;
  width: 184px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(22, 93, 255, 0.12);
  background: rgba(11, 21, 35, 0.82);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.stage-sidebar__tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(22, 93, 255, 0.1);
  color: var(--accent-pale);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.stage-sidebar h3 {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.stage-sidebar ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.72;
}

.stage-sidebar li + li {
  margin-top: 6px;
}

.stage-footer-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  z-index: 1;
}

.stage-footer-panel__item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.stage-footer-panel__item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.stage-footer-panel__item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dim);
}


/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -8px;
}

.trust-strip__item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--duration) ease, background var(--duration) ease;
}

.trust-strip__item:hover {
  border-color: rgba(22, 93, 255, 0.16);
  background: rgba(22, 93, 255, 0.04);
}


/* ==========================================================================
   Case Studies
   ========================================================================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 25, 42, 0.92), rgba(10, 18, 31, 0.96));
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.case-card:hover {
  border-color: rgba(22, 93, 255, 0.22);
  box-shadow: 0 14px 44px rgba(22, 93, 255, 0.08);
  transform: translateY(-4px);
}

.case-card__preview {
  position: relative;
}

.case-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 93, 255, 0.14);
  border: 1px solid rgba(22, 93, 255, 0.18);
  color: var(--accent-pale);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.case-card__blueprint {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(8, 15, 26, 0.98));
}

.case-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.case-card__plan {
  position: absolute;
  border: 2px solid rgba(232, 240, 255, 0.76);
  background: rgba(232, 240, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.08);
}

.case-card__plan--main {
  left: 18%;
  top: 22%;
  width: 46%;
  height: 42%;
}

.case-card__plan--sub {
  right: 16%;
  bottom: 18%;
  width: 28%;
  height: 28%;
}

.case-card__node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 6px rgba(22, 93, 255, 0.14);
}

.case-card__node--one {
  left: 26%;
  top: 52%;
}

.case-card__node--two {
  right: 22%;
  top: 36%;
}

.case-card__node--three {
  right: 26%;
  bottom: 24%;
}

.case-chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(9, 18, 29, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.case-chip--primary {
  left: 16px;
  bottom: 18px;
}

.case-chip--secondary {
  right: 16px;
  top: 64px;
}

.case-chip--accent {
  right: 16px;
  bottom: 18px;
  color: #ffe2b3;
  border-color: rgba(255, 191, 102, 0.18);
}

.case-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
}

.case-card__body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.78;
}

.case-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.case-card__metric {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.case-card__metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.case-card__metric strong {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-card__actions {
  margin-top: 18px;
}


/* ==========================================================================
   Feature Cards
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.plan-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--card-radius);
}

.feature-card {
  grid-column: span 4;
  min-height: 220px;
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) { grid-column: span 7; }

.feature-card:nth-child(2),
.feature-card:nth-child(3) { grid-column: span 5; }

.feature-card:nth-child(5),
.feature-card:nth-child(6) { grid-column: span 6; }

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  transform: translate(-30%, 40%);
  transition: opacity var(--duration) ease;
}

.feature-card:nth-child(1)::after,
.feature-card:nth-child(4)::after {
  content: '';
  position: absolute;
  inset: auto 24px 24px auto;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  border: 1px solid rgba(22, 93, 255, 0.1);
  background:
    linear-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.8;
}

.feature-card:hover {
  border-color: rgba(22, 93, 255, 0.18);
  box-shadow: 0 8px 36px rgba(22, 93, 255, 0.08);
  transform: translateY(-3px);
}

.feature-card__tag,
.plan-card__tag,
.scenario-card__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent-pale);
  background: rgba(22, 93, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.feature-card h3,
.plan-card h3,
.campaign__rules-card h3,
.faq-item summary {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.feature-card p,
.plan-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}


/* ==========================================================================
   Scenario Cards
   ========================================================================== */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  padding: 24px;
  border-radius: var(--card-radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 22, 36, 0.92), rgba(10, 17, 30, 0.92));
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.scenario-card:hover {
  border-color: rgba(22, 93, 255, 0.2);
  box-shadow: 0 12px 42px rgba(22, 93, 255, 0.08);
  transform: translateY(-3px);
}

.scenario-card h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
}

.scenario-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}


/* ==========================================================================
   Workflow Steps
   ========================================================================== */

.section--split .workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.workflow-card {
  padding: 22px;
  border-radius: var(--card-radius);
  position: relative;
}

.workflow-card:hover {
  border-color: rgba(255, 208, 107, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 208, 107, 0.06);
}

.workflow-card__index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  background: rgba(255, 208, 107, 0.12);
  color: var(--accent-warm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.workflow-card h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.workflow-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
}


/* ==========================================================================
   Campaign Section
   ========================================================================== */

.campaign__panel {
  padding: 28px;
  border-radius: 26px;
}

.campaign__highlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 20px;
}

.campaign-banner,
.campaign-highlight-card {
  min-height: 180px;
  padding: 22px;
  border-radius: var(--card-radius);
  border: 1px solid var(--line);
}

.campaign-banner {
  background:
    radial-gradient(circle at 85% 15%, rgba(22, 93, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(12, 28, 42, 0.95), rgba(9, 20, 34, 0.95));
}

.campaign-banner h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.campaign-banner p,
.campaign-highlight-card p,
.campaign__rules li,
.reward-preview__tip {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.campaign-highlight-card {
  background: linear-gradient(180deg, rgba(35, 28, 12, 0.88), rgba(22, 18, 8, 0.94));
}

.campaign-highlight-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

.campaign__rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.campaign__rules-card {
  padding: 22px;
  border-radius: var(--card-radius);
}

.campaign__rules ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.campaign__rules li {
  margin-bottom: 6px;
}

/* Invite slider */
.invite-counter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.invite-counter input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.invite-counter input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-glow);
  transition: box-shadow 0.2s ease;
}

.invite-counter input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(22, 93, 255, 0.25);
}

.reward-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.reward-preview__count,
.reward-preview__days {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.reward-preview strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reward-preview span {
  color: var(--muted);
  font-size: 0.85rem;
}

.reward-preview__tip {
  margin: 10px 0 0;
  font-size: 0.82rem;
}


/* ==========================================================================
   Plans / Pricing
   ========================================================================== */

.plan-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  transform: translate(-30%, 40%);
  opacity: 0.5;
}

.plan-card:hover {
  border-color: rgba(22, 93, 255, 0.15);
  transform: translateY(-3px);
}

.plan-card ul {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.88rem;
}

.plan-card li {
  position: relative;
  padding-left: 20px;
}

.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.85rem;
}

.plan-card--featured {
  border-color: rgba(22, 93, 255, 0.22);
  background:
    radial-gradient(ellipse 60% 50% at top right, rgba(22, 93, 255, 0.08), transparent),
    var(--panel-strong);
  box-shadow: 0 8px 40px rgba(22, 93, 255, 0.08);
}

.plan-card--featured:hover {
  border-color: rgba(22, 93, 255, 0.3);
  box-shadow: 0 12px 48px rgba(22, 93, 255, 0.12);
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.section--compact {
  padding: 60px 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 22px;
  border-radius: var(--card-radius);
  transition: border-color var(--duration) ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
  border-color: rgba(22, 93, 255, 0.15);
}

.faq-item summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-light);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9rem;
}


/* ==========================================================================
   CTA (Call to Action)
   ========================================================================== */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, var(--accent-glow), transparent),
    radial-gradient(ellipse 32% 40% at 82% 24%, rgba(255, 191, 102, 0.1), transparent),
    var(--panel-strong);
}

.cta h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.cta p {
  margin: 10px 0 0;
  max-width: 520px;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
}

.site-footer strong {
  display: block;
  color: var(--text-dim);
  margin-bottom: 3px;
  font-size: 0.88rem;
}

.site-footer__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}


/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-delay {
  transition-delay: 0.15s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.feature-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.18s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.24s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.30s; }

.workflow-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.workflow-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.workflow-card.reveal:nth-child(4) { transition-delay: 0.24s; }

.plan-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.plan-card.reveal:nth-child(3) { transition-delay: 0.16s; }


/* ==========================================================================
   Responsive — Tablet (≤ 1200px)
   ========================================================================== */

@media (max-width: 1200px) {
  :root {
    --section-gap: 68px;
  }

  .hero,
  .campaign__highlight,
  .scenario-grid,
  .feature-grid,
  .plan-grid,
  .section--split .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card,
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-column: span 1;
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Responsive — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  .page-shell {
    width: min(100% - 32px, var(--max-width));
    padding-top: calc(var(--header-height) + 8px);
  }

  /* Header compact layout */
  .site-header__inner {
    padding: 10px 16px;
    height: 56px;
  }

  :root {
    --header-height: 56px;
  }

  .brand-mark__name {
    font-size: 0.95rem;
  }

  /* Ensure touch target ≥48×48px */
  .btn--header {
    min-height: 44px;
    min-width: 80px;
    padding: 8px 16px;
    font-size: 0.84rem;
  }

  /* Hero vertical layout */
  .hero,
  .campaign__highlight,
  .campaign__rules,
  .scenario-grid,
  .feature-grid,
  .plan-grid,
  .section--split .workflow,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }

  /* Value points */
  .hero__values li {
    font-size: 0.88rem;
  }

  /* Minimum font size 14px enforcement */
  .hero__values li,
  .feature-card p,
  .scenario-card p,
  .workflow-card p,
  .plan-card p,
  .plan-card li,
  .faq-item p,
  .campaign-banner p,
  .campaign-highlight-card p,
  .campaign__rules li,
  .cta p,
  .trust-strip__item,
  .reward-preview__tip {
    font-size: max(0.875rem, 14px);
  }

  /* Touch-friendly buttons — hero buttons stay side by side */
  .btn--lg {
    min-height: 48px;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__actions .btn--lg {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .hero__quick-links,
  .case-card,
  .case-card__meta {
    grid-template-columns: 1fr;
  }

  .case-card__blueprint {
    min-height: 220px;
  }

  /* Stage demo adjustments */
  .stage-window {
    animation: none;
  }

  .stage-board {
    min-height: 680px;
  }

  .plan-preview {
    inset: 76px 22px 340px;
    padding: 14px;
  }

  .blueprint__label {
    font-size: 0.66rem;
    padding: 4px 8px;
  }

  .stage-sidebar {
    position: absolute;
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 170px;
    width: auto;
    padding: 12px;
  }

  .stage-sidebar h3 {
    font-size: 0.82rem;
  }

  .stage-sidebar ul {
    font-size: 0.72rem;
  }

  .stage-footer-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .stage-footer-panel__item {
    padding: 8px 10px;
  }

  .stage-footer-panel__item span {
    font-size: 0.65rem;
  }

  .stage-footer-panel__item strong {
    font-size: 0.78rem;
  }

  /* CTA adjustments */
  .cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .cta__actions {
    justify-content: center;
    width: 100%;
  }

  .cta__actions .btn--lg {
    width: 100%;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* Extra small devices (≤ 380px) */
@media (max-width: 380px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .site-header__inner {
    padding: 8px 12px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero__values li::before {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
}
