/* ====================================================
   兴华吉盛 / 白泽商学院 V2.0 Design System
   Poppr-inspired Dark Theme + Gold Accents
   ==================================================== */

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

/* --- CSS VARIABLES --- */
:root {
  /* Brand Colors */
  --bg-deep: #0a1628;
  --bg-mid: #1a2744;
  --bg-teal: #0d7377;
  --gold: #c8a45c;
  --gold-light: #e8c97a;
  --gold-glow: rgba(200,164,92,0.25);
  --text-white: #f5f5f5;
  --text-grey: #a0a8b8;
  --text-dim: #5a6478;

  /* Gradient */
  --grad-gold: linear-gradient(135deg, #c8a45c, #e8c97a);
  --grad-bg: linear-gradient(180deg, #0a1628 0%, #1a2744 50%, #0d7377 100%);
  --grad-card: linear-gradient(145deg, rgba(26,39,68,0.6), rgba(10,22,40,0.9));
  --grad-hero: radial-gradient(ellipse at 30% 50%, rgba(13,115,119,0.15) 0%, transparent 60%);

  /* Typography */
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-gold: 0 0 20px rgba(200,164,92,0.15);
  --border-subtle: 1px solid rgba(200,164,92,0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-cn);
  background: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.8;
  cursor: none;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); cursor: none; }
a:hover { color: var(--gold-light); }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-cn);
  font-weight: 700;
  line-height: 1.3;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top:0; left:0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top:0; left:0;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s;
  transform: translate(-50%, -50%);
}

.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--gold-light);
  background: rgba(200,164,92,0.08);
}

.cursor-ring.click {
  transform: translate(-50%, -50%) scale(0.8);
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: var(--space-3xl) 0;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* --- PARTICLE CANVAS --- */
#particles-canvas {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  z-index: 0;
  pointer-events: none;
}

/* --- GRADIENT OVERLAY --- */
.gradient-overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: var(--grad-hero);
  z-index: 0;
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top:0; left:0; width:100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-white);
  z-index: 1001;
}

.nav-logo img {
  width: 42px; height: 42px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  color: var(--text-grey);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--grad-gold);
  transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: none;
  font-family: var(--font-cn);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--bg-deep);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,164,92,0.35);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(200,164,92,0.1);
  transform: translateY(-2px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  z-index: 1001;
  padding: 8px;
}

.menu-toggle span {
  width: 28px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 120px; height: 120px;
  margin: 0 auto var(--space-lg);
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(200,164,92,0.3));
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-grey);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.9;
}

.hero-tagline .typed-cursor {
  color: var(--gold);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50% { opacity:0; }
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: scrollHint 2s ease-in-out infinite;
}

.hero-scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollHint {
  0%,100% { opacity:0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity:1; transform: translateX(-50%) translateY(8px); }
}

/* --- SECTION HEADERS --- */
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-grey);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.9;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* --- GOLD DIVIDER --- */
.gold-line {
  width: 60px; height: 3px;
  background: var(--grad-gold);
  margin: var(--space-md) 0;
  border-radius: 2px;
}

.gold-line.center { margin: var(--space-md) auto; }

/* --- CARDS --- */
.card {
  background: var(--grad-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: linear-gradient(135deg, rgba(200,164,92,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,164,92,0.3);
  box-shadow: var(--shadow-gold);
}

.card:hover::before { opacity:1; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--gold-light);
}

.card p {
  color: var(--text-grey);
  font-size: 0.95rem;
}

/* --- 3-COL GRID --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --- DATA COUNTER --- */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.data-item .data-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.data-item .data-label {
  color: var(--text-grey);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

/* --- FLYWHEEL --- */
.flywheel-container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.flywheel-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.flywheel-ring {
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(200,164,92,0.2);
  position: relative;
  animation: spin 20s linear infinite;
}

.flywheel-ring .node {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--grad-card);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold-light);
  animation: counter-spin 20s linear infinite;
}

.flywheel-ring .node:nth-child(1) { top: -40px; left: 50%; transform: translateX(-50%); }
.flywheel-ring .node:nth-child(2) { top: 50%; right: -40px; transform: translateY(-50%); }
.flywheel-ring .node:nth-child(3) { bottom: -40px; left: 50%; transform: translateX(-50%); }
.flywheel-ring .node:nth-child(4) { top: 50%; left: -40px; transform: translateY(-50%); }

