/* ===== 00-reset.css ===== */
/* =====================================================
   AI CONSC — Design System v4 (Color Premium)
   Style: Aurora UI #10 + Liquid Glass #14 + Vibrant
   Font: Space Grotesk + DM Sans
   ===================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #07070d;
  --bg2: #0b0b18;
  --card: rgba(18,18,34,0.55);
  --card-border: rgba(255,255,255,0.06);
  --text: #f0f0f8;
  --text2: #a0a0b8;
  --text3: #6a6a88;
  --text-article: #d0cce4;
  --nav-bg: rgba(7,7,13,0.82);
  --nav-border: rgba(139,92,246,0.06);

  /* Multi-color palette */
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --emerald: #10b981;
  --accent: var(--purple);
  --accent-light: var(--purple-light);

  /* Sections color coding */
  --color-hero: var(--purple);
  --color-journey: var(--blue);
  --color-observe: var(--pink);
  --color-tools: var(--cyan);
  --color-about: var(--amber);

  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow: 0 2px 12px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.25);
  --glow-purple: 0 4px 24px rgba(139,92,246,0.12);
  --glow-blue: 0 4px 24px rgba(59,130,246,0.10);
  --glow-pink: 0 4px 24px rgba(236,72,153,0.10);
  --glow-cyan: 0 4px 24px rgba(6,182,212,0.10);

  --space-xs: 4px; --space-sm: 8px; --space-md: 14px;
  --space-lg: 20px; --space-xl: 28px; --space-2xl: 40px;
  --space-3xl: 56px; --space-4xl: 80px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --z-base: 1; --z-above: 10; --z-nav: 100;
}

body.light, :root.light {
  --bg: #f5f5fa;
  --bg2: #eeeef5;
  --card: rgba(255,255,255,0.6);
  --card-border: rgba(0,0,0,0.05);
  --text: #18182a;
  --text2: #5a5a7a;
  --text3: #8a8aaa;
  --text-article: #2a2a40;
  --nav-bg: rgba(245,245,250,0.88);
  --nav-border: rgba(139,92,246,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.06);
  --glow-purple: 0 4px 20px rgba(139,92,246,0.04);
  --glow-blue: 0 4px 20px rgba(59,130,246,0.04);
  --glow-pink: 0 4px 20px rgba(236,72,153,0.04);
  --glow-cyan: 0 4px 20px rgba(6,182,212,0.04);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 64px;
  -webkit-overflow-scrolling: touch;
}
.hero {
  margin-top: -64px;
}

/* ===== KEYFRAMES ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(6px) rotate(-1deg); }
}


/* ===== 01-nav.css ===== */

/* ====================================================
   NAV — Full-width top bar
   ==================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
  min-height: 64px;
  transition: background 0.4s ease;
}
body.light nav { /* kept for JS toggle, but vars already handle it */ }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  letter-spacing: 1px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 18px;
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(139,92,246,0.08);
}
.nav-links a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 10px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  color: var(--text3);
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.theme-toggle:hover {
  background: rgba(139,92,246,0.08);
  color: var(--purple-light);
}

/* ===== SCROLL-SPY NAV HIGHLIGHT ===== */
.nav-links a.active {
  color: #fff;
  background: rgba(139,92,246,0.12);
}
body.light .nav-links a.active {
  color: var(--purple);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .nav-inner {
    padding: 0 14px;
    height: 56px;
  }
  nav { min-height: 56px; }
  .nav-logo { font-size: 1rem; }
  .nav-links a {
    font-size: 0.82rem;
    padding: 6px 12px;
    min-height: 32px;
  }
}


/* ===== 02-hero.css ===== */

/* ====================================================
   HERO — Colorful Aurora + Company Name
   ==================================================== */
.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-md) var(--space-3xl);
}

