/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e4e4e7;
  background: #09090b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #a78bfa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4b5fd; }
ul { list-style: none; }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; background: #18181b; padding: 0.3em 0.6em; border-radius: 6px; color: #a78bfa; display: inline-block; margin-top: 0.5rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.accent { color: #a78bfa; }

/* === Nav === */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 2rem; max-width: 1100px; margin: 0 auto; }
.nav-logo { font-size: 1.3rem; font-weight: 700; color: #fff; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: #a1a1aa; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.btn-nav { background: #a78bfa; color: #09090b !important; padding: 0.45rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; }
.btn-nav:hover { background: #c4b5fd; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #a1a1aa; transition: 0.3s; }

/* === Hero === */
.hero { padding: 2rem 0 4rem; background: radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.08) 0%, transparent 60%); }
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 0; }
.hero-badge { display: inline-block; font-size: 0.8rem; font-weight: 500; color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); padding: 0.3rem 1rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.1rem; color: #a1a1aa; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; }

/* === Buttons === */
.btn { display: inline-block; padding: 0.7rem 1.8rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary { background: #a78bfa; color: #09090b; }
.btn-primary:hover { background: #c4b5fd; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #a78bfa; border: 1px solid rgba(167,139,250,0.4); }
.btn-secondary:hover { border-color: #a78bfa; background: rgba(167,139,250,0.08); }

/* === Terminal === */
.hero-terminal { max-width: 560px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid #27272a; background: #0c0c0f; text-align: left; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 1rem; background: #18181b; border-bottom: 1px solid #27272a; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.terminal-title { margin-left: auto; font-size: 0.75rem; color: #52525b; }
.terminal-body { padding: 1.2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.8; overflow-x: auto; }
.t-prompt { color: #22c55e; font-weight: 600; }
.t-system { color: #a78bfa; }
.t-step { color: #fbbf24; }
.t-dim { color: #52525b; }
.t-success { color: #22c55e; font-weight: 600; }

/* === Sections === */
.section { padding: 5rem 0; }
.section-dark { background: #0f0f12; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #fff; text-align: center; margin-bottom: 0.8rem; }
.section-sub { text-align: center; color: #71717a; font-size: 1rem; margin-bottom: 3rem; }

/* === Grid === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* === Cards === */
.card { background: #18181b; border: 1px solid #27272a; border-radius: 14px; padding: 2rem; transition: border-color 0.2s; }
.card:hover { border-color: #3f3f46; }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 0.6rem; }
.card p { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 1rem; }
.card-solution { font-size: 0.85rem; color: #a78bfa; padding-top: 0.8rem; border-top: 1px solid #27272a; }

/* === Skill Cards === */
.skill-group { margin-bottom: 3rem; }
.skill-group-title { font-size: 1.2rem; color: #fff; margin-bottom: 1.2rem; padding-left: 0.5rem; border-left: 3px solid #a78bfa; }
.skill-card { background: #18181b; border: 1px solid #27272a; border-radius: 10px; padding: 1.2rem 1.4rem; }
.skill-card h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #fff; margin: 0.4rem 0; }
.skill-card p { color: #a1a1aa; font-size: 0.85rem; }
.skill-tag { font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 4px; text-transform: uppercase; }
.skill-tag.orchestrator { background: rgba(167,139,250,0.15); color: #a78bfa; }
.skill-tag.security { background: rgba(239,68,68,0.15); color: #f87171; }
.skill-tag.method { background: rgba(34,197,94,0.15); color: #4ade80; }
.skill-tag.tool { background: rgba(251,191,36,0.15); color: #fbbf24; }
.skill-more { color: #52525b; font-size: 0.85rem; margin-top: 1rem; text-align: center; }

/* === Tag Cloud === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; background: #18181b; border: 1px solid #27272a; padding: 0.35rem 0.8rem; border-radius: 6px; color: #a1a1aa; }

/* === Flow === */
.flow { display: flex; align-items: flex-start; gap: 0.5rem; }
.flow-step { flex: 1; text-align: center; padding: 1.5rem 1rem; }
.flow-num { width: 40px; height: 40px; border-radius: 50%; background: #a78bfa; color: #09090b; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.flow-step h3 { font-size: 1rem; color: #fff; margin-bottom: 0.5rem; }
.flow-step p { font-size: 0.85rem; color: #a1a1aa; }
.flow-arrow { color: #3f3f46; font-size: 1.5rem; padding-top: 2rem; }

/* === Install === */
.install-card { background: #18181b; border: 1px solid #27272a; border-radius: 14px; padding: 2rem; text-align: center; }
.install-num { width: 36px; height: 36px; border-radius: 50%; background: rgba(167,139,250,0.15); color: #a78bfa; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.install-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.5rem; }
.install-card p { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* === Footer === */
.footer { padding: 4rem 0 2rem; border-top: 1px solid #18181b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.footer-desc { color: #71717a; font-size: 0.85rem; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer li { margin-bottom: 0.4rem; }
.footer li a { color: #a1a1aa; font-size: 0.85rem; }
.footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #18181b; padding-top: 1.5rem; text-align: center; color: #52525b; font-size: 0.8rem; }

/* === Mobile (< 768px) === */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9,9,11,0.97); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; color: #e4e4e7; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .terminal-body { font-size: 0.7rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding: 0; }

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

/* === Tablet (768-1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
