/* ══════════════════════════════════════════════
   DORORO 命理館 — Deep Nebula Commercial Landing
   ══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #0a0a1a;
  --bg-deep: #060614;
  --surface: rgba(12, 12, 35, 0.92);
  --surface-light: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.2);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.15);
  --magenta: #ff2a6d;
  --purple: #a855f7;
  --emerald: #10b981;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-bright: #f8fafc;
  --star-bright: #ffcc00;
  --star-normal: #88aaff;
  --star-dim: #666688;
  --hua-lu: #00e87b;
  --hua-quan: #ff5544;
  --hua-ke: #44aaff;
  --hua-ji: #cc44ff;
  --cut: 16px;
  --cut-sm: 8px;
}

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

/* ── Base ── */
html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Star Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 45% 10%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 65% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 75% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 95% 90%, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 8% 42%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 22% 78%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 38% 18%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 52% 92%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 68% 52%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 92% 62%, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
  z-index: 0;
  animation: drift 180s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-30px) translateX(10px); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.section--dark {
  background: rgba(0, 0, 0, 0.2);
}

/* ── Clip-Path Utilities ── */
.cyber-clip {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.cyber-clip-sm {
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
}

/* ── Typography ── */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.text-cyan { color: var(--cyan); }

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title .text-cyan {
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Trust Bar */
.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  margin-bottom: 2.5rem;
}

.trust-item { text-align: center; }

.trust-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}

.trust-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.trust-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, var(--cyan), #00c0d0);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  transition: transform 0.2s, opacity 0.2s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-full { width: 100%; text-align: center; }

.hero-cta {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4)); }
}

/* ═══ Systems Grid ═══ */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sys-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), var(--surface));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 1.25rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform 0.2s, background 0.2s;
}
.sys-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), var(--surface));
}

.sys-card .sys-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.sys-card h3 {
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.sys-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Flagship card */
.sys-card--flag {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), var(--surface));
  text-align: center;
}
.sys-card--flag:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), var(--surface));
}
.sys-card--flag h3 { color: var(--gold); }

.sys-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

/* ═══ Steps ═══ */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.step-card {
  flex: 1;
  max-width: 220px;
  background: var(--surface);
  padding: 1.5rem 1rem;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.step-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-dim);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.step-arrow {
  color: var(--cyan);
  font-size: 1.5rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══ Pricing ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.price-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--surface));
  padding: 1.5rem 1rem;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.2s;
}
.price-card:hover { transform: translateY(-3px); }

.price-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 1rem;
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 0.25rem;
  font-weight: 400;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.25rem;
}

.price-features li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.25rem 0;
  line-height: 1.5;
}
.price-features li::before {
  content: '✦ ';
  color: var(--cyan);
}

.price-btn {
  display: block;
  padding: 0.6rem;
  background: var(--surface-light);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.15s;
}
.price-btn:hover { background: var(--surface-hover); }

.price-btn--pop {
  background: linear-gradient(135deg, var(--cyan), #00c0d0);
  color: var(--bg);
  font-weight: 700;
}
.price-btn--pop:hover { opacity: 0.9; }

/* Popular card */
.price-card--pop {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), var(--surface));
  transform: scale(1.03);
}
.price-card--pop:hover { transform: scale(1.03) translateY(-3px); }
.price-card--pop h3 { color: var(--cyan); }

.price-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.free-tag {
  background: var(--gold-dim);
  color: var(--gold);
}
.pop-tag {
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-right: 0.25rem;
}

/* ═══ Report Preview ═══ */
.preview-card {
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  overflow: hidden;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(0, 240, 255, 0.04);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.preview-head span:first-child { color: var(--gold); font-weight: 500; }

.preview-body {
  position: relative;
  padding: 1.5rem;
}

.preview-body h4 {
  color: var(--gold);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.05em;
}
.preview-body h4:first-child { margin-top: 0; }

.preview-body p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.preview-blur {
  filter: blur(3px);
  opacity: 0.5;
  user-select: none;
}

.preview-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(to bottom, transparent, var(--bg) 60%);
  text-align: center;
}

.preview-cta p {
  color: var(--text) !important;
  font-size: 1.1rem !important;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ═══ Form Section ═══ */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), var(--surface));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.form-row--3 .form-group { flex: 1; }
.form-row--2 .form-group { flex: 1; }

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-dim);
}
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }
select option { background: #1a1a3a; color: var(--text); }
textarea { resize: vertical; min-height: 70px; line-height: 1.6; }

.form-group.invalid input,
.form-group.invalid select {
  border-color: var(--magenta);
  box-shadow: 0 0 0 2px rgba(255, 42, 109, 0.15);
}

/* Aspect Pills */
.aspect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aspect-pill {
  cursor: pointer;
}

.aspect-pill input { position: absolute; opacity: 0; width: 0; height: 0; }

.aspect-pill span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.15s;
  user-select: none;
}

