/* ============================================
   ToyDEX / PhantomSwap — Cyberpunk × Zen
   ============================================ */

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

:root {
  --bg:      #0a0a0f;
  --bg-alt:  #0f0f18;
  --bg-card: #12121e;
  --purple:  #a855f7;
  --cyan:    #22d3ee;
  --pink:    #ec4899;
  --text:    #e2e8f0;
  --text-dim:#94a3b8;
  --border:  #1e1e2e;
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
  --glow-cyan:   0 0 20px rgba(34, 211, 238, 0.4);
  --glow-pink:   0 0 20px rgba(236, 72, 153, 0.4);
  --radius:  8px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }

strong { color: var(--cyan); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

#nav.scrolled {
  box-shadow: 0 2px 24px rgba(168, 85, 247, 0.15);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple) !important;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--purple); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.nav-links li a {
  display: block;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

/* --- Hero --- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

/* Animated gradient line at hero bottom */
#hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--pink), transparent);
  background-size: 200% 100%;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-codename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.glow-text {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 20px rgba(168, 85, 247, 0.6),
    0 0 60px rgba(168, 85, 247, 0.3),
    0 0 100px rgba(168, 85, 247, 0.15);
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 300;
}

.hero-en {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.section-intro {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.8;
}

.subsection-title {
  font-size: 1.1rem;
  color: var(--cyan);
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}

/* --- Concept --- */
.concept-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.concept-text {
  font-size: 1.05rem;
  line-height: 1.9;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.concept-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.concept-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cyan);
}
.concept-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(168, 85, 247, 0.1);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--purple);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  color: var(--text);
}

tbody tr {
  transition: background 0.2s;
}
tbody tr:hover {
  background: rgba(168, 85, 247, 0.04);
}

.table-compact td, .table-compact th {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.total-row td {
  background: rgba(34, 211, 238, 0.08);
  border-top: 1px solid var(--cyan);
  font-weight: 700;
}

/* --- Legal --- */
.legal-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(34, 211, 238, 0.04);
  border-radius: var(--radius);
  border-left: 3px solid rgba(34, 211, 238, 0.3);
  font-size: 0.9rem;
}

.check { flex-shrink: 0; }

.legal-quote {
  margin: 16px 0;
  padding: 20px 24px;
  background: rgba(236, 72, 153, 0.05);
  border-left: 3px solid var(--pink);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  font-style: italic;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.diff-card.highlight {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
}

.diff-card h4 {
  color: var(--cyan);
  margin-bottom: 12px;
  font-size: 1rem;
}

.diff-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diff-card li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}

.diff-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--purple);
}

.diff-card.highlight li::before { color: var(--cyan); }

/* --- Game Flow --- */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0;
  margin: 16px 0;
}

