/* ============================================================
   CRAWLIT — new-styles.css
   Industrial Mech Terminal aesthetic — REFINED
   ============================================================ */

/* 0. FONTS loaded via <link> in HTML (Exo 2, DM Sans, JetBrains Mono) */

/* 1. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; }

/* 2. VARIABLES */
:root {
  --bg:           #070b10;
  --bg-up:        #0d1520;
  --bg-down:      #040709;
  --border:       #1a2535;
  --border-hi:    #2a3d52;
  --border-act:   #3d5a70;

  --txt:          #dce8f5;
  --txt-2:        #7a8fa8;
  --txt-3:        #46596e;

  /* REFINED: Reduced cyan dominance, added more amber */
  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0,212,255,.10);
  --cyan-glow:    rgba(0,212,255,.25);
  --amber:        #ffb347;
  --amber-dim:    rgba(255,179,71,.12);
  --red:          #ff4747;

  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --head: 'Exo 2', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;

  --r-sm:   6px;
  --r-md:  10px;
  --r-lg:  16px;
  --hh:    64px;
  --ease:  cubic-bezier(.16,1,.3,1);
}

/* 3. BASE */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0,212,255,.15); color: var(--txt); }

h1,h2,h3,h4 {
  font-family: var(--head);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--txt);
}
h1 { font-size: clamp(2.5rem,5.5vw,4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem,3.2vw,2.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--txt-2); line-height: 1.72; }

/* REFINED: Links now use amber as primary, cyan as hover */
a { color: var(--amber); text-decoration: none; transition: color .18s; }
a:hover { color: #ffd27f; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-up);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--amber);
}
pre code { background: none; border: none; padding: 0; font-size: .875rem; line-height: 1.72; color: var(--txt); }

/* 4. SKIP LINK */
.skip-link {
  position: absolute; left:-9999px; top:-9999px; z-index:9999;
  padding: 8px 16px; background: var(--amber); color: var(--bg);
  font-family: var(--head); font-size: .875rem; font-weight: 700;
  border-radius: var(--r-sm); text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { left:16px; top:16px; }

/* 5. LAYOUT */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 7rem 1.5rem; }

.section-header  { margin-bottom: 4rem; max-width: 680px; }

/* REFINED: Eyebrows now use display font (Exo 2) instead of monospace */
.section-eyebrow {
  font-family: var(--head);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem; line-height: 1;
}
.section-title   { margin-bottom: 0; }
.section-lead    { margin-top: 1.25rem; font-size: 1.05rem; }

/* 6. HEADER — REFINED: Removed glassmorphism, solid terminal look */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hh);
  background: var(--bg); /* Solid instead of blurred */
  border-bottom: 1px solid var(--border);
  /* Removed: backdrop-filter: blur(18px); */
}
.header-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.header-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.header-brand img { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--head); font-size: 1.1rem; font-weight: 700;
  color: var(--txt); letter-spacing: -.01em;
}

.nav-primary { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  font-family: var(--mono); font-size: .78rem;
  color: var(--txt-2); padding: 6px 11px; border-radius: var(--r-sm);
  text-decoration: none; transition: color .18s, background .18s;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; position: relative;
}
/* REFINED: Nav links use amber for active/hover instead of cyan */
.nav-link:hover, .nav-link.is-active { color: var(--amber); background: var(--amber-dim); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 11px; right: 11px;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-link.is-active::after { transform: scaleX(1); }
.nav-github {
  margin-left: .5rem;
  border: 1px solid var(--border-hi); color: var(--txt);
}
.nav-github:hover { border-color: var(--amber); }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  padding: 8px 10px; flex-direction: column; gap: 4px;
  color: var(--txt-2); transition: border-color .18s, color .18s;
}
.nav-toggle:hover { border-color: var(--amber); color: var(--amber); }
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; transition: transform .2s var(--ease);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -5px; }
.hamburger::after  { top:  5px; }
body.nav-open .hamburger            { background: transparent; }
body.nav-open .hamburger::before    { transform: rotate(45deg) translate(3.5px, 3.5px); }
body.nav-open .hamburger::after     { transform: rotate(-45deg) translate(3.5px,-3.5px); }

