/* =======================================
   AI 造物志 — Warm Educational Design System
   暖白 · 琥珀 · 青绿 · 圆角 · 柔和阴影
   ======================================= */

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

/* ---------- Light Theme (default, warm) ---------- */
:root {
  --bg-primary:   #FAF6F0;   /* 暖白底 */
  --bg-secondary: #F4EEE4;   /* 次级面 */
  --bg-card:      #FFFFFF;   /* 卡片白 */
  --text-primary:   #2B2620; /* 暖近黑 */
  --text-secondary: #6F665B; /* 次文字 */
  --text-tertiary:  #A89F92; /* 弱文字 */
  --border:        #ECE4D8;  /* 暖色边框 */
  --border-strong: #DCD2C2;
  --accent:      #E07A3C;    /* 主色 琥珀 */
  --accent-hover:#CC6A2E;
  --accent-soft: rgba(224,122,60,0.12);
  --accent-glow: rgba(224,122,60,0.28);
  --teal:      #2C8F87;      /* 辅色 青绿 */
  --teal-soft: rgba(44,143,135,0.10);
  --teal-glow: rgba(44,143,135,0.24);
  --shadow-sm: 0 1px 3px rgba(180,140,80,0.08);
  --shadow-md: 0 8px 24px rgba(180,140,80,0.10);
  --shadow-lg: 0 18px 48px rgba(180,140,80,0.14);
  --radius:    16px;
  --radius-sm: 10px;
  --nav-bg: rgba(250,246,240,0.78);
  --code-bg: #2B2620;
  --code-text: #F4EEE4;
}

/* ---------- Dark Theme (warm coffee) ---------- */
[data-theme="dark"] {
  --bg-primary:   #1E1A16;
  --bg-secondary: #26211C;
  --bg-card:      #2C2722;
  --text-primary:   #F2EBE0;
  --text-secondary: #B5AB9C;
  --text-tertiary:  #7C7264;
  --border:        #3A332C;
  --border-strong: #4A4138;
  --accent:      #F0915A;
  --accent-hover:#F6A370;
  --accent-soft: rgba(240,145,90,0.16);
  --accent-glow: rgba(240,145,90,0.30);
  --teal:      #4FB3AA;
  --teal-soft: rgba(79,179,170,0.14);
  --teal-glow: rgba(79,179,170,0.26);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.34);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.42);
  --nav-bg: rgba(30,26,22,0.78);
  --code-bg: #16120F;
  --code-text: #F4EEE4;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Scroll Progress ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 999; box-shadow: 0 0 10px var(--accent-glow);
  transition: width .1s linear;
}

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 20px; letter-spacing: 0.01em;
  color: var(--text-primary);
}
.nav-logo .logo-mark { width: 46px; height: 46px; flex-shrink: 0; }
.nav-logo .logo-sub { font-size: 11px; font-weight: 500; color: var(--text-tertiary); margin-left: 2px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-tagline { font-size: 12px; font-weight: 400; color: var(--text-tertiary); letter-spacing: 0.02em; white-space: nowrap; }

.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:root:not([data-theme]) .icon-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 26px var(--accent-glow); }

.btn-ghost { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px var(--teal-glow); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--teal-glow); filter: brightness(1.06); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
section { padding: 88px 0; position: relative; }

/* Tag / eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; letter-spacing: 0.03em; margin-bottom: 20px;
}
.eyebrow.teal { color: var(--teal); background: var(--teal-soft); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Section Headers ---------- */
.sec-head { margin-bottom: 52px; max-width: 760px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 16px;
}
.sec-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Hero (index) ---------- */
.hero {
  padding: 150px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.hero-blob.b1 { width: 380px; height: 380px; background: var(--accent-glow); top: -60px; left: -80px; }
.hero-blob.b2 { width: 320px; height: 320px; background: var(--teal-glow); bottom: -60px; right: -60px; opacity: .4; }
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 26px; max-width: 820px; margin-left: auto; margin-right: auto;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary); max-width: 640px;
  margin: 0 auto 40px; line-height: 1.8;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-strip {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 56px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--text-secondary);
  box-shadow: var(--shadow-sm); font-weight: 500;
}
.hero-pill svg { width: 15px; height: 15px; color: var(--accent); }
.hero-pill.t svg { color: var(--teal); }