/* Hero aurora background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(139,92,246,0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(59,130,246,0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 70%, rgba(236,72,153,0.05), transparent 70%),
    radial-gradient(ellipse 30% 25% at 80% 60%, rgba(6,182,212,0.04), transparent 70%);
  animation: auroraPulse 12s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes auroraPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Hero bottom glow line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--blue), var(--cyan), var(--pink), transparent);
  opacity: 0.3;
  z-index: var(--z-base);
}

.hero-content {
  position: relative;
  z-index: var(--z-above);
  animation: fadeUp 0.8s var(--ease);
}

/* Company name — colorful gradient */
.hero-company {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan), var(--pink));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2xl);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--text2);
}

.hero-slogan {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: var(--text3);
  letter-spacing: 2px;
}

.hero-author {
  font-size: 0.85rem;
  color: var(--text3);
  margin-top: 2px;
}

/* Colorful floating particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}
.hero-particle--1 {
  width: 30vmax; height: 30vmax;
  top: -8%; left: -5%;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent);
  animation: float 14s ease-in-out infinite;
}
.hero-particle--2 {
  width: 25vmax; height: 25vmax;
  bottom: -5%; right: -3%;
  background: radial-gradient(circle, rgba(59,130,246,0.10), transparent);
  animation: float 18s ease-in-out infinite 3s;
}
.hero-particle--3 {
  width: 18vmax; height: 18vmax;
  top: 35%; right: 20%;
  background: radial-gradient(circle, rgba(236,72,153,0.06), transparent);
  animation: float 12s ease-in-out infinite 6s;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text3);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.5s forwards;
  z-index: var(--z-above);
  cursor: pointer;
  user-select: none;
}
.scroll-indicator-arrow {
  font-size: 1.2rem;
  display: block;
  animation: bounce 2.5s ease-in-out 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(6px); opacity: 0.3; }
}


/* ===== 03-sections.css ===== */

/* ====================================================
   SECTIONS
   ==================================================== */
section {
  padding: var(--space-3xl) var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
  scroll-margin-top: 70px;
}

/* Section divider — subtle gradient transition */
.section-divider {
  max-width: 1000px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(139,92,246,0.04) 15%, 
    rgba(139,92,246,0.06) 50%, 
    rgba(139,92,246,0.04) 85%, 
    transparent 100%
  );
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  letter-spacing: -0.5px;
}
.section-title span { font-size: 1.2em; line-height: 1; }

/* Section-colored accent line under title */
.section-accent {
  display: block;
  width: 70px;
  height: 3px;
  border-radius: 2px;
  margin-top: 6px;
  margin-bottom: var(--space-xl);
}


/* ===== 04-timeline.css ===== */

/* ====================================================
   TIMELINE — Company History
   ==================================================== */
#history .section-accent { background: linear-gradient(90deg, var(--purple), var(--pink)); }

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--pink), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
  opacity: 1;
  transition: all 0.5s var(--ease);
}
.timeline-item.visible { transform: translateY(0); }

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: 2px solid var(--bg);
  z-index: var(--z-base);
  box-shadow: 0 0 8px rgba(139,92,246,0.2);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow);
}
.timeline-card:hover {
  box-shadow: var(--glow-purple);
  border-color: rgba(139,92,246,0.12);
  transform: translateX(3px);
}

.tl-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.tl-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text3); }

.tl-label {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(139,92,246,0.08);
  color: var(--purple-light);
  font-weight: 500;
  white-space: nowrap;
}

.tl-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.6; }

@media (max-width: 640px) {
  .timeline { padding-left: 20px; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -19px; width: 10px; height: 10px; top: 7px; }
  .timeline-card { padding: var(--space-md); }
}



