/* ================================================
   逍遥DAO — Brand CSS System v2.0
   Rebuilt: clean, performant, complete
   ================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* === TOKENS (Dark — default) === */
:root, [data-theme="dark"] {
  --bg-1: #06080F;
  --bg-2: #0A0E17;
  --bg-3: #0F1829;
  --bg-card: rgba(15, 24, 41, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(6, 8, 15, 0.92);
  --nav-shadow: rgba(0,0,0,0.5);
  --modal-overlay: rgba(0,0,0,0.75);
  --modal-bg: #0A0E17;
  --toast-bg: rgba(15, 24, 41, 0.9);
  --select-arrow: %236B7A8D;
  --input-option-bg: #0A0E17;

  --gold: #C9A84C;
  --gold-l: #E8C76A;
  --gold-d: #A88730;
  --gold-bg: rgba(201, 168, 76, 0.10);
  --gold-border: rgba(201, 168, 76, 0.25);
  --gold-glow: rgba(201, 168, 76, 0.35);
  --gold-btn-text: #0A0E17;

  --white: #FFFFFF;
  --t1: #FFFFFF;
  --t2: #B8C4D4;
  --t3: #6B7A8D;
  --border: rgba(255, 255, 255, 0.08);

  --green: #10B981;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --red: #EF4444;
  --amber: #F59E0B;

  --font-sans: 'Noto Sans SC', 'PingFang SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;

  --nav-h: 68px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --particle-a: rgba(201,168,76,0.3);
  --particle-b: rgba(201,168,76,0.15);
  --particle-c: rgba(232,199,106,0.2);
  --particle-line: rgba(201,168,76,0.06);
  --orb-opacity: 0.3;
  --close-hover-bg: rgba(255,255,255,0.05);
}

/* === TOKENS (Light) === */
[data-theme="light"] {
  --bg-1: #F5F3EF;
  --bg-2: #FFFFFF;
  --bg-3: #EDE9E1;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --nav-bg: rgba(245, 243, 239, 0.92);
  --nav-shadow: rgba(0,0,0,0.08);
  --modal-overlay: rgba(0,0,0,0.35);
  --modal-bg: #FFFFFF;
  --toast-bg: rgba(255,255,255,0.95);
  --select-arrow: %236B7A8D;
  --input-option-bg: #FFFFFF;

  --gold: #9E7C20;
  --gold-l: #C9A84C;
  --gold-d: #7A5F14;
  --gold-bg: rgba(158, 124, 32, 0.08);
  --gold-border: rgba(158, 124, 32, 0.22);
  --gold-glow: rgba(158, 124, 32, 0.20);
  --gold-btn-text: #FFFFFF;

  --t1: #1A1A1A;
  --t2: #4A4A4A;
  --t3: #8A8A8A;
  --border: rgba(0, 0, 0, 0.08);

  --green: #059669;
  --blue: #2563EB;
  --purple: #7C3AED;
  --red: #DC2626;
  --amber: #D97706;

  --particle-a: rgba(158,124,32,0.15);
  --particle-b: rgba(158,124,32,0.08);
  --particle-c: rgba(200,168,76,0.12);
  --particle-line: rgba(158,124,32,0.04);
  --orb-opacity: 0.12;
  --close-hover-bg: rgba(0,0,0,0.05);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg-1); color: var(--t1); font-family: var(--font-sans); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 3px; }

/* === UTILITY === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.gold { color: var(--gold); }
.hide-mobile { display: inline; }
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hide-mobile { display: none; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; border-radius: 8px;
  padding: 10px 22px; transition: all 0.3s var(--ease);
  white-space: nowrap; line-height: 1.4;
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-d), var(--gold), var(--gold-l));
  color: var(--gold-btn-text); box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.45); }
.btn-outline {
  border: 1px solid var(--gold-border); color: var(--t2);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 24px var(--nav-shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { border-radius: 6px; }
.nav-logo-text { display: flex; flex-direction: column; }
.logo-cn { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.logo-en { font-size: 0.65rem; color: var(--t3); letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.88rem; color: var(--t2); transition: color 0.3s;
  position: relative;
}
.nav-link:hover { color: var(--gold); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 1.5px; background: var(--gold); transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }

/* Hamburger */
.hamburger { display: none; width: 28px; height: 20px; position: relative; z-index: 1001; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--t2); border-radius: 2px; transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-110%); transition: transform 0.4s var(--ease);
  border-bottom: 1px solid var(--gold-border);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link {
  padding: 14px 0; font-size: 1rem; color: var(--t2);
  border-bottom: 1px solid var(--border);
}
.mobile-link:hover { color: var(--gold); }
.mobile-cta { margin-top: 12px; text-align: center; justify-content: center; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; }
}

