/* ===== Reset & Variables ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07070c;
  --bg-elev: #0c0c14;
  --bg-card: #0f1018;
  --bg-noise-opacity: 0.6;
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-3: rgba(255, 255, 255, 0.2);
  --text: #ededf2;
  --text-soft: #a3a3b2;
  --text-mute: #6b6b7c;
  --text-dim: #4b4b58;
  --accent-2: #60a5fa;
  --card-name: #ffffff;
  --card-cover-from: rgba(7,7,12,0.95);
  --card-cover-to: rgba(7,7,12,0);
  --gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(167,139,250,0.15), rgba(244,114,182,0.15));
  --shadow-lg: 0 32px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
  --shadow-color: 0, 0, 0;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --space-section: 56px;
  --space-category: 48px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-noise-opacity: 0.4;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.14);
  --border-3: rgba(0, 0, 0, 0.22);
  --text: #18181b;
  --text-soft: #52525b;
  --text-mute: #71717a;
  --text-dim: #a1a1aa;
  --card-name: #ffffff;
  --card-cover-from: rgba(7,7,12,0.9);
  --card-cover-to: rgba(7,7,12,0);
  --shadow-lg: 0 32px 80px -20px rgba(20, 20, 30, 0.18);
  --shadow-md: 0 12px 30px -8px rgba(20, 20, 30, 0.12);
  --shadow-color: 20, 20, 30;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

/* ===== Background ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.bg-mesh::before,
.bg-mesh::after,
.bg-mesh-orb {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-mesh::before {
  width: 700px; height: 700px;
  top: -200px; left: 20%;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation: float1 20s ease-in-out infinite;
}

.bg-mesh::after {
  width: 600px; height: 600px;
  top: 200px; right: 10%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation: float2 25s ease-in-out infinite;
}

.bg-mesh-orb {
  width: 500px; height: 500px;
  bottom: -100px; left: 5%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  opacity: 0.4;
  animation: float3 30s ease-in-out infinite;
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -80px); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: var(--bg-noise-opacity);
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 100px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, -80px); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--gradient);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.header-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}

.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gradient);
  color: #fff;
}
.lang-divider { color: var(--text-dim); font-size: 11px; }

/* ===== Theme toggle ===== */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 4px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.4s var(--ease);
}

.theme-toggle:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(20deg) scale(1.05);
}

.theme-toggle svg {
  width: 16px; height: 16px;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== Hero ===== */
.hero {
  padding: 60px 0 36px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 auto 20px;
  max-width: 920px;
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 60%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ===== Hero Stats ===== */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  margin-top: 12px;
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-feature-settings: 'tnum';
  animation: countUp 0.6s var(--ease) backwards;
}

.hero-stat:nth-of-type(2) .hero-stat-num { animation-delay: 0.05s; }
.hero-stat:nth-of-type(3) .hero-stat-num { animation-delay: 0.15s; }

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 22px;
  background: var(--border-2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-3);
}

.btn-arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ===== Category Section ===== */
.category {
  padding: var(--space-category) 0;
  scroll-margin-top: 80px;
}

.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cat-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cat-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ===== Grid (unified products) ===== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-products { grid-template-columns: 1fr; }  /* 4 items, 1 per row (long horizontal cards) */
/* ===== Project Card ===== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: grid;
  grid-template-columns: 360px 1fr;
  cursor: default;
  align-items: stretch;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, transparent) 0%, transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card.archived {
  opacity: 0.7;
}
.card.archived:hover { opacity: 1; }

/* Card Cover */
.card-cover {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  background: #0a0a12;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-cover img {
  transform: scale(1.04);
}

.card-cover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 18px;
  background: linear-gradient(0deg, rgba(7,7,12,0.95) 0%, rgba(7,7,12,0.6) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent, var(--accent-2));
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.card-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.card-status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