.flow-step {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  min-width: 110px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flow-step:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.flow-icon { font-size: 1.6rem; margin-bottom: 6px; }
.flow-label { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }
.flow-desc { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
.flow-arrow { color: var(--purple); font-size: 1.2rem; flex-shrink: 0; }

/* --- Swap Example --- */
.swap-example {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.swap-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 8px;
}

/* --- Ranking --- */
.ranking-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 50px 1fr 120px 80px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.rank-row:hover { background: rgba(168, 85, 247, 0.04); }

.rank-gold { background: rgba(255, 215, 0, 0.06); }
.rank-silver { background: rgba(192, 192, 192, 0.04); }
.rank-bronze { background: rgba(205, 127, 50, 0.04); }
.rank-you { background: rgba(34, 211, 238, 0.06); border-left: 3px solid var(--cyan); }

.rank { color: var(--text-dim); font-weight: 700; }
.addr { color: var(--text); }
.val  { text-align: right; color: var(--text); }
.pnl  { text-align: right; }
.pnl.positive { color: #4ade80; }
.pnl.negative { color: #f87171; }

/* --- Ratings --- */
.rating { white-space: nowrap; }
.r5 { color: #fbbf24; }
.r4 { color: #a3e635; }
.r3 { color: var(--cyan); }
.r2 { color: var(--text-dim); }

/* --- Risk badges --- */
.risk-high {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.risk-mid {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.risk-low {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Architecture --- */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
}

.arch-layer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.arch-user  { background: rgba(168, 85, 247, 0.06); border-color: rgba(168, 85, 247, 0.2); }
.arch-front { background: rgba(34, 211, 238, 0.04); border-color: rgba(34, 211, 238, 0.2); }
.arch-chain { background: rgba(236, 72, 153, 0.04); border-color: rgba(236, 72, 153, 0.2); }
.arch-ai    { background: rgba(168, 85, 247, 0.04); border-color: rgba(168, 85, 247, 0.15); }

.arch-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 6px;
}

.arch-detail {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.arch-alt {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--pink);
}

.arch-connector {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 6px 0;
}

.arch-contracts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.contract-box {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
}

.contract-box h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.contract-box code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.arch-bots {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bot-box {
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.82rem;
  text-align: center;
}

.bot-box small {
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* --- Code blocks --- */
.code-block {
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.code-header {
  background: rgba(168, 85, 247, 0.1);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple);
  border-bottom: 1px solid var(--border);
}

.code-block pre {
  background: #0d0d14;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
}

.code-block code {
  font-family: var(--font-mono);
  color: var(--text);
}

/* Syntax-like coloring */
.kw  { color: var(--purple); }
.fn  { color: var(--cyan); }
.str { color: #a3e635; }
.num { color: var(--pink); }
.cm  { color: #4a5568; font-style: italic; }

/* --- Bot Grid --- */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.bot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bot-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.bot-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.bot-role { color: var(--cyan); font-size: 0.85rem; font-weight: 600; }
.bot-freq { font-family: var(--font-mono); font-size: 0.75rem; color: var(--pink); margin-bottom: 8px; }
.bot-tech { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-bottom: 8px; }
.bot-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* --- Copy Trade --- */
.copy-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.copy-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.copy-num {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--purple);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.copy-step h4 {
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 8px;
  margin-top: 4px;
}

.copy-step p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.disclaimer-box {
  margin: 24px 0;
  padding: 20px;
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius);
}

.disclaimer-box h4 { color: #fbbf24; margin-bottom: 8px; font-size: 0.95rem; }
.disclaimer-box p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }

/* --- Alt Architecture --- */
.alt-arch { margin: 16px 0; }

.alt-box {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.alt-box h4 {
  color: var(--cyan);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.alt-box p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Timeline / Roadmap --- */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 24px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), var(--pink));
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.tl-item.tl-active::before {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.tl-item.tl-active {
  border-color: rgba(34, 211, 238, 0.3);
}

.tl-phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.05em;
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tl-item h4 {
  font-size: 1rem;
  color: var(--cyan);
  margin: 6px 0 8px;
}

.tl-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.tl-item li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
}

.tl-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple);
}

.tl-item li code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(168, 85, 247, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.tl-success {
  font-size: 0.82rem;
  color: #4ade80;
  font-weight: 600;
}

.tl-total {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* --- Cost note --- */
.cost-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Fleet Grid --- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.fleet-card:hover { transform: translateY(-2px); }

.fleet-1:hover { border-color: var(--purple); box-shadow: var(--glow-purple); }
.fleet-2:hover { border-color: var(--cyan);   box-shadow: var(--glow-cyan); }
.fleet-3:hover { border-color: var(--pink);   box-shadow: var(--glow-pink); }
.fleet-4:hover { border-color: var(--cyan);   box-shadow: var(--glow-cyan); }

.fleet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fleet-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}

.fleet-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
}

.fleet-hw {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.fleet-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fleet-card li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
}

.fleet-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* --- Philosophy --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.phil-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.phil-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
}

.phil-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.phil-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.quote-box {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.quote-box p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-dim);
}

.closing {
  text-align: center;
  padding: 24px;
}

.closing-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Inline code --- */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(168, 85, 247, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Override inside code-block */
.code-block code {
  background: none;
  padding: 0;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .section { padding: 48px 0; }

  #hero { min-height: 90vh; padding: 70px 20px 40px; }
  .glow-text { font-size: 2.5rem; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.3rem; }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    gap: 6px;
  }

  .flow-step {
    min-width: 90px;
    padding: 10px;
  }

  .rank-row {
    grid-template-columns: 40px 1fr 90px 60px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .arch-contracts {
    grid-template-columns: 1fr;
  }

  .arch-bots {
    gap: 8px;
  }

  .timeline { padding-left: 24px; }
  .tl-item::before { left: -19px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .concept-grid { grid-template-columns: 1fr; }
  .bot-grid { grid-template-columns: 1fr; }
  .copy-flow { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
}