/* ===== 08-utilities.css ===== */

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  color: var(--text3);
  font-size: 0.78rem;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
  nav { top: 8px; left: 8px; right: 8px; transform: none; border-radius: var(--radius); padding: 0; min-height: 40px; }
  .nav-inner { height: 40px; padding: 0 2px; gap: 0; }
  .nav-logo { font-size: 0.72rem; padding: 0 8px; flex-shrink: 0; }
  .nav-logo img { height: 32px !important; }
  .nav-links {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    gap: 2px;
    flex: 1;
    justify-content: flex-start;
    padding-right: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    font-size: 0.7rem;
    padding: 6px 8px;
    min-height: 32px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .theme-toggle {
    flex-shrink: 0;
    padding: 6px 8px;
    min-width: 36px;
    min-height: 36px;
  }

  section { padding: var(--space-2xl) var(--space-md); }
  .tools-grid { grid-template-columns: 1fr; }
  .about-content { flex-direction: column; text-align: center; padding: var(--space-lg); }
  .about-text p { max-width: 100%; }
  .about-tags { justify-content: center; }

  /* Timeline mobile responsive */
  .timeline { padding-left: 20px; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -19px; width: 10px; height: 10px; top: 7px; }
  .timeline-card { padding: var(--space-md); }
  .tl-header { gap: 4px; }
  .tl-title { font-size: 0.9rem; }
  .tl-desc { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hero-greeting { letter-spacing: -1px; }
  .hero-subtitle { letter-spacing: 6px; }
}

/* ====================================================
   FADE-IN UTILITY
   ==================================================== */
.fade-in {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Stats row ===== */
.stats-row {
  text-align: center;
  color: var(--text2);
  font-size: 0.85rem;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  letter-spacing: 1px;
}
.stats-row .stats-sep {
  color: var(--card-border);
  margin: 0 12px;
}


/* ===== 09-extra.css ===== */

/* ===== Multi-page header ===== */
.page-header {
  padding: var(--space-4xl) var(--space-md) var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
}
.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.page-header-sub {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ===== Capabilities cards ===== */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}
.cap-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow);
}
.cap-card.visible { opacity: 1; transform: translateY(0); }
.cap-card:hover {
  transform: translateY(-3px);
}
.cap-card--trading:hover {
  box-shadow: var(--glow-blue);
  border-color: rgba(59,130,246,0.12);
}
.cap-card--ai:hover {
  box-shadow: var(--glow-purple);
  border-color: rgba(139,92,246,0.12);
}
.cap-card--brand:hover {
  box-shadow: var(--glow-pink);
  border-color: rgba(236,72,153,0.12);
}
.cap-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.cap-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.cap-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* ===== CTA link ===== */
.cta-wrapper { text-align: center; margin-top: var(--space-2xl); }
.cta-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.cta-link:hover {
  background: rgba(139,92,246,0.08);
  box-shadow: 0 0 20px rgba(139,92,246,0.12);
  color: var(--accent-light);
  border-color: var(--accent-light);
}



/* ===== 05-articles.css ===== */
/* ====================================================
   ARTICLES — Artistic glass cards with rich typography
   ==================================================== */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .articles-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .article-card {
    max-width: 720px;
    width: 100%;
  }
}

/* ===== Card ===== */
.article-card {
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.3s var(--ease);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.article-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--pink), var(--purple));
  border-radius: 0 3px 3px 0;
}
.article-card.expanded {
  border-color: rgba(236,72,153,0.15);
  background: linear-gradient(135deg, var(--card), rgba(236,72,153,0.03));
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

/* Cover image banner */
.article-cover {
  width: calc(100% + var(--space-xl) * 2);
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.08));
}

/* ===== Card content ===== */
.article-card .article-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-card .article-reading-time {
  font-size: 0.65rem;
  color: var(--text3);
  background: rgba(255,255,255,0.03);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}