/* === HERO === */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  opacity: var(--orb-opacity); animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 500px; height: 500px; background: var(--gold);
  top: 10%; left: -10%; animation-delay: 0s;
}
.hero-orb--2 {
  width: 400px; height: 400px; background: var(--gold-d);
  bottom: -5%; right: -5%; animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; cursor: crosshair;
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 40px 0 80px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  padding: 6px 18px; border-radius: 20px; font-size: 0.82rem;
  color: var(--gold); margin-bottom: 28px;
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--t2);
  max-width: 640px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat__num { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; display: block; }
.hero-stat__label { font-size: 0.78rem; color: var(--t3); margin-top: 2px; }
.hero-stat__divider { width: 1px; height: 32px; background: var(--border); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); text-align: center; z-index: 1;
  animation: scrollHintFloat 2s ease-in-out infinite;
}
.scroll-hint span { display: block; font-size: 0.7rem; color: var(--t3); margin-top: 6px; }
.scroll-mouse {
  width: 22px; height: 34px; border: 2px solid var(--gold-border);
  border-radius: 11px; margin: 0 auto; position: relative;
}
.scroll-wheel {
  width: 3px; height: 8px; background: var(--gold);
  border-radius: 2px; position: absolute; top: 6px;
  left: 50%; transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }
@keyframes scrollHintFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* === SECTIONS === */
.section {
  padding: 100px 0; position: relative; overflow: hidden;
}
.section--alt { background: var(--bg-2); }
.sec-header { text-align: center; margin-bottom: 60px; }
.sec-tag {
  display: inline-block; font-size: 0.78rem; color: var(--gold);
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  padding: 4px 14px; border-radius: 4px; margin-bottom: 16px;
  letter-spacing: 1px;
}
.sec-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.3; margin-bottom: 12px;
}
.sec-sub { color: var(--t2); font-size: 0.95rem; max-width: 560px; margin: 0 auto; }

/* === FEATURES — 6 Card Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.feat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,168,76,0.08);
}
.feat-card:hover::before { opacity: 1; }

/* All 6 cards equal width, 3 per row on desktop */