/* 7. HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6rem 1.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-hex-grid { position: absolute; inset: 0; opacity: .55; }

/* scanlines */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.03) 3px, rgba(0,0,0,.03) 4px);
  pointer-events: none;
}

/* REFINED: Reduced cyan glow intensity */
.hero-glow-orb {
  position: absolute; top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,179,71,.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  max-width: 780px;
}

/* logo */
.hero-logo-wrap {
  position: relative; width: 148px; height: 148px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2.25rem;
}
.hero-logo {
  position: relative; z-index: 2;
  animation: logopulse 3.2s ease-in-out infinite;
}
@keyframes logopulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,179,71,.20)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255,179,71,.45)) drop-shadow(0 0 6px rgba(0,212,255,.15)); }
}
.hero-logo-ring {
  position: absolute; inset: -14px;
  border: 1px solid var(--border-hi); border-radius: 50%;
  animation: ringspin 14s linear infinite;
}
.hero-logo-ring::before {
  content: '';
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; background: var(--amber); border-radius: 50%;
  box-shadow: 0 0 10px var(--amber-dim);
}
@keyframes ringspin {
  to { transform: rotate(360deg); }
}

/* REFINED: Hero title - SOLID COLOR instead of gradient */
.hero-title {
  font-size: clamp(2.8rem,6.5vw,5.2rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  /* REMOVED: gradient text */
  color: var(--txt); /* Solid white/off-white */
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.12rem; color: var(--txt-2);
  max-width: 540px; margin-bottom: 2.25rem; line-height: 1.72;
}
.hero-cta {
  display: flex; gap: .875rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2.75rem;
}

.hero-cmd {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.hero-cmd pre {
  position: relative;
  background: var(--bg-down);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  padding: .9rem 3.5rem .9rem 1.4rem;
  font-family: var(--mono); font-size: 1.05rem; color: var(--amber);
}
.hero-cmd-hint {
  font-family: var(--mono); font-size: .72rem;
  color: var(--txt-3); letter-spacing: .05em;
}

/* 8. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-family: var(--mono); font-size: .86rem; font-weight: 500;
  text-decoration: none; transition: all .18s var(--ease);
  border: none; white-space: nowrap; line-height: 1;
}
/* REFINED: Primary button uses amber instead of cyan */
.btn-primary  { background: var(--amber); color: #1a0f00; font-weight: 700; }
.btn-primary:hover {
  background: #ffd27f; color: #1a0f00;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,179,71,.28);
}
.btn-secondary {
  background: transparent; color: var(--txt);
  border: 1px solid var(--border-hi);
}
/* REFINED: Secondary button hover uses amber */
.btn-secondary:hover {
  border-color: var(--amber); color: var(--amber);
  background: var(--amber-dim); transform: translateY(-2px);
}
.btn-lg { padding: 13px 26px; font-size: .925rem; }

/* 9. CODE BLOCKS */
.code-block { position: relative; }
.code-block pre {
  background: #05090e;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-family: var(--mono); font-size: .86rem; line-height: 1.72;
  color: var(--txt);
  padding-right: 5rem;
}
/* full border accent */
.code-block pre {
  border: 1.5px solid var(--amber);
}
.copy-btn {
  position: absolute; top: .7rem; right: .7rem;
  background: var(--bg-up); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 3px 10px;
  font-family: var(--mono); font-size: .68rem;
  color: var(--txt-3); transition: all .15s; white-space: nowrap;
}
/* REFINED: Copy button hover uses amber */
.copy-btn:hover   { border-color: var(--amber); color: var(--amber); }
.copy-btn.is-copied { border-color: #22c55e; color: #22c55e; }

/* 10. FEATURES */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-down) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.4rem;
}
.feature-card {
  background: var(--bg-up);
  border: 1.5px solid var(--amber);
  border-radius: var(--r-lg);
  padding: 1.875rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .25s var(--ease);
}
.feature-card:hover {
  border-color: var(--amber);
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(255, 179, 71, 0.08);
}

/* REFINED: Feature icons use amber instead of cyan */
.feature-icon {
  width: 42px; height: 42px;
  background: var(--amber-dim); border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin-bottom: 1.25rem; flex-shrink: 0;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.feature-card p  { font-size: .9rem; color: var(--txt-2); line-height: 1.65; }
.feature-card code { font-size: .8em; }

/* 11. QUICKSTART */
.steps {
  display: flex; flex-direction: column;
  position: relative; margin-bottom: 3rem;
}
/* connector line - REFINED: amber gradient instead of cyan */
.steps::before {
  content: '';
  position: absolute; left: 27px; top: 55px; bottom: 55px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--border) 60%, transparent);
}
.step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 2rem; padding: 2.5rem 0; align-items: start;
}
.step + .step { border-top: 1px solid var(--border); }
/* REFINED: Step numbers use amber */
.step-num {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--amber); line-height: 1;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-up); border: 1px solid var(--border-hi);
  border-radius: 50%; position: relative; z-index: 1;
  flex-shrink: 0;
}
.step-content h3  { margin-bottom: .5rem; }
.step-content .dim { color: var(--txt-3); font-weight: 400; font-size: .88rem; }
.step-content p   { margin-bottom: 1.1rem; font-size: .95rem; }