.article-card .article-title {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}
.article-card .article-desc {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ===== Detail area (collapsible) — display toggle, instant ===== */
.article-detail {
  display: none;
  background: rgba(236,72,153,0.012);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.92rem;
  color: var(--text-article);
  line-height: 1.9;
  letter-spacing: 0.01em;
  margin-top: 0;
}
.article-detail.open {
  display: block;
  margin-top: var(--space-md);
  padding: var(--space-xl);
  border-top: 1px solid var(--card-border);
}

/* ===== Rich typography within detail ===== */
.article-detail p {
  margin-bottom: var(--space-lg);
}
.article-detail strong {
  color: var(--accent);
  font-weight: 620;
}

/* Drop cap — first paragraph first letter */
.article-detail .first-para::first-letter {
  font-size: 2.8em;
  font-weight: 650;
  float: left;
  padding-right: 10px;
  padding-top: 2px;
  line-height: 0.85;
  color: var(--pink);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

/* ===== Article headings ===== */
.article-detail .article-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
  line-height: 1.4;
}
.article-detail h2.article-heading { font-size: 1.5rem; margin: 32px 0 16px; }
.article-detail h3.article-heading { font-size: 1.25rem; margin: 28px 0 14px; }
.article-detail h4.article-heading { font-size: 1.08rem; margin: 24px 0 12px; }
.article-detail h5.article-heading { font-size: 1rem; margin: 20px 0 10px; }

/* ===== Section divider ===== */
.article-detail hr.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--purple), transparent);
  margin: 28px 0;
  opacity: 0.4;
  border-radius: 2px;
}

/* ===== Article table ===== */
.article-detail .table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
}
.article-detail .article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.6;
}
.article-detail .article-table th {
  background: rgba(139,92,246,0.08);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text);
  border-bottom: 1px solid var(--card-border);
}
.article-detail .article-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text2);
}
.article-detail .article-table tr:last-child td {
  border-bottom: none;
}

/* ===== Numbered list ===== */
.article-detail .numbered-section {
  margin: 12px 0;
}
.article-detail .numbered-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  line-height: 1.7;
  align-items: flex-start;
}
.article-detail .num-marker {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--pink);
  font-size: 0.85rem;
  min-width: 28px;
  flex-shrink: 0;
}
.article-detail .num-text {
  color: var(--text2);
  font-size: 0.9rem;
}

/* ===== Stat highlight ===== */
.article-detail .stat-highlight {
  color: var(--pink);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ===== Pull quote ===== */
.article-detail .pull-quote {
  font-size: 1.05rem;
  font-weight: 450;
  text-align: center;
  padding: var(--space-lg) var(--space-lg);
  margin: var(--space-lg) 0;
  border-top: 1px solid rgba(236,72,153,0.10);
  border-bottom: 1px solid rgba(236,72,153,0.10);
  color: var(--cyan-light);
  font-style: italic;
  line-height: 1.75;
  letter-spacing: 0.02em;
  position: relative;
}
.pull-quote::before {
  content: '"';
  font-size: 2.5rem;
  color: rgba(236,72,153,0.15);
  position: absolute;
  top: -8px;
  left: 4px;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== Stat highlight (numbers, $, %) ===== */
.article-detail .stat-highlight {
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(6,182,212,0.08));
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--cyan-light);
  white-space: nowrap;
  border: 1px solid rgba(6,182,212,0.08);
}

/* ===== Conclusion box ===== */
.article-detail .conclusion {
  display: block;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(236,72,153,0.04), rgba(139,92,246,0.03));
  border-left: 3px solid var(--pink);
  border-radius: var(--radius-sm);
  font-weight: 500;
  line-height: 1.8;
  font-size: 0.88rem;
}
.article-detail .conclusion::before {
  content: '💡 ';
}
.article-detail .conclusion strong {
  color: var(--pink-light);
}

/* ===== Bullet section ===== */
.article-detail .bullet-section {
  background: rgba(139,92,246,0.02);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0 var(--space-lg);
  border: 1px solid rgba(139,92,246,0.06);
}
.article-detail .bullet-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: flex-start;
}
.article-detail .bullet-item:last-child {
  margin-bottom: 0;
}
.article-detail .bullet-marker {
  color: var(--purple-light);
  flex-shrink: 0;
  font-weight: 600;
  line-height: 1.9;
  font-size: 0.6rem;
}
.article-detail .bullet-text {
  flex: 1;
}