/* ---------- Narrative (Section 1) ---------- */
.narrative {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.narrative .lead {
  font-size: 22px; font-weight: 600; line-height: 1.55; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.narrative .lead .hl { color: var(--accent); }
.narrative p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: all .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.stat-card .num {
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .label { font-size: 13px; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }

/* ---------- Vibe Coding cards (Section 2) ---------- */
.vibe-lead { max-width: 720px; font-size: 17px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: all .25s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-card.teal .feature-icon { background: var(--teal-soft); color: var(--teal); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* QA card style for "为什么选择 ClassNode" */
.qa-card .feature-icon { margin-bottom: 16px; }
.qa-content { display: flex; flex-direction: column; gap: 8px; }
.qa-q { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.qa-a { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

.feature-num {
  position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 700;
  color: var(--text-tertiary); font-variant-numeric: tabular-nums;
}

/* ---------- Works (Section 3) ---------- */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s; position: relative;
}
.work-card.linked { cursor: pointer; }
.work-card.linked:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.work-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-secondary);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card.linked:hover .work-thumb img { transform: scale(1.04); }
.work-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(43,38,32,0.78); color: #fff; backdrop-filter: blur(6px);
}
.work-badge.live { background: var(--teal); }
.work-badge.soon { background: rgba(43,38,32,0.82); }
.work-badge .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: middle; }
.work-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.work-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.work-zh { font-size: 14px; color: var(--text-tertiary); margin-bottom: 14px; }
.work-card.linked .work-name { color: var(--text-primary); transition: color .25s; }
.work-card.linked:hover .work-name { color: var(--accent); }
.work-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; flex: 1; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.work-tag {
  font-size: 12px; color: var(--text-secondary); background: var(--bg-secondary);
  padding: 4px 11px; border-radius: 6px; font-weight: 500;
}
.work-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.work-foot .go { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.work-card.linked:hover .work-foot .go { gap: 10px; }
.work-foot .meta { font-size: 12px; color: var(--text-tertiary); }

/* ---------- About (Section 4) ---------- */
.about-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-portrait {
  background: linear-gradient(140deg, var(--accent-soft), var(--teal-soft));
  border: 1px solid var(--border); border-radius: 24px; padding: 40px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -0.02em;
}
.about-portrait .who { font-size: 20px; font-weight: 700; }
.about-portrait .role { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.about-portrait .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.about-portrait .chip {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); font-weight: 500;
}
.about-text .lead {
  font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 20px;
}
.about-text .lead .hl { color: var(--accent); }
.about-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* About article (new long-form about section) */
.about-article p { font-size: 16px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 20px; }
.about-article p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.footer-brand .logo-mark { width: 24px; height: 24px; }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.footer-links a { color: var(--text-secondary); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Fade-in Animation ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================================================
   CLASSNODE DETAIL PAGE
   =========================================================== */
.project-hero { padding: 150px 0 70px; text-align: center; position: relative; overflow: hidden; }
.project-hero .hero-blob.b1 { left: 10%; top: -40px; }
.project-hero .hero-blob.b2 { right: 5%; bottom: -80px; }
.project-title {
  font-size: clamp(40px, 7vw, 72px); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 16px;
}
.project-title .grad { background: linear-gradient(120deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.project-subtitle {
  font-size: 18px; color: var(--text-secondary); max-width: 640px;
  margin: 0 auto 36px; line-height: 2.0;
}
.project-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Showcase (tabs + slides) */
.showcase-tabs {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap;
}
.showcase-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.showcase-tab svg { width: 16px; height: 16px; }
.showcase-tab:hover { color: var(--accent); border-color: var(--accent); }
.showcase-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px var(--accent-glow); }
.showcase-tab.active svg { color: #fff; }

.showcase-stage {
  position: relative; max-width: 1040px; margin: 0 auto;
  min-height: 380px;
}
.showcase-slide { display: none; align-items: center; gap: 36px; }
.showcase-slide.active { display: flex; }
.showcase-slide.slide-in-right .showcase-mockup { animation: slideR .5s ease; }
.showcase-slide.slide-in-right .showcase-info { animation: fadeUp .5s ease .08s both; }
.showcase-slide.slide-in-left .showcase-mockup { animation: slideL .5s ease; }
.showcase-slide.slide-in-left .showcase-info { animation: fadeUp .5s ease .08s both; }
@keyframes slideR { 0%{opacity:0;transform:translateX(36px) scale(.97);} 100%{opacity:1;transform:none;} }
@keyframes slideL { 0%{opacity:0;transform:translateX(-36px) scale(.97);} 100%{opacity:1;transform:none;} }
@keyframes fadeUp { 0%{opacity:0;transform:translateY(14px);} 100%{opacity:1;transform:none;} }

.showcase-mockup {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg-card); box-shadow: var(--shadow-md);
}
.showcase-mockup-bar {
  display: flex; gap: 6px; padding: 11px 14px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.showcase-mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.showcase-mockup-bar span:nth-child(1) { background: #F0625A; }
.showcase-mockup-bar span:nth-child(2) { background: #F0B548; }
.showcase-mockup-bar span:nth-child(3) { background: #5DBF6B; }
.showcase-mockup img { width: 100%; display: block; }

.showcase-info { width: 300px; flex-shrink: 0; }
.showcase-info-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.showcase-info-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.showcase-info-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.showcase-info-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-primary); line-height: 1.5;
}
.showcase-info-list li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); margin-top: 1px; }

.showcase-nav { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.showcase-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--border-strong); padding: 0; transition: all .3s;
}
.showcase-dot.active { width: 30px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.showcase-dot:not(.active):hover { background: var(--text-tertiary); }

/* Scenarios */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scenario-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: all .25s; box-shadow: var(--shadow-sm);
}
.scenario-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.scenario-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.scenario-item:nth-child(even) .scenario-icon { background: var(--teal-soft); color: var(--teal); }
.scenario-icon svg { width: 24px; height: 24px; }
.scenario-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.scenario-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* Steps (三步上手) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; transition: all .25s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: -16px; left: 26px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.step-card h4 { font-size: 18px; font-weight: 700; margin-top: 14px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Download ---------- */
.download-title {
  font-size: 14px; color: var(--text-tertiary); font-weight: 600;
  margin-bottom: 22px; letter-spacing: 0.04em; text-transform: uppercase;
}
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius);
  transition: all .25s; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.dl-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dl-card-icon { margin-bottom: 14px; }
.dl-card-icon img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.dl-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.dl-desc { font-size: 12px; color: var(--text-tertiary); margin-bottom: 14px; }
.dl-code { font-size: 12px; color: var(--teal); margin-bottom: 16px; font-weight: 600; font-family: ui-monospace, "SF Mono", monospace; }
.dl-btn {
  display: block; text-align: center; padding: 9px; border: 1px solid var(--border-strong);
  border-radius: 8px; font-size: 13px; font-weight: 600; transition: all .2s; margin-top: auto;
}
.dl-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.repo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 auto; }
.repo-link {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border); padding: 20px 24px; border-radius: var(--radius);
  transition: all .25s; box-shadow: var(--shadow-sm);
}
.repo-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.repo-link .r-head { display: flex; align-items: center; gap: 12px; }
.repo-link .r-logo { width: 32px; height: 32px; object-fit: contain; }
.repo-link h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.repo-link p { font-size: 12px; color: var(--text-tertiary); }
.repo-arrow { color: var(--text-tertiary); transition: transform .25s, color .25s; font-size: 18px; }
.repo-link:hover .repo-arrow { transform: translateX(4px); color: var(--accent); }

/* ===========================================================
   DEPLOY GUIDE PAGE
   =========================================================== */
.guide-hero { padding: 150px 0 60px; text-align: center; position: relative; overflow: hidden; }
.guide-hero .hero-blob.b1 { left: 5%; top: -60px; }
.guide-hero .hero-blob.b2 { right: 0; bottom: -80px; }
.guide-title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.guide-title .grad { background: linear-gradient(120deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.guide-sub { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.8; }

.guide-jump { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.guide-section { padding: 64px 0; position: relative; z-index: 2; }
.guide-section.alt { background: var(--bg-secondary); }
.guide-container { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.guide-header { margin-bottom: 40px; }

.guide-h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.guide-h2 .num-chip {
  font-size: 14px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff;
}
.guide-text { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 18px; }
.guide-text strong { color: var(--text-primary); font-weight: 700; }
.guide-text a, .guide-note a, .guide-info a { color: var(--accent); font-weight: 600; }
.guide-text a:hover, .guide-note a:hover { text-decoration: underline; }

.guide-note, .guide-info {
  padding: 16px 20px; background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 22px;
}
.guide-note.warn { background: rgba(240,98,90,0.10); border-left-color: #F0625A; }
.guide-note strong, .guide-info strong { color: var(--text-primary); }
.guide-info.teal { background: var(--teal-soft); border-left-color: var(--teal); }

.guide-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin-bottom: 22px; box-shadow: var(--shadow-sm); transition: border-color .25s;
}
.guide-card:hover { border-color: var(--border-strong); }
.guide-h3 {
  font-size: 19px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.guide-h3-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.guide-h3-icon svg { width: 17px; height: 17px; }

.platform-table-wrap { overflow-x: auto; margin-bottom: 22px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.platform-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.platform-table thead th {
  text-align: left; padding: 13px 16px; font-weight: 700; color: var(--text-primary);
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.platform-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.platform-table tbody tr:last-child td { border-bottom: none; }
.platform-table tbody td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
code, .mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 13px; padding: 2px 7px; border-radius: 5px;
  background: var(--bg-secondary); color: var(--accent); border: 1px solid var(--border);
  word-break: break-all;
}
.guide-card code { background: var(--bg-secondary); }

.guide-code-block {
  margin-bottom: 22px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--code-bg); box-shadow: var(--shadow-sm);
}
.guide-code-label {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: rgba(244,238,228,.45);
  user-select: none; font-family: ui-monospace, monospace;
}
.guide-code-label::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(244,238,228,.18); flex-shrink: 0;
}
.guide-code-block pre {
  padding: 20px; margin: 0; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 13px; line-height: 1.85; tab-size: 2; color: var(--code-text);
}
.guide-code-block pre code { background: none; padding: 0; border: none; color: inherit; font-size: inherit; word-break: normal; }

.guide-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.guide-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.guide-list li::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-top: 9px;
}
.guide-list li strong { color: var(--text-primary); }

.guide-next {
  padding: 18px 24px; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius);
  font-size: 15px; color: var(--text-secondary); line-height: 1.7; text-align: center;
}
.guide-next strong { color: var(--teal); }
.guide-next a { color: var(--teal); font-weight: 700; }
.guide-next a:hover { text-decoration: underline; }

/* Prism theme tweaks to fit warm code blocks */
pre[class*="language-"] { background: transparent !important; margin: 0; }

/* ---------- Error 404 ---------- */
.error-section {
  padding: 180px 24px 120px; text-align: center; position: relative; z-index: 2;
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
}
.error-code {
  font-size: clamp(90px, 16vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px; animation: errFloat 3s ease-in-out infinite;
}
@keyframes errFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
.error-subtitle { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.error-desc { font-size: 16px; color: var(--text-secondary); max-width: 460px; margin: 0 auto 36px; line-height: 1.8; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-menu { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 60px; }
  .narrative { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .repo-grid { grid-template-columns: 1fr; max-width: 100%; }
  .showcase-slide.active { flex-direction: column; gap: 24px; }
  .showcase-info { width: 100%; }
  .guide-container { padding: 0 20px; }
  .guide-section { padding: 48px 0; }
  .guide-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .scenario-grid, .dl-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 18px; }
  .nav-logo .logo-sub { display: none; }
}

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