/* ════════════════════════════════════════
   style.css — 慧聚衍射·智启光程 主样式
   ════════════════════════════════════════ */

/* ─── CSS 变量 ─── */
:root {
  --deep:        #020818;
  --navy:        #040f2e;
  --blue-glow:   #0a2a6e;
  --cyan:        #00d4ff;
  --cyan-dim:    #0099cc;
  --gold:        #f5a623;
  --red-accent:  #e03050;
  --white:       #e8f4ff;
  --glass:       rgba(0, 180, 255, 0.08);
  --glass-border:rgba(0, 212, 255, 0.2);
}

/* ─── 基础重置 ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep);
  color: var(--white);
  font-family: 'Noto Serif SC', serif;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ─── 星空背景 ─── */
#starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%, #060e2e 0%, #020818 60%);
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes twinkle {
  from { opacity: 0; transform: scale(1); }
  to   { opacity: var(--op); transform: scale(1.4); }
}

/* ─── 鼠标光晕 ─── */
#cursor-glow {
  position: fixed; width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  transition: left .1s ease, top .1s ease;
}

/* ─── 导航栏 ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: linear-gradient(180deg, rgba(2,8,24,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--cyan); letter-spacing: 3px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(232,244,255,0.6);
  text-decoration: none; letter-spacing: 1px;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--cyan); transition: width .3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

/* ─── 通用 section ─── */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 4px; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; display: block; width: 30px; height: 1px; background: var(--cyan); }
.section-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.section-title .hl {
  background: linear-gradient(135deg, var(--cyan), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider {
  border: none; height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
  margin: 0;
}

/* ─── 动画 ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════ HERO ════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}
.hero-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin linear infinite; pointer-events: none;
}
.ring-1 {
  width: 520px; height: 260px; border-color: rgba(0,212,255,0.25);
  top: 50%; left: 55%;
  transform: translateX(-50%) translateY(-50%) rotateX(70deg);
  animation-duration: 12s;
  box-shadow: 0 0 40px rgba(0,212,255,0.1);
}
.ring-2 {
  width: 700px; height: 350px; border-color: rgba(0,212,255,0.12);
  top: 50%; left: 55%;
  transform: translateX(-50%) translateY(-50%) rotateX(70deg);
  animation-duration: 20s; animation-direction: reverse;
}
@keyframes spin {
  from { transform: translateX(-50%) translateY(-50%) rotateX(70deg) rotateZ(0deg); }
  to   { transform: translateX(-50%) translateY(-50%) rotateX(70deg) rotateZ(360deg); }
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 4px; color: var(--cyan); text-transform: uppercase;
  border: 1px solid var(--glass-border); padding: 6px 20px; border-radius: 2px;
  margin-bottom: 36px; background: var(--glass); animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(52px, 8vw, 100px); font-weight: 900; line-height: 1.1;
  margin-bottom: 8px; animation: fadeUp .8s .2s ease both;
}
.hero-title .glow-text {
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 60%, #fff 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.4));
}
.hero-title .accent { color: var(--red-accent); -webkit-text-fill-color: var(--red-accent); }
.hero-sub { font-size: clamp(18px, 3vw, 26px); font-weight: 700; margin-bottom: 24px; animation: fadeUp .8s .35s ease both; }
.hero-sub .glow-text {
  background: linear-gradient(135deg, var(--gold) 0%, #fff 50%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  max-width: 600px; line-height: 1.9;
  color: rgba(232,244,255,0.65); margin-bottom: 56px;
  animation: fadeUp .8s .5s ease both;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.hero-buttons {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .8s .65s ease both;
}
.btn-primary {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--cyan) 0%, #0077aa 100%);
  color: #000; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  border: none; cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(0,212,255,0.3); text-transform: uppercase;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,212,255,0.5); }
.btn-trial {
  padding: 14px 40px;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05));
  border: 1px solid rgba(245,166,35,0.5);
  color: var(--gold); font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: transform .2s, background .3s, box-shadow .3s;
  text-transform: uppercase; backdrop-filter: blur(4px);
}
.btn-trial:hover { transform: translateY(-2px); background: rgba(245,166,35,0.2); box-shadow: 0 0 30px rgba(245,166,35,0.25); }
.btn-secondary {
  padding: 14px 40px;
  border: 1px solid var(--glass-border);
  color: var(--cyan); font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  background: var(--glass); cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: transform .2s, background .3s; text-transform: uppercase; backdrop-filter: blur(4px);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(0,212,255,0.12); }
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp 1s 1.2s ease both;
}
.scroll-hint span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 3px; color: rgba(0,212,255,0.5); }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.3;transform:scaleY(0.6)} }

/* ════════════════ ABOUT ════════════════ */
#about { background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 50%, var(--deep) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 60px; }
.problem-cards { display: flex; flex-direction: column; gap: 16px; }
.problem-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-left: 3px solid var(--red-accent); padding: 20px 24px; border-radius: 2px;
  transition: transform .3s, background .3s; backdrop-filter: blur(4px);
}
.problem-card:hover { transform: translateX(6px); background: rgba(0,212,255,0.06); }
.problem-card h4 { font-size: 14px; color: var(--red-accent); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; }
.problem-card p { font-size: 13px; color: rgba(232,244,255,0.6); line-height: 1.8; }
.solution-panel {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 2px; padding: 40px; backdrop-filter: blur(8px); position: sticky; top: 100px;
}
.solution-panel h3 {
  font-size: 22px; margin-bottom: 30px;
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.solution-items { display: flex; flex-direction: column; gap: 20px; }
.sol-item { display: flex; gap: 16px; align-items: flex-start; }
.sol-num { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 900; color: var(--cyan); min-width: 40px; opacity: 0.4; line-height: 1; }
.sol-text h5 { font-size: 14px; color: var(--cyan); margin-bottom: 4px; }
.sol-text p { font-size: 13px; color: rgba(232,244,255,0.6); line-height: 1.7; }
.target-box {
  margin-top: 50px; border: 1px solid rgba(0,212,255,0.3);
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,100,150,0.1));
  padding: 30px; border-radius: 2px; text-align: center;
}
.target-box .big {
  font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.6;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--glass-border); margin-top: 70px; }