.flywheel-center {
  position: absolute;
  font-size: 2rem;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counter-spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.flywheel-text { flex: 1; }

/* --- CASE STUDY --- */
.case-card {
  background: var(--grad-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}

.case-card:hover {
  border-color: rgba(200,164,92,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.case-card .case-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(200,164,92,0.15);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.case-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.case-card .case-metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: var(--space-sm) 0;
}

.case-card p { color: var(--text-grey); font-size: 0.9rem; }

/* --- BLOG CARD (Magazine Style) --- */
.blog-magazine-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  background: var(--grad-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-magazine-card:hover {
  border-color: rgba(200,164,92,0.3);
  box-shadow: var(--shadow-gold);
}

.blog-magazine-img {
  min-height: 300px;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background-size: cover;
  background-position: center;
}

.blog-magazine-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-magazine-body .blog-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(200,164,92,0.15);
  color: var(--gold);
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.blog-magazine-body .blog-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.blog-magazine-body h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-magazine-body p {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.read-more {
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover { gap: 12px; }

/* --- FOUNDER --- */
.founder-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.founder-avatar {
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 40px rgba(200,164,92,0.2);
}

.founder-info h2 {
  font-size: 2.2rem;
  margin-bottom: var(--space-xs);
}

.founder-info .founder-title {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.founder-info p {
  color: var(--text-grey);
  margin-bottom: var(--space-sm);
}

.founder-books {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}

.founder-books .book-tag {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  background: rgba(200,164,92,0.1);
  border: 1px solid rgba(200,164,92,0.2);
  color: var(--gold-light);
}

/* --- CONTACT FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-grey);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(26,39,68,0.5);
  border: 1px solid rgba(200,164,92,0.15);
  border-radius: var(--radius);
  color: var(--text-white);
  font-family: var(--font-cn);
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,92,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--bg-mid); }

/* --- PAGE HEADER (inner pages) --- */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.breadcrumb {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.breadcrumb a { color: var(--text-grey); }
.breadcrumb a:hover { color: var(--gold); }

/* --- FOOTER --- */
.site-footer {
  background: rgba(10,22,40,0.95);
  border-top: var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: var(--text-grey);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--text-grey);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(200,164,92,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity:1; transform:translateY(0); }

/* --- AI CHAT OVERLAY --- */
.ai-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ai-chat-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ai-chat-container {
  width: 100%;
  max-width: 600px;
  padding: var(--space-lg);
  text-align: center;
}

.ai-chat-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(200,164,92,0.3);
  animation: float 4s ease-in-out infinite;
}

.ai-chat-messages {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
}

.ai-msg {
  margin-bottom: var(--space-md);
  text-align: left;
}

.ai-msg.bot .bubble {
  background: rgba(200,164,92,0.1);
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 18px;
  color: var(--text-white);
  font-size: 0.95rem;
  line-height: 1.8;
  display: inline-block;
  max-width: 90%;
}

.ai-msg.user {
  text-align: right;
}

.ai-msg.user .bubble {
  background: var(--grad-gold);
  color: var(--bg-deep);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  max-width: 90%;
}

.ai-chat-input {
  display: flex;
  gap: 12px;
}

.ai-chat-input input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(26,39,68,0.5);
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: var(--font-cn);
  cursor: none;
}

.ai-chat-input input:focus {
  outline: none;
  border-color: var(--gold);
}

.ai-chat-input button {
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-weight: 700;
  border: none;
  cursor: none;
  font-family: var(--font-cn);
}

.ai-chat-close {
  position: absolute;
  top: 20px; right: 30px;
  background: none;
  border: none;
  color: var(--text-grey);
  font-size: 2rem;
  cursor: none;
  transition: var(--transition);
}

.ai-chat-close:hover { color: var(--gold); }

.ai-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-sm);
}

.ai-chat-options button {
  padding: 10px 20px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(200,164,92,0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-family: var(--font-cn);
  cursor: none;
  transition: var(--transition);
}

.ai-chat-options button:hover {
  background: rgba(200,164,92,0.15);
  border-color: var(--gold);
}

/* --- AI TRIGGER BUTTON --- */
.ai-trigger {
  position: fixed;
  bottom: 30px; left: 30px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--bg-deep);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(200,164,92,0.4);
  transition: var(--transition);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%,100% { box-shadow: 0 4px 20px rgba(200,164,92,0.4); }
  50% { box-shadow: 0 4px 40px rgba(200,164,92,0.6); }
}

.ai-trigger:hover { transform: scale(1.1); }

/* --- ADMIN PAGE --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: var(--border-subtle);
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-table td { color: var(--text-grey); }

/* --- POST CONTENT (article page) --- */
.post-container { max-width: 780px; margin: 0 auto; }

.post-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-xl);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.post-meta .tag {
  background: rgba(200,164,92,0.15);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.78rem;
}

.post-toc {
  background: var(--grad-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.post-toc h4 { color: var(--gold); margin-bottom: var(--space-sm); }

.post-toc ul { list-style: none; }

.post-toc li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-toc a { color: var(--text-grey); font-size: 0.9rem; }
.post-toc a:hover { color: var(--gold); }

.post-body h2 {
  font-size: 1.6rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--gold-light);
}

.post-body p {
  margin-bottom: var(--space-md);
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 2;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: rgba(200,164,92,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-white);
  font-style: italic;
}

.post-body ul, .post-body ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
  color: var(--text-grey);
}

.post-body li { margin-bottom: 8px; }

/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(200,164,92,0.4);
}

.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-item p { color: var(--text-grey); font-size: 0.95rem; }

/* --- QUOTE BLOCK --- */
.quote-block {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.quote-block blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-white);
  max-width: 800px;
  margin: 0 auto var(--space-md);
  font-style: italic;
}

.quote-block cite {
  color: var(--gold);
  font-size: 0.9rem;
  font-style: normal;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: none;
  font-family: var(--font-cn);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--gold); }