.aspect-pill input:checked + span {
  background: var(--cyan-dim);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.aspect-pill span:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* ═══ Chart Grid ═══ */
.chart-container { margin: 1.5rem 0; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 1px;
  background: var(--border);
}

.palace-cell {
  background: var(--surface);
  padding: 0.5rem;
  min-height: 100px;
  font-size: 0.75rem;
  position: relative;
}

.palace-cell .palace-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.palace-cell .palace-stem {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-align: center;
  opacity: 0.6;
}

.palace-cell .star {
  display: block;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.star-bright { color: var(--star-bright); }
.star-normal { color: var(--star-normal); }
.star-dim { color: var(--star-dim); }
.hua-lu { color: var(--hua-lu); font-weight: 600; }
.hua-quan { color: var(--hua-quan); font-weight: 600; }
.hua-ke { color: var(--hua-ke); font-weight: 600; }
.hua-ji { color: var(--hua-ji); font-weight: 600; }

.center-info {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: rgba(8, 8, 25, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.center-info h2 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
}

.center-info .info-line {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

/* ═══ Style Cards ═══ */
.style-wrap {
  margin: 1.5rem 0;
}

.style-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.style-card {
  background: var(--surface-light);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.style-card:hover {
  background: var(--surface-hover);
}

.style-card.active {
  background: var(--gold-dim);
}

.style-card .style-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.style-card h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.style-card.active h4 { color: var(--gold); }

.style-card p {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ═══ Tier Cards (post-chart) ═══ */
.tier-wrap { margin: 1.5rem 0; }

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

.tier-card {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  position: relative;
}
.tier-card:hover {
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

.tier-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-decoration: line-through;
}

.tier-free {
  display: inline-block;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-left: 0.25rem;
}

.tier-card ul {
  list-style: none;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.tier-card ul li { padding: 0.15rem 0; }

.tier-card--pop {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), var(--surface));
}
.tier-card--pop h3 { color: var(--cyan); }

.tier-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.2rem 0.6rem;
  background: var(--cyan);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ═══ Report ═══ */
.report {
  margin-top: 2rem;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  overflow: hidden;
}

.report-head {
  padding: 1.25rem 1.5rem;
  background: rgba(0, 240, 255, 0.04);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-brand {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.report-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.report-body {
  padding: 1.5rem;
  min-height: 200px;
}

.reading-content {
  line-height: 1.9;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.reading-content h2 {
  color: var(--gold);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.1em;
}
.reading-content h2:first-child { margin-top: 0; }

.reading-content h3 {
  color: var(--cyan);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.reading-content strong { color: var(--text-bright); }

.report-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.report-foot p {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 1.25rem 2rem 1.25rem 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--cyan); }

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.faq-q[aria-expanded="true"]::after {
  content: '−';
  color: var(--cyan);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-a p {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

/* ═══ Footer ═══ */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-disc {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.footer-links {
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-links span {
  color: var(--text-dim);
  opacity: 0.3;
  margin: 0 0.5rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.4;
}

/* ═══ Overlay (Payment) ═══ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay-card {
  position: relative;
  background: var(--surface);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
}
.overlay-close:hover { color: var(--text); }

.overlay-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.payment-detail {
  margin-bottom: 1.25rem;
}
.payment-detail p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.payment-detail strong { color: var(--text); }
.payment-detail code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  color: var(--cyan);
}

.payment-method {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.payment-method h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.payment-method p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.payment-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.payment-status {
  text-align: center;
  padding: 1rem;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* ═══ Loading & Error ═══ */
.report-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: rgba(255, 42, 109, 0.1);
  border: 1px solid rgba(255, 42, 109, 0.25);
  padding: 0.75rem 1rem;
  color: var(--magenta);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ═══ Scroll Reveal Animation ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.animate-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in:nth-child(2) { animation-delay: 0.15s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .animate-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hero { padding: 6rem 0 3rem; min-height: 70vh; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .trust-bar { gap: 0.75rem; padding: 0.6rem 1rem; }
  .trust-num { font-size: 1.1rem; }

  .section { padding: 3rem 0; }

  .systems-grid { grid-template-columns: 1fr 1fr; }
  .sys-card--flag { grid-column: span 2; }

  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { max-width: 100%; }

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

  .style-cards { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }

  .form-row--3 { flex-direction: column; gap: 0; }

  .palace-cell { min-height: 70px; padding: 0.3rem; }
  .palace-cell .star { font-size: 0.65rem; }
  .chart-grid { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.4rem; }

  .systems-grid { grid-template-columns: 1fr; }
  .sys-card--flag { grid-column: span 1; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--pop { transform: none; }
  .price-card--pop:hover { transform: translateY(-3px); }

  .form-row--2 { flex-direction: column; gap: 0; }
  .form-wrap { padding: 1.25rem; }

  .trust-bar { flex-direction: column; gap: 0.5rem; }
  .trust-sep { width: 40px; height: 1px; }
}