/* ===== Toggle button ===== */
.article-toggle {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 10px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.article-card:hover .article-toggle {
  opacity: 1;
}

/* ===== Fade-in animation ===== */
.article-card.fade-in {
  animation: fadeInUp 0.55s var(--ease) forwards;
  opacity: 0;
}

@media (max-width: 640px) {
  .article-card {
    padding: var(--space-lg) var(--space-md);
  }
  .article-cover {
    width: calc(100% + var(--space-lg) + var(--space-md));
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) var(--space-md);
    height: 120px;
  }
  .article-card .article-title {
    font-size: 0.95rem;
  }
  .article-card .article-desc {
    font-size: 0.78rem;
  }
  .article-detail.open {
    padding: var(--space-md);
  }
}

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


/* ===== 06-tools.css ===== */

/* ====================================================
   TOOLS — Glass cards with cyan accent
   ==================================================== */
#tools .section-accent { background: linear-gradient(90deg, var(--cyan), var(--emerald)); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.tool-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  box-shadow: var(--shadow);
}
.tool-card.visible { opacity: 1; transform: translateY(0); }
.tool-card:hover {
  box-shadow: var(--glow-cyan);
  border-color: rgba(6,182,212,0.10);
  transform: translateY(-2px);
}

.tool-category {
  font-size: 0.68rem;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.tool-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  min-height: 38px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.15s var(--ease);
}
.tool-link:last-child { border-bottom: none; }
.tool-link:hover { color: var(--cyan-light); padding-left: 3px; }
.tool-name { font-size: 0.85rem; font-weight: 500; }
.tool-desc { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }
.tool-arrow {
  font-size: 0.8rem; color: var(--text3); flex-shrink: 0;
  margin-left: var(--space-sm); transition: transform 0.15s var(--ease);
}
.tool-link:hover .tool-arrow { color: var(--cyan-light); transform: translateX(3px); }


/* ===== 07-about.css ===== */
/* ====================================================
   ABOUT — Modular timeline profile
   ==================================================== */

/* ===== Profile Banner ===== */
.about-banner {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 4px 32px rgba(245,158,11,0.04);
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  transition: box-shadow 0.3s var(--ease);
}
.about-banner:hover {
  box-shadow: 0 4px 32px rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.08);
}
.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 600; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(139,92,246,0.15);
}
.about-banner-text h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1px;
  line-height: 1.2;
}
.about-banner-text .role {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.about-banner-text .bio {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 480px;
  font-weight: 350;
}

/* ===== Section Header ===== */
.about-section-hdr {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.about-section-hdr span:first-child {
  opacity: 0.9;
}
.about-section-hdr .accent-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,158,11,0.2), transparent);
}

/* ===== Timeline ===== */
.about-timeline {
  margin-bottom: var(--space-2xl);
}
.about-tl-track {
  position: relative;
  padding-left: 28px;
}
/* Vertical line */
.about-tl-track::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(139,92,246,0.25),
    rgba(59,130,246,0.15),
    rgba(6,182,212,0.10),
    rgba(245,158,11,0.05),
    transparent
  );
  border-radius: 1px;
}

/* ===== Timeline Node ===== */
.about-tl-node {
  position: relative;
  margin-bottom: var(--space-xl);
}
.about-tl-node:last-child { margin-bottom: 0; }

.about-tl-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: var(--bg);
  z-index: 1;
  transition: all 0.3s var(--ease);
}
.about-tl-node:hover .about-tl-dot {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(245,158,11,0.25);
}

.about-tl-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about-tl-card:hover {
  box-shadow: 0 4px 24px rgba(139,92,246,0.04);
  border-color: rgba(255,255,255,0.04);
}