.faq-question .icon {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
  padding-bottom: var(--space-md);
  color: var(--text-grey);
  line-height: 1.9;
}

/* --- BLOG LIST (magazine) --- */
.blog-list { display: flex; flex-direction: column; gap: var(--space-xl); }

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(200,164,92,0.2);
  color: var(--text-grey);
  font-size: 0.82rem;
  cursor: none;
  font-family: var(--font-cn);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(200,164,92,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .flywheel-container { flex-direction: column; }
  .founder-section { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }

  .nav-menu.active { transform: translateX(0); }

  .nav-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
  }

  .menu-toggle { display: flex; }

  .nav-cta { display: none; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-magazine-card { grid-template-columns: 1fr; }
  .blog-magazine-img { min-height: 200px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-logo { width: 80px; height: 80px; }

  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, input, textarea, select { cursor: auto; }

  .section-full { padding: var(--space-2xl) 0; }

  .flywheel-ring { width: 240px; height: 240px; }
  .flywheel-ring .node { width: 60px; height: 60px; font-size: 0.6rem; }
  .flywheel-ring .node:nth-child(1) { top: -30px; }
  .flywheel-ring .node:nth-child(2) { right: -30px; }
  .flywheel-ring .node:nth-child(3) { bottom: -30px; }
  .flywheel-ring .node:nth-child(4) { left: -30px; }
}

@media (max-width: 480px) {
  .data-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .hero h1 { font-size: 2rem; }
}

/* ====================================================
   V3.0 — CINEMATIC IMAGE BACKGROUNDS & RICH VISUALS
   ==================================================== */

/* --- FULL-BLEED IMAGE SECTION --- */
.img-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.img-section .img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.img-section .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.85) 100%);
  z-index: 1;
}

.img-section .img-overlay.light {
  background: linear-gradient(180deg, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.7) 100%);
}

.img-section .img-overlay.heavy {
  background: linear-gradient(180deg, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.92) 100%);
}

.img-section .img-overlay.left-fade {
  background: linear-gradient(90deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.4) 70%, transparent 100%);
}

.img-section .img-overlay.right-fade {
  background: linear-gradient(270deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.4) 70%, transparent 100%);
}

.img-section > .container {
  position: relative;
  z-index: 2;
}

/* --- SPLIT SECTION (text + image side by side) --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  position: relative;
  z-index: 1;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--bg-deep);
}

.split-img {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
}

.split-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-deep) 0%, transparent 30%);
}

/* --- IMAGE CARD (card with background image) --- */
.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
  border: var(--border-subtle);
}

.img-card .img-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.img-card:hover .img-card-bg {
  transform: scale(1.05);
}

.img-card .img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.3) 60%, transparent 100%);
}

.img-card .img-card-body {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
  width: 100%;
}

.img-card:hover {
  border-color: rgba(200,164,92,0.3);
  box-shadow: var(--shadow-gold);
}

/* --- HERO V3 (with background image) --- */
.hero-v3 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-v3 .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-v3 .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.85) 100%);
  z-index: 1;
}

.hero-v3 .hero-content {
  position: relative;
  z-index: 2;
}