.stat-cell { padding: 32px; text-align: center; border-right: 1px solid var(--glass-border); }
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 6px;
}
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(232,244,255,0.4); letter-spacing: 2px; }

/* ════════════════ FEATURES ════════════════ */
#features { background: var(--deep); position: relative; }
#features::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,80,150,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 60px; border: 1px solid var(--glass-border); }
.feat-card {
  padding: 32px 24px; background: var(--glass);
  border-right: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  transition: background .3s, transform .3s; position: relative; overflow: hidden;
}
.feat-card:nth-child(4n) { border-right: none; }
.feat-card:hover { background: rgba(0,212,255,0.06); transform: translateY(-4px); }
.feat-card::before {
  content: attr(data-num); position: absolute; top: -10px; right: 20px;
  font-family: 'Orbitron', sans-serif; font-size: 80px; font-weight: 900;
  color: rgba(0,212,255,0.04); line-height: 1; pointer-events: none;
}
.feat-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,50,100,0.4));
  border: 1px solid var(--glass-border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feat-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--cyan); }
.feat-card p { font-size: 13px; color: rgba(232,244,255,0.55); line-height: 1.8; }
.grating-types { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grating-card {
  border: 1px solid var(--glass-border); background: var(--glass);
  padding: 28px 20px; border-radius: 2px; text-align: center;
  transition: background .3s, border-color .3s; cursor: default;
}
.grating-card:hover { background: rgba(0,212,255,0.08); border-color: var(--cyan); }
.grating-vis { height: 50px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.grating-card h4 { font-size: 14px; color: var(--cyan); margin-bottom: 8px; }
.grating-card p { font-size: 11px; color: rgba(232,244,255,0.5); line-height: 1.7; }
.stripe { height: 40px; border-radius: 1px; }
.bw-stripe { background: #fff; width: 6px; }
.bw-gap { background: #000; width: 6px; border: 1px solid #333; }
.sine-bar { width: 6px; border-radius: 3px; background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(0,100,180,0.3)); }
.tech-stack { margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.tech-tag {
  border: 1px solid var(--glass-border); padding: 12px 16px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(232,244,255,0.6);
  background: var(--glass); border-radius: 2px; transition: color .3s, border-color .3s;
}
.tech-tag:hover { color: var(--cyan); border-color: var(--cyan); }

/* ════════════════ DOWNLOAD ════════════════ */
#download { background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 50%, var(--deep) 100%); }
.download-hero { text-align: center; margin-bottom: 70px; }
.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 2px; padding: 40px 32px; text-align: center;
  transition: transform .3s, background .3s, border-color .3s;
  position: relative; overflow: hidden; backdrop-filter: blur(4px);
}
.platform-card:hover { transform: translateY(-6px); background: rgba(0,212,255,0.08); border-color: var(--cyan); }
.platform-card.featured { border-color: var(--cyan); background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,50,100,0.15)); }
.platform-card.featured::before {
  content: '推荐'; position: absolute; top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  background: var(--cyan); color: #000; padding: 3px 10px; border-radius: 1px;
  font-weight: 700; letter-spacing: 1px;
}
.platform-icon { font-size: 48px; margin-bottom: 20px; display: block; }
.platform-card h3 {
  font-size: 20px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyan), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.platform-version { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(232,244,255,0.4); margin-bottom: 4px; letter-spacing: 1px; }
.platform-size   { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(232,244,255,0.4); margin-bottom: 28px; letter-spacing: 1px; }
.platform-specs  { text-align: left; margin-bottom: 32px; }
.platform-specs li {
  font-size: 12px; color: rgba(232,244,255,0.5);
  padding: 6px 0; border-bottom: 1px solid rgba(0,212,255,0.08);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.platform-specs li::before { content: '▸'; color: var(--cyan); font-size: 10px; }
.dl-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--cyan), #0077aa);
  color: #000; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  border: none; cursor: pointer; border-radius: 1px; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 20px rgba(0,212,255,0.2);
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,212,255,0.4); }
.dl-btn-outline {
  width: 100%; padding: 14px; background: transparent;
  color: var(--cyan); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  border: 1px solid var(--glass-border); cursor: pointer; border-radius: 1px;
  text-transform: uppercase; transition: border-color .3s, background .3s;
}
.dl-btn-outline:hover { border-color: var(--cyan); background: rgba(0,212,255,0.05); }
.web-access {
  margin-top: 60px; border: 1px solid rgba(0,212,255,0.25);
  background: linear-gradient(135deg, rgba(0,212,255,0.04), rgba(0,50,100,0.08));
  padding: 40px; border-radius: 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.web-access-text h3 { font-size: 22px; margin-bottom: 10px; }
.web-access-text p { font-size: 13px; color: rgba(232,244,255,0.55); line-height: 1.8; max-width: 500px; }
.web-url {
  font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--cyan);
  border: 1px solid var(--glass-border); padding: 12px 24px; border-radius: 2px;
  background: var(--glass); white-space: nowrap; cursor: pointer;
  transition: background .3s; text-decoration: none; display: block;
}
.web-url:hover { background: rgba(0,212,255,0.1); }