.card-status-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.card-status-dot.stable::before { background: #60a5fa; }
.card-status-dot.sunset::before { background: #71717a; }
.card-status-dot.sunset { color: var(--text-mute); }

.card-private {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: #fb923c;
  letter-spacing: 1px;
}

/* Card Body */
.card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-tagline {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
}

.card-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
  white-space: nowrap;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-features li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--accent-2));
}

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.card-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  font-family: var(--font);
}

.card-link.primary {
  background: var(--accent, var(--accent-2));
  color: #fff;
  color: #07070c;
  font-weight: 700;
}

.card-link.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px var(--accent, var(--accent-2));
}

.card-link.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.card-link.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-3);
}

.card-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  color: var(--text-mute);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .header-inner { grid-template-columns: auto auto; gap: 16px; }
  .header-nav { display: none; }
  .hero { padding: 64px 0 48px; }
  .about, .thinking { padding: 56px 0; }
  .category { padding: 48px 0; }
  .footer { padding: 64px 0 40px; margin-top: 48px; }
  .hero-stats { padding: 12px 20px; gap: 16px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 20px; }
  .card { grid-template-columns: 1fr; }
  .card-cover { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .hero { padding: 56px 0 40px; }
  .about, .thinking { padding: 48px 0; }
  .category { padding: 40px 0; }
  .footer { padding: 56px 0 32px; }
  .cat-title { font-size: 20px; }
  .card-body { padding: 20px; }
  .card-name { font-size: 22px; }
  .footer-title { font-size: 32px; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero > * {
  animation: fadeUp 0.8s var(--ease) backwards;
}
.hero-badge { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.55s; }

/* ===== Footer (CTA section) ===== */
.footer {
  padding: 100px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.footer-cta-card {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, rgba(167,139,250,0.08) 50%, rgba(244,114,182,0.08) 100%);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(96,165,250,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.footer-cta-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.footer-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in srgb, var(--text) 60%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  position: relative;
}

.footer-desc {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-size: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.footer-btn.primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.footer-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.55);
}

.footer-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.footer-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-3);
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.footer-meta a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--text);
}

.footer-meta span { color: var(--text-dim); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .footer-cta-card { padding: 32px 24px; }
}

/* ===== Arrow on buttons (for ↗ external arrow) ===== */
.btn-arrow-out {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow-out {
  transform: translate(2px, -2px);
}

/* ===== About / Thinking ===== */
.about, .thinking {
  padding: 40px 0;
  scroll-margin-top: 80px;
}

/* Tighter about: short content, no need for huge bottom space */
.about { padding-bottom: 40px; }
.thinking { padding-top: 40px; }

/* About section — 2 col layout with profile card */
.about-body {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.about-card {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(167,139,250,0.08));
  border: 1px solid var(--border-2);
  border-radius: 18px;
  gap: 4px;
}

.about-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.45);
  margin-bottom: 4px;
}

.about-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.about-role {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 4px;
}

.about-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.about-cta:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.about-cta-arrow {
  transition: transform 0.25s var(--ease);
}

.about-cta:hover .about-cta-arrow {
  transform: translateX(3px);
}

.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 14px;
  letter-spacing: 0;
}

.about-content p:last-of-type {
  margin-bottom: 14px;
}

.about-content p strong {
  color: var(--text);
  font-weight: 600;
}

.about-focus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.about-focus:empty {
  display: none;
}

.about-focus-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.about-focus-pill:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