/* Icon + Number */
.feat-card__icon {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.feat-icon-circle {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.feat-icon-circle svg {
  width: 22px; height: 22px;
}
.feat-icon--soul { background: rgba(201,168,76,0.10); color: var(--gold); border-color: var(--gold-border); }
.feat-icon--board { background: rgba(139,92,246,0.10); color: var(--purple); border-color: rgba(139,92,246,0.2); }
.feat-icon--match { background: rgba(59,130,246,0.10); color: var(--blue); border-color: rgba(59,130,246,0.2); }
.feat-icon--eco { background: rgba(16,185,129,0.10); color: var(--green); border-color: rgba(16,185,129,0.2); }
.feat-icon--card { background: rgba(245,158,11,0.10); color: var(--amber); border-color: rgba(245,158,11,0.2); }
.feat-icon--msg { background: rgba(236,72,153,0.10); color: #ec4899; border-color: rgba(236,72,153,0.2); }

.feat-card:hover .feat-icon-circle { transform: scale(1.08); }

.feat-num {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 0.72rem; color: var(--t4); letter-spacing: 1px;
}

/* Text */
.feat-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 6px; color: var(--t1);
}
.feat-card__subtitle {
  font-size: 0.82rem; color: var(--gold);
  margin-bottom: 12px; font-weight: 500;
}
.feat-card__desc {
  font-size: 0.88rem; color: var(--t3);
  line-height: 1.75; margin-bottom: 18px;
}

/* === Feature 1: Flow Steps === */
.feat-card__flow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.flow-step {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px;
  font-size: 0.75rem; color: var(--t2);
  white-space: nowrap; transition: all 0.3s;
}
.flow-step.active {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  color: var(--gold); font-weight: 600;
}
.flow-arrow { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.feat-card:hover .flow-step { border-color: var(--gold-border); }

/* === Feature 2: Experts === */
.feat-card__experts {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.expert-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: var(--t2);
  transition: all 0.3s var(--ease);
}
.feat-card:hover .expert-avatar {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
}
.expert-label {
  font-size: 0.75rem; color: var(--gold);
  margin-left: 4px; font-weight: 500;
}

/* === Feature 3: Stat Ring === */
.feat-card__stat {
  display: flex; align-items: center; gap: 14px;
}
.stat-ring {
  position: relative; width: 56px; height: 56px; flex-shrink: 0;
}
.stat-ring svg { width: 56px; height: 56px; }
.stat-ring__num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700; color: var(--gold);
}
.stat-ring__num small { font-size: 0.65rem; }
.stat-ring__label {
  font-size: 0.78rem; color: var(--t3);
}

/* === Feature 4: Dimensions === */
.feat-card__dims {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dim-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 8px;
  font-size: 0.78rem; color: var(--t2);
  transition: all 0.3s;
}
.dim-pill strong {
  color: var(--green); font-size: 1.05rem; margin-right: 2px;
}
.dim-x { color: var(--t4); font-weight: 300; font-size: 0.9rem; }
.feat-card:hover .dim-pill { border-color: rgba(16,185,129,0.3); }

/* === Feature 5: Metrics === */
.feat-card__metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.metric-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 8px 6px; border-radius: 8px;
  font-size: 0.72rem; color: var(--t3);
  text-align: center; transition: all 0.3s;
}
.metric-icon { display: block; font-size: 1rem; margin-bottom: 3px; }
.feat-card:hover .metric-item { border-color: rgba(245,158,11,0.3); }

/* === Feature 6: Messages === */
.feat-card__msgs {
  display: flex; flex-direction: column; gap: 6px;
}
.msg-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 6px;
  font-size: 0.75rem; color: var(--t3);
  background: var(--bg-glass); border: 1px solid var(--border);
  transition: all 0.3s;
}
.msg-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.msg--match .msg-dot { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.msg--report .msg-dot { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.msg--agent .msg-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.feat-card:hover .msg-preview { border-color: rgba(236,72,153,0.2); }

/* Responsive */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-card__flow { gap: 4px; }
  .feat-card__metrics { grid-template-columns: repeat(2, 1fr); }
}

/* === FOUNDERS === */
.founders-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 48px;
}
.founder-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all 0.4s var(--ease);
  text-align: center;
}
.founder-card:hover {
  transform: translateY(-4px); border-color: var(--gold-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Circular Avatar with Gold Ring */
.founder-avatar {
  width: 120px; height: 120px; margin: 32px auto 0;
  position: relative; border-radius: 50%;
}
.founder-avatar__ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold-border);
  background: conic-gradient(from 0deg, var(--gold), var(--gold-d), transparent, var(--gold-d), var(--gold));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  animation: ringRotate 6s linear infinite;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
.founder-avatar img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; position: relative; z-index: 1;
  border: 3px solid var(--bg-1);
}
.founder-avatar__placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-card));
  border: 3px solid var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.founder-avatar__placeholder span {
  font-family: var(--font-serif); font-size: 2.2rem;
  font-weight: 700; color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.founder-body { padding: 20px 24px 28px; }
.founder-name {
  font-family: var(--font-serif); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 4px;
}
.founder-role { font-size: 0.75rem; color: var(--gold); display: block; margin-bottom: 14px; }
.founder-quote {
  font-style: italic; font-size: 0.82rem; color: var(--t2);
  border-left: 2px solid var(--gold-border); padding-left: 14px;
  margin-bottom: 14px; line-height: 1.7; text-align: left;
}
.founder-list { font-size: 0.78rem; color: var(--t2); text-align: left; }
.founder-list li {
  padding: 3px 0; padding-left: 16px; position: relative;
}
.founder-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.6;
}

/* Mission Box */
.mission-box {
  background: var(--bg-card); border: 1px solid var(--gold-border);
  border-radius: 16px; padding: 32px 40px; text-align: center;
  position: relative;
}
.mission-box::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--gold-border), transparent, var(--gold-border));
  border-radius: 17px; z-index: -1;
}
.mission-logo {
  margin-bottom: 16px;
}
.mission-logo img {
  margin: 0 auto; border-radius: 10px;
  filter: drop-shadow(0 0 16px rgba(201,168,76,0.3));
}
.mission-box blockquote {
  font-size: 0.92rem; color: var(--t2); line-height: 1.85;
}
.mission-box strong { color: var(--gold); }

@media (max-width: 1024px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .founders-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .mission-box { padding: 24px 20px; }
}

/* === ROADMAP / TIMELINE === */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker { position: absolute; left: -40px; top: 0; }
.tl-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.tl-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--t3); transition: all 0.3s;
}
.tl-item--active .tl-dot { border-color: var(--gold); }
.tl-item--active .tl-dot::after { background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }

.tl-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.tl-item--active .tl-card { border-color: var(--gold-border); }
.tl-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.tl-badge.current { background: rgba(16,185,129,0.15); color: var(--green); }
.tl-badge.upcoming { background: rgba(59,130,246,0.15); color: var(--blue); }
.tl-badge.future { background: rgba(139,92,246,0.15); color: var(--purple); }
.tl-period { font-size: 0.78rem; color: var(--t3); display: block; margin-bottom: 6px; }
.tl-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.tl-desc { font-size: 0.88rem; color: var(--t2); margin-bottom: 14px; }
.tl-list li {
  font-size: 0.85rem; color: var(--t2); padding: 4px 0;
}

/* === CTA SECTION === */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.cta-content { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.25; margin-bottom: 18px;
}
.cta-desc { color: var(--t2); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.8; }
.cta-urgency {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--gold); margin-bottom: 28px;
}
.urgency-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
.cta-actions { margin-bottom: 32px; }
.cta-contacts {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--t3);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0 28px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem;
}
.footer-brand img { border-radius: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: var(--t3); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--t3); }
.footer-quote {
  text-align: center; font-size: 0.78rem; color: var(--t3);
  font-style: italic; padding-top: 20px; border-top: 1px solid var(--border);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cta-contacts { flex-direction: column; gap: 8px; }
}

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--modal-overlay); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--modal-bg); border: 1px solid var(--gold-border);
  border-radius: 20px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; position: relative;
  padding: 36px; transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 1.5rem; color: var(--t3); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.3s; z-index: 1;
}
.modal-close:hover { background: var(--close-hover-bg); color: var(--t1); }

.modal-head {
  text-align: center; margin-bottom: 28px;
}
.modal-head img { margin: 0 auto 12px; border-radius: 8px; }
.modal-head h2 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 6px; }
.modal-head p { font-size: 0.82rem; color: var(--t3); }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; color: var(--t2);
  margin-bottom: 6px; font-weight: 500;
}
.req { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px; color: var(--t1);
  font-size: 0.88rem; transition: border-color 0.3s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--t3); }
.form-group textarea { resize: vertical; min-height: 72px; }
.form-group select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7A8D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-group select option { background: var(--input-option-bg); }
.form-group .error { border-color: var(--red) !important; }
.form-group .error-msg { font-size: 0.72rem; color: var(--red); margin-top: 4px; }

.btn-submit {
  width: 100%; justify-content: center; padding: 14px; margin-top: 4px;
  font-size: 0.95rem;
}
.form-note {
  text-align: center; font-size: 0.75rem; color: var(--t3); margin-top: 12px;
}

/* Success */
.success-content { text-align: center; padding: 20px 0; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(16,185,129,0.15); color: var(--green);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--green);
}
.success-content h2 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 12px; }
.success-content p { color: var(--t2); font-size: 0.92rem; margin-bottom: 4px; }
.success-sub { margin-bottom: 24px !important; }

@media (max-width: 560px) {
  .modal { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* === TOAST === */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg); border: 1px solid var(--gold-border);
  color: var(--t1); padding: 12px 24px; border-radius: 10px;
  font-size: 0.85rem; z-index: 10001; opacity: 0;
  pointer-events: none; transition: all 0.3s var(--ease);
  backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === ANIMATIONS === */
.anim {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim.visible { opacity: 1; transform: translateY(0); }

/* === THEME SWITCHER === */
.theme-toggle {
  display: flex; align-items: center; gap: 3px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; margin-left: 8px;
}
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; border-radius: 6px;
  font-size: 0.82rem; color: var(--t3);
  transition: all 0.25s var(--ease); position: relative;
}
.theme-btn:hover { color: var(--t2); }
.theme-btn.active {
  background: var(--gold-bg); color: var(--gold);
  border: 1px solid var(--gold-border);
}
.theme-btn svg { width: 15px; height: 15px; }

/* Mobile theme toggle in mobile menu */
.mobile-theme-row {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 0 6px; border-top: 1px solid var(--border); margin-top: 8px;
}
.mobile-theme-row .theme-btn { width: 40px; height: 34px; border-radius: 8px; }

/* Light mode specific overrides for elements with hardcoded colors */
[data-theme="light"] .btn-gold:hover { box-shadow: 0 8px 30px rgba(158,124,32,0.3); }
[data-theme="light"] .cta-section {
  background: radial-gradient(ellipse at center, rgba(158,124,32,0.06) 0%, transparent 70%);
}
[data-theme="light"] .hero-orb--1 { background: var(--gold); }
[data-theme="light"] .hero-orb--2 { background: var(--gold-d); }
[data-theme="light"] .visual-card::before {
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}
[data-theme="light"] .tl-dot {
  background: var(--bg-2);
}
[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="light"] .section--alt { background: var(--bg-2); }