/* ════════════════ FOOTER ════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px; text-align: center; background: var(--navy);
}
footer p { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(232,244,255,0.25); letter-spacing: 2px; }
footer .f-title { font-size: 14px; color: var(--cyan); margin-bottom: 12px; letter-spacing: 3px; }

/* ════════════════ AI 助手浮窗 ════════════════ */
#ai-bubble {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,50,100,0.2));
  border: 1px solid rgba(0,212,255,0.4);
  padding: 12px 20px 12px 14px; border-radius: 40px; cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,212,255,0.15), 0 4px 20px rgba(0,0,0,0.4);
  transition: transform .25s, box-shadow .25s;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--cyan); font-weight: 700; letter-spacing: 1px; user-select: none;
}
#ai-bubble:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0,212,255,0.25), 0 8px 30px rgba(0,0,0,0.5); }
.ai-bubble-ring {
  position: absolute; inset: -4px; border-radius: 44px;
  border: 1px solid rgba(0,212,255,0.2); animation: ringPulse 2.5s ease infinite;
}
@keyframes ringPulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:0;transform:scale(1.06)} }

#ai-panel {
  position: fixed; bottom: 100px; right: 32px; z-index: 199;
  width: 360px; height: 500px;
  background: rgba(4,12,36,0.97); border: 1px solid rgba(0,212,255,0.25);
  border-radius: 8px; display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 30px rgba(0,212,255,0.08);
  backdrop-filter: blur(20px);
  transform: translateY(20px) scale(0.95); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  overflow: hidden;
}
#ai-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }

.ai-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(0,212,255,0.12);
  background: rgba(0,20,60,0.5); flex-shrink: 0;
}
.ai-header-left { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.ai-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); font-weight: 700; letter-spacing: 1px; }
.ai-status {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(232,244,255,0.35); letter-spacing: 1px;
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
.ai-online-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #00ff88; box-shadow: 0 0 4px #00ff88; animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.ai-close { background: none; border: none; color: rgba(232,244,255,0.3); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 2px; transition: color .2s; }
.ai-close:hover { color: var(--white); }

.ai-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth;
}
.ai-messages::-webkit-scrollbar { width: 3px; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 2px; }
.ai-msg { display: flex; gap: 8px; align-items: flex-end; }
.ai-msg.bot { flex-direction: row; }
.ai-msg.user { flex-direction: row-reverse; }
.msg-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7; font-family: 'Noto Serif SC', serif; }
.ai-msg.bot .msg-bubble {
  background: rgba(0,212,255,0.07); border: 1px solid rgba(0,212,255,0.15);
  color: rgba(232,244,255,0.82); border-bottom-left-radius: 3px;
}
.ai-msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,80,140,0.3));
  border: 1px solid rgba(0,212,255,0.25); color: var(--white); border-bottom-right-radius: 3px;
}
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 4px 0; }
.sug-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(0,212,255,0.7); letter-spacing: .5px;
  border: 1px solid rgba(0,212,255,0.2); background: rgba(0,212,255,0.05);
  padding: 5px 10px; border-radius: 20px; cursor: pointer; transition: all .2s;
}
.sug-btn:hover { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.4); color: var(--cyan); }
.typing-dots {
  display: flex; gap: 4px; padding: 10px 14px;
  background: rgba(0,212,255,0.07); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px; border-bottom-left-radius: 3px; width: fit-content;
}
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,212,255,0.5); animation: dotBounce 1.2s ease infinite; }
.typing-dots span:nth-child(2){animation-delay:.2s}
.typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes dotBounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}
.ai-input-area {
  padding: 12px 14px; border-top: 1px solid rgba(0,212,255,0.12);
  background: rgba(0,10,30,0.5); display: flex; gap: 8px; flex-shrink: 0;
}
#ai-inp {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(0,212,255,0.15);
  color: var(--white); padding: 9px 14px; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  outline: none; transition: border-color .2s; letter-spacing: .5px;
}
#ai-inp:focus { border-color: rgba(0,212,255,0.4); }
#ai-inp::placeholder { color: rgba(232,244,255,0.2); }
.ai-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cyan); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .2s, opacity .2s;
}
.ai-send-btn:hover { transform: scale(1.1); }
.ai-send-btn:active { transform: scale(0.95); opacity: .8; }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .about-grid, .features-grid, .platform-cards, .grating-types { grid-template-columns: 1fr; }
  .web-access { flex-direction: column; text-align: center; }
  .section-inner { padding: 70px 24px; }
  .ring-1, .ring-2 { display: none; }
  #ai-bubble { bottom: 20px; right: 20px; }
  #ai-panel { right: 16px; left: 16px; width: auto; bottom: 90px; }
}