@media (max-width: 968px) {
  .grid-products { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-card { position: static; padding: 28px 24px; }
}

/* ===== About stats (year/projects/languages) ===== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-num {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-feature-settings: 'tnum';
}

.about-stat-label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== About career arc ===== */
.about-career {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  width: 100%;
}

.about-career-label {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.about-career-step {
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.about-career-arrow {
  margin: 0 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Back to top button ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 99;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* Thinking subtitle (legacy, kept for HTML fallback) */
.thinking-subtitle {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.6;
  margin: -8px 0 24px;
}

/* Thinking items as compact rows (no cards) */
.think-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.think-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
  border-radius: 8px;
}

.think-row:last-child {
  border-bottom: none;
}

.think-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.think-row-left {
  min-width: 0;
}

.think-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.think-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.think-dot.stance-disagree { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
.think-dot.stance-add      { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.think-dot.stance-agree    { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.think-dot.stance-doc      { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.5); }

.think-tag-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  border: 1px solid var(--border-2);
  white-space: nowrap;
}

.think-row-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.think-row-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s, color 0.2s;
}

.think-row-title a:hover {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

.think-row-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.think-row-body strong {
  color: var(--text);
  font-weight: 600;
}

.think-row-right {
  display: flex;
  align-items: center;
}

.think-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-2);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.think-source:hover {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

@media (max-width: 768px) {
  .think-row { grid-template-columns: auto 1fr; gap: 12px; padding: 18px 12px; margin: 0 -12px; }
  .think-row-right { grid-column: 1 / -1; padding-top: 4px; }
}

/* ===== Responsive for new sections ===== */
@media (max-width: 968px) {
  .think-grid { grid-template-columns: 1fr; }
  .think-card { padding: 24px; }
}

@media (max-width: 540px) {
  .thinking-subtitle { margin-top: -8px; margin-bottom: 24px; }
}

/* ===== Thinking stance + source (added 2026-07-03) ===== */
.think-card[data-stance="disagree"]::before,
.think-card[data-stance="add"]::before,
.think-card[data-stance="agree"]::before {
  content: "";
  position: absolute;
  left: 1px; top: 1px; bottom: 1px;
  width: 4px;
  border-radius: 3px 0 0 3px;
}
.think-card[data-stance="disagree"]::before { background: #f87171; }
.think-card[data-stance="add"]::before      { background: #fbbf24; }
.think-card[data-stance="agree"]::before    { background: #4ade80; }

.think-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.think-stance {
  font-size: .68rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
}
.stance-disagree { background: rgba(239, 68, 68, .14);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.stance-add      { background: rgba(234, 179, 8, .14);  color: #fbbf24; border: 1px solid rgba(234,179,8,.3); }
.stance-agree    { background: rgba(34, 197, 94, .14);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }

.think-foot {
  margin-top: .9rem;
  display: flex;
  justify-content: flex-end;
}
.think-source {
  font-size: .78rem;
  color: var(--text-mute, #9ca3af);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: color .15s;
}
.think-source:hover { color: var(--accent, #60a5fa); }

/* ===== Footer copyright + visits in one line ===== */
.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.footer-copy #footer-visits:empty { display: none; }

/* ===== Thinking: Feishu docs as featured cards ===== */
.think-docs {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.think-docs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.think-docs-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.think-docs-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.think-docs-invite {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  letter-spacing: 0.01em;
}

.think-docs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}

.think-doc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(96,165,250,0.06) 0%, rgba(167,139,250,0.06) 100%);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.think-doc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96,165,250,0.4), rgba(167,139,250,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.think-doc-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-3);
  box-shadow: 0 16px 40px -16px rgba(96, 165, 250, 0.3);
}

.think-doc-item:hover::before {
  opacity: 1;
}

.think-doc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.think-doc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  white-space: nowrap;
  line-height: 1.4;
}

.think-doc-arrow {
  font-size: 14px;
  color: var(--text-soft);
  margin-left: auto;
  transition: color 0.2s, transform 0.2s;
}

.think-doc-item:hover .think-doc-arrow {
  color: #60a5fa;
  transform: translate(3px, -3px);
}

.think-doc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.think-doc-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 540px) {
  .think-docs-list { grid-template-columns: 1fr; }
  .think-doc-item { padding: 18px 20px; }
  .think-doc-title { font-size: 16px; }
  .think-doc-arrow { margin-left: 0; }
}