/* --- TESTIMONIAL STRIP --- */
.testimonial-strip {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.testimonial-strip::-webkit-scrollbar { display: none; }

.testimonial-card {
  min-width: 350px;
  background: var(--grad-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  flex-shrink: 0;
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  color: var(--text-grey);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.testimonial-card .author {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card .author span {
  display: block;
  color: var(--gold);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* --- PARALLAX (mobile fallback) --- */
@media (max-width: 768px) {
  .img-section .img-bg { background-attachment: scroll; }
  .split-section { grid-template-columns: 1fr; }
  .split-img { min-height: 300px; }
  .split-img::after { background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 30%); }
  .split-text { padding: var(--space-2xl) var(--space-md); }
  .testimonial-card { min-width: 280px; }
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: rgba(26,39,68,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200,164,92,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* --- PAGE HERO V3 (with bg image) --- */
.page-hero-v3 {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 80px;
  overflow: hidden;
}

.page-hero-v3 .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-v3 .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.95) 100%);
  z-index: 1;
}

.page-hero-v3 > .container {
  position: relative;
  z-index: 2;
}

.page-hero-v3 h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ====================================================
   V3.5 — HERO VIDEO BACKGROUND
   ==================================================== */

/* HTML5 Video element as hero background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Static image fallback sits behind video for graceful degradation */
.hero-video .hero-bg-animated {
  z-index: -1;
}

/* ====================================================
   V3.5 — ANIMATED HERO VIDEO EFFECT (CSS FALLBACK)
   ==================================================== */

/* Animated background simulating video pan/zoom */
.hero-video .hero-bg-animated {
  animation: heroKenBurns 25s ease-in-out infinite alternate;
  transform-origin: center center;
}

.hero-video .hero-bg-layer2 {
  opacity: 0;
  animation: heroLayerCrossfade 20s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.0) translateX(0); }
  25%  { transform: scale(1.08) translateX(-2%); }
  50%  { transform: scale(1.12) translateX(2%) translateY(-1%); }
  75%  { transform: scale(1.05) translateX(-1%) translateY(1%); }
  100% { transform: scale(1.15) translateX(1%); }
}

@keyframes heroLayerCrossfade {
  0%   { opacity: 0; transform: scale(1.1); }
  40%  { opacity: 0; }
  50%  { opacity: 0.25; transform: scale(1.15); }
  60%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.2); }
}

/* Subtle light sweep overlay */
.hero-video .hero-bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(200,164,92,0.06) 50%,
    transparent 70%
  );
  animation: lightSweep 8s ease-in-out infinite;
}

@keyframes lightSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ====================================================
   V3.5 — AI-GENERATED ICON IMAGES
   ==================================================== */

/* Card icon images (replacing emojis) */
.card-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 12px rgba(200,164,92,0.3));
  transition: var(--transition);
  border-radius: 12px;
}

.card:hover .card-icon-img,
.glass-card:hover .card-icon-img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 20px rgba(200,164,92,0.5));
}

/* Flywheel small icons */
.flywheel-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(200,164,92,0.25));
  margin-bottom: 4px;
  border-radius: 8px;
}

.flywheel-item:hover .flywheel-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 16px rgba(200,164,92,0.45));
}

/* Inline icons in h3 titles */
.inline-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 2px 6px rgba(200,164,92,0.3));
  border-radius: 4px;
}

/* ====================================================
   V3.5 — SEMI-TRANSPARENT HIGH-QUALITY BACKGROUNDS
   ==================================================== */

/* Enhanced glass card with subtle image bg */
.card.glass-card {
  background: linear-gradient(
    145deg,
    rgba(26,39,68,0.5) 0%,
    rgba(10,22,40,0.7) 50%,
    rgba(13,115,119,0.15) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200,164,92,0.12);
  overflow: hidden;
}

.card.glass-card::before {
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(200,164,92,0.08) 0%,
    transparent 60%
  );
  opacity: 1;
}

/* Semi-transparent section backgrounds */
.section,
#cases,
#blog-preview {
  background: linear-gradient(
    180deg,
    rgba(10,22,40,0.85) 0%,
    rgba(26,39,68,0.6) 50%,
    rgba(10,22,40,0.9) 100%
  );
  position: relative;
}

.section::before,
#cases::before,
#blog-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13,115,119,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(200,164,92,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above the decorative bg */
.section > .container,
#cases > .container,
#blog-preview > .container {
  position: relative;
  z-index: 1;
}