.try-it {
  background: var(--bg-up);
  border: none;
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
/* REFINED: Try-it label uses amber */
.try-it-label {
  font-family: var(--head); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; color: var(--amber); margin-bottom: 1rem;
  text-transform: uppercase;
}

/* 12. API */
.api-section {
  background: linear-gradient(180deg, var(--bg-down) 0%, var(--bg) 100%);
}
.endpoint-card {
  background: var(--bg-up);
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.endpoint-header {
  padding: 1.4rem 1.75rem;
  display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
/* REFINED: Method badge slightly adjusted */
.method-badge {
  font-family: var(--mono); font-size: .66rem; font-weight: 800;
  letter-spacing: .1em;
  background: var(--amber); color: #1a0f00;
  padding: 3px 9px; border-radius: 4px; flex-shrink: 0;
}
.endpoint-path {
  font-family: var(--mono); font-size: 1.12rem; font-weight: 600;
  color: var(--txt); background: none; border: none; padding: 0;
  flex-shrink: 0;
}
.endpoint-desc {
  color: var(--txt-2); font-size: .9rem; flex: 1;
  min-width: 200px; margin: 0;
}
.endpoint-body { padding: 1.4rem 1.75rem; }

/* tabs */
.tab-list {
  display: flex; border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem; gap: 0;
}
.tab-btn {
  font-family: var(--mono); font-size: .78rem;
  color: var(--txt-3); background: none; border: none;
  border-bottom: 2px solid transparent;
  padding: 7px 15px; transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.tab-btn:hover    { color: var(--txt-2); }
/* REFINED: Active tab uses amber */
.tab-btn.is-active { color: var(--amber); border-bottom-color: var(--amber); }
.tab-panel[hidden] { display: none; }

/* param / config tables shared base */
.params-table-wrap, .config-table-wrap {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; overflow-x: auto;
}
.params-table, .config-table {
  width: 100%; font-size: .875rem;
}
.params-table th, .config-table th {
  font-family: var(--head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--txt-3); padding: 10px 16px; text-align: left;
  background: var(--bg-down); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.params-table td, .config-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  color: var(--txt-2); vertical-align: top;
}
.params-table tbody tr:last-child td,
.config-table tbody tr:last-child td { border-bottom: none; }
/* REFINED: Hover uses amber tint instead of cyan */
.params-table tbody tr:hover td,
.config-table tbody tr:hover td { background: rgba(255,179,71,.04); }

/* REFINED: Parameter names use amber */
.params-table td:first-child code {
  color: var(--amber); background: none; border: none; padding: 0;
  font-size: .82rem;
}
td.req {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  color: var(--red);
}

/* 13. CONFIG */
.config-section { background: var(--bg); }
.config-table-wrap { border-radius: var(--r-lg); }
/* REFINED: Config variable names use amber */
.config-table td:first-child code {
  color: var(--amber); background: none; border: none; padding: 0;
  font-size: .82rem;
}
.config-table td:nth-child(2) { font-family: var(--mono); font-size: .82rem; color: var(--txt-3); }
.config-table td:nth-child(2) code { color: inherit; background: none; border: none; padding: 0; }
.config-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.014); }

/* 14. ARCHITECTURE */
.architecture { background: var(--bg-down); }
.arch-diagram {
  background: var(--bg-up);
  border: 1.5px solid var(--amber);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 2.75rem;
  overflow: hidden;
  position: relative;
}
.arch-svg { width: 100%; height: auto; }
.stack-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.stack-chip {
  font-family: var(--mono); font-size: .78rem;
  color: var(--txt-2); border: 1px solid var(--border-hi);
  border-radius: var(--r-sm); padding: 5px 13px;
  background: var(--bg-up);
  transition: border-color .15s, color .15s;
}
/* REFINED: Stack chip hover uses amber */
.stack-chip:hover { border-color: var(--amber); color: var(--amber); }

/* 15. CTA */
.cta-section {
  background: var(--bg-down); position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 900px; height: 450px;
  /* REFINED: Reduced glow intensity, amber tint */
  background: radial-gradient(ellipse, rgba(255,179,71,.04) 0%, transparent 65%);
  pointer-events: none;
}
/* hex grid in CTA bg */
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,16 58,44 30,58 2,44 2,16' fill='none' stroke='%23182235' stroke-width='0.6'/%3E%3C/svg%3E");
  opacity: .4; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-content { text-align: center; }

/* REFINED: CTA title - solid color instead of gradient */
.cta-title {
  font-size: clamp(2.4rem,4.5vw,3.8rem); font-weight: 800;
  /* REMOVED: gradient text */
  color: var(--txt);
  margin-bottom: .9rem;
}
.cta-sub { font-size: 1.1rem; margin-bottom: 2.5rem; color: var(--txt-2); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 16. FOOTER */
.site-footer {
  background: var(--bg-down); border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
/* REFINED: Footer titles use display font */
.footer-col-title {
  font-family: var(--head); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-3); margin-bottom: 1.2rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-col nav a { font-size: .9rem; color: var(--txt-2); transition: color .15s; }
/* REFINED: Footer links use amber on hover */
.footer-col nav a:hover { color: var(--amber); }
.footer-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-chip {
  font-family: var(--mono); font-size: .68rem; color: var(--txt-3);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; color: var(--txt-3);
}
.footer-license { font-family: var(--mono); font-size: .72rem; color: var(--txt-3); }

/* 17. REVEAL ANIMATIONS */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger feature cards */
.feature-grid .feature-card:nth-child(2) { transition-delay:  80ms; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 160ms; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 240ms; }
.feature-grid .feature-card:nth-child(5) { transition-delay: 320ms; }
.feature-grid .feature-card:nth-child(6) { transition-delay: 400ms; }

.steps .step:nth-child(2) { transition-delay:  90ms; }
.steps .step:nth-child(3) { transition-delay: 180ms; }

/* 17b. AI AGENT SKILL SECTION */
.agent-skill {
  background: var(--bg-up);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-content {
  max-width: 800px;
}

.agent-description {
  margin-bottom: 3rem;
}

.agent-description p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.agent-description strong {
  color: var(--amber);
  font-weight: 600;
}

.agent-install {
  margin-bottom: 3rem;
}

.agent-install h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--txt);
}

.agent-tools {
  margin-bottom: 3rem;
}

.agent-tools h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--txt);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.tool-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 179, 71, 0.1);
}

.tool-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-dim);
  border-radius: var(--r-sm);
  color: var(--amber);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-name {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--txt);
  font-weight: 500;
}

.agent-cta {
  text-align: center;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* 18. RESPONSIVE */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --hh: 56px; }
  .section { padding: 5rem 1rem; }

  .nav-primary {
    display: none;
    position: fixed; top: var(--hh); left: 0; right: 0;
    background: var(--bg); /* Solid instead of blurred */
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: .25rem;
    /* Removed: backdrop-filter: blur(16px); */
  }
  body.nav-open .nav-primary { display: flex; }
  .nav-link { padding: 10px 14px; width: 100%; }
  .nav-github { margin-left: 0; }
  .nav-toggle { display: flex; }

  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }

  .step { grid-template-columns: 46px 1fr; gap: 1.25rem; }
  .steps::before { left: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .endpoint-header { padding: 1.1rem 1.25rem; }
  .endpoint-body   { padding: 1.1rem 1.25rem; }

  .arch-svg { min-width: 600px; }
  .arch-diagram { overflow-x: auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .hero-cta, .cta-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 19. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 20. FOCUS — REFINED: amber focus instead of cyan */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
