/* ================================================
   HERMES AGENT — style.css
   Clean, spacious, day/night dual theme
   ================================================ */

:root {
  --font: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 16px;
  --radius-sm: 10px;

  --bg: #f0f3f8;
  --bg2: #e8ecf2;
  --surface: rgba(255, 255, 255, 0.7);
  --border: rgba(80, 120, 200, 0.12);
  --border2: rgba(80, 120, 200, 0.2);
  --accent: #3b6fd4;
  --accent-dim: rgba(59, 111, 212, 0.08);
  --accent2: #1a9e6e;
  --text: #3a4a5e;
  --text-dim: #7a8a9e;
  --text-bright: #1a2535;
  --card-bg: rgba(255, 255, 255, 0.75);
  --chip-bg: rgba(59, 111, 212, 0.07);
  --chip-border: rgba(59, 111, 212, 0.18);
  --chip-text: #3b6fd4;
  --learning-line: rgba(59, 111, 212, 0.12);
  --footer-bg: rgba(255, 255, 255, 0.6);
  --header-bg: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] {
  --bg: #07090f;
  --bg2: #0d1120;
  --surface: rgba(16, 28, 56, 0.7);
  --border: rgba(80, 160, 255, 0.1);
  --border2: rgba(80, 160, 255, 0.2);
  --accent: #4f8ef7;
  --accent-dim: rgba(79, 142, 247, 0.15);
  --accent2: #34d399;
  --text: #b8c5d6;
  --text-dim: #5a6a80;
  --text-bright: #eef2f8;
  --card-bg: rgba(13, 17, 32, 0.75);
  --chip-bg: rgba(79, 142, 247, 0.1);
  --chip-border: rgba(79, 142, 247, 0.2);
  --chip-text: #7aaeff;
  --learning-line: rgba(79, 142, 247, 0.15);
  --footer-bg: rgba(13, 17, 32, 0.5);
  --header-bg: rgba(13, 17, 32, 0.7);
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  transition: background 0.3s, color 0.25s;
}

/* ---- Background ---- */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79, 142, 247, 0.07) 0%, transparent 70%),
    var(--bg);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s;
}

[data-theme="light"] .bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 111, 212, 0.06) 0%, transparent 70%),
    var(--bg);
}

/* ---- Container ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* ===================== HEADER ===================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  margin-bottom: 40px;
  transition: background 0.3s, border-color 0.3s;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 46px; height: 46px;
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1px;
  transition: color 0.25s;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  transition: background 0.3s;
}

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

.clock-block { text-align: right; }

.clock {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-bright);
  transition: color 0.25s;
}

.date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1px;
  transition: color 0.25s;
}

.theme-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.theme-btn:hover {
  background: var(--accent-dim);
  transform: scale(1.05);
}

/* ===================== HERO ===================== */
.hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 32px;
  backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}

.hero-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  transition: color 0.25s;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 10px;
  transition: color 0.25s;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-block {
  flex: 1;
  text-align: center;
}

.stat-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.stat-link:hover {
  color: var(--accent);
}

.stat-number {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  transition: color 0.25s;
}

.stat-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===================== SECTIONS ===================== */
.section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.section-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.5s ease-in-out infinite;
  transition: background 0.3s, box-shadow 0.3s;
}

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

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.25s;
}

/* ===================== CAPABILITIES ===================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.3s, border-color 0.25s, transform 0.2s;
}

.cap-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.cap-emoji { font-size: 1.6rem; margin-bottom: 10px; }

.cap-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
  transition: color 0.25s;
}

.cap-detail {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-dim);
  transition: color 0.25s;
}

/* ===================== TWO COL ===================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ===================== SKILLS ===================== */
.skills-block { display: flex; flex-direction: column; gap: 18px; }

.skill-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  transition: color 0.25s;
}

.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* ===================== LEARNING ===================== */
.learning-list { display: flex; flex-direction: column; gap: 0; }

.learning-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}

.learning-item + .learning-item {
  border-top: 1px solid var(--learning-line);
}

.learning-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 6px var(--accent);
  transition: background 0.3s, box-shadow 0.3s;
}

.learning-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
  transition: color 0.25s;
}

.learning-text {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-dim);
  transition: color 0.25s;
}

/* ===================== ARCHITECTURE ===================== */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.arch-layer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.25s;
}

.arch-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.arch-node {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s, color 0.25s;
}

.arch-node.hero-node {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 28px;
  box-shadow: 0 0 16px rgba(79, 142, 247, 0.15);
}

.arch-connector {
  width: 1px;
  height: 20px;
  background: var(--border2);
  margin: 4px 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 28px 24px; }
  .hero-stats { flex-wrap: wrap; }
  .stat-block { min-width: 50%; padding: 10px 0; }
  .stat-divider { display: none; }
  .site-header { flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (max-width: 540px) {
  .cap-grid { grid-template-columns: 1fr; }
  .container { padding: 16px 16px 40px; }
  .section { padding: 22px 20px; }
}