.about-tl-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  opacity: 0.85;
}
.about-tl-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  letter-spacing: -0.2px;
}
.about-tl-title .tl-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(245,158,11,0.06);
  color: var(--text3);
  font-weight: 400;
  letter-spacing: 0.2px;
}
.about-tl-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  font-weight: 350;
}

/* Tags in timeline */
.about-tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}
.about-tl-tag {
  font-size: 0.62rem;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(245,158,11,0.04);
  color: var(--text3);
  letter-spacing: 0.2px;
}

/* ===== Project Modules ===== */
.about-cap-modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.about-cap-mod {
  display: flex;
  gap: 0;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about-cap-mod:hover {
  box-shadow: 0 4px 24px rgba(139,92,246,0.04);
  border-color: rgba(255,255,255,0.04);
}

.about-cap-mod-side {
  width: 60px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--cap-accent), transparent 180%);
  flex-shrink: 0;
}
.about-cap-mod-icon {
  font-size: 1.3rem;
  opacity: 0.9;
}

.about-cap-mod-body {
  flex: 1;
  padding: var(--space-lg) var(--space-xl);
}

.about-cap-mod-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cap-accent);
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

.about-cap-mod-desc {
  font-size: 0.73rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
  max-width: 520px;
  font-weight: 350;
}

.about-cap-mod-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-sm);
}

.about-cap-mod-primary {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.about-cap-mod-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text3);
  margin-left: 4px;
  letter-spacing: 0.2px;
}

.about-cap-mod-sub {
  font-size: 0.72rem;
  color: var(--text3);
  line-height: 1.5;
  font-weight: 350;
}

/* ===== Contact ===== */
.about-contact-wrap {
  margin-bottom: var(--space-2xl);
}

.about-contact-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  display: block;
}

/* ===== Skills ===== */
.about-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.about-skill {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 5px 16px;
  border-radius: 9999px;
  background: rgba(245,158,11,0.04);
  border: 1px solid rgba(245,158,11,0.07);
  color: var(--text);
  letter-spacing: 0.3px;
  transition: all 0.25s var(--ease);
}
.about-skill:hover {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.12);
  transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .about-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
  .about-banner-text h1 {
    font-size: 1.4rem;
  }
  .about-banner-text .bio { max-width: 100%; }
  .about-tl-track { padding-left: 20px; }
  .about-tl-dot { left: -16px; width: 10px; height: 10px; }
  .about-cap-modules {
    gap: var(--space-sm);
  }
  .about-cap-mod-side {
    width: 44px;
  }
  .about-cap-mod-body {
    padding: var(--space-md);
  }
  .about-cap-mod-row {
    gap: var(--space-md);
  }
  .about-cap-mod-primary {
    font-size: 1.15rem;
  }
}



.article-expand {
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ai-expand-section {
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(59,130,246,0.03));
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.ai-expand-header {
  font-size: 1rem; font-weight: 700;
  color: #8b5cf6; margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(139,92,246,0.1);
}
.ai-expand-content { font-size: 0.9rem; line-height: 1.8; color: var(--text-article); }
.ai-expand-content p { margin-bottom: 0.8em; }
.article-expand-detail { font-size: 0.9rem; line-height: 1.8; color: var(--text-article); }
.article-expand-detail p { margin-bottom: 0.8em; }
.article-expand-detail strong { color: var(--accent); font-weight: 620; }

/* ===== MOBILE FIX: disable backdrop-filter (Safari scroll GPU glitch) ===== */
@media (max-width: 768px) {
  nav,
  .article-card,
  .tool-card,
  .cap-card,
  .about-card,
  .about-tl-card,
  .about-cap-mod,
  input#articleSearch,
  #articleSearch,
  [style*="backdrop-filter"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* Force GPU compositing on cards for smooth scroll */
  .article-card,
  .tool-card,
  .cap-card,
  .about-card,
  .about-tl-card,
  .about-cap-mod {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
