/* ============================================================
   Hive — Website Stylesheet
   ============================================================ */

:root {
  --honey:     #f5a623;
  --honey-dk:  #d4891a;
  --honey-lt:  #ffd166;
  --bg-dark:   #0d1117;
  --bg-card:   #161b22;
  --bg-card2:  #1f2937;
  --border:    #30363d;
  --text:      #e6edf3;
  --text-muted:#8b949e;
  --text-code: #c9d1d9;
  --accent:    #58a6ff;
  --green:     #3fb950;
  --red:       #f85149;
  --radius:    12px;
  --shadow:    0 8px 32px rgba(0,0,0,.45);
  --transition:0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: var(--honey); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--honey-lt); }
ul { padding-left: 1.5rem; }
li { color: var(--text-muted); margin: .35rem 0; }
strong { color: var(--text); }
code {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .85em;
  color: var(--honey-lt);
}
pre {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-code);
}
pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-tag {
  display: inline-block;
  background: rgba(245,166,35,.12);
  color: var(--honey);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 99px;
  padding: .25rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-intro { max-width: 640px; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand .hex { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--text-muted);
  padding: .4rem .7rem;
  border-radius: 6px;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-card2);
  color: var(--text);
}
.nav-cta {
  background: var(--honey);
  color: #0d1117 !important;
  padding: .4rem .9rem !important;
  border-radius: 8px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--honey-lt) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(245,166,35,.12), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.25);
  color: var(--honey);
  border-radius: 99px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--honey); }
.hero-desc { font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--honey);
  color: #0d1117;
}
.btn-primary:hover { background: var(--honey-lt); color: #0d1117; transform: translateY(-2px); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card2); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stat .lbl {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.window-bar {
  background: var(--bg-card2);
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #f85149; }
.dot-y { background: #ffd166; }
.dot-g { background: #3fb950; }
.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: .8rem;
  color: var(--text-muted);
}
.window-body { padding: 0; }
.window-body img { width: 100%; display: block; }

/* ── Badges row ─────────────────────────────────────────── */
.badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.badge .dot2 { width: 7px; height: 7px; border-radius: 50%; }

/* ── Features grid ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--honey);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 { color: var(--text); margin-bottom: .5rem; }

/* ── Architecture ──────────────────────────────────────── */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow-x: auto;
  margin: 2rem 0;
}
.arch-diagram pre {
  background: transparent;
  border: none;
  margin: 0;
  color: var(--honey-lt);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
}
.flow-step .step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(245,166,35,.2);
  line-height: 1;
  margin-bottom: .5rem;
}
.flow-step h4 { color: var(--text); margin-bottom: .4rem; }
.flow-step p { font-size: .85rem; }

/* ── Plugins ────────────────────────────────────────────── */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.plugin-card:hover { border-color: var(--honey); }
.plugin-card .tag {
  display: inline-block;
  background: rgba(245,166,35,.1);
  color: var(--honey);
  border-radius: 4px;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.plugin-features { margin-top: 1rem; }
.plugin-features li { font-size: .875rem; }

/* ── Screenshots ────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--honey);
}
.screenshot-card img { width: 100%; display: block; }
.screenshot-card .caption {
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Tech stack ─────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color var(--transition);
}
.tech-item:hover { border-color: var(--honey); }
.tech-item .icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.tech-item h4 { color: var(--text); font-size: .95rem; }
.tech-item p { font-size: .8rem; margin-top: .3rem; }

/* ── API section ─────────────────────────────────────────── */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.api-table th {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.api-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.api-table tr:hover td { background: var(--bg-card2); }
.method {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.method-get  { background: rgba(63,185,80,.15);  color: var(--green); }
.method-post { background: rgba(88,166,255,.15); color: var(--accent); }
.method-put  { background: rgba(245,166,35,.15); color: var(--honey); }
.method-del  { background: rgba(248,81,73,.15);  color: var(--red); }

/* ── Getting started timeline ─────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--honey);
  color: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  z-index: 1;
}
.step-content { padding-bottom: 2.5rem; flex: 1; }
.step-content h3 { margin-bottom: .5rem; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(245,166,35,.12), rgba(245,166,35,.04));
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  margin: 0 0 5rem;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .85rem; color: var(--text-muted); }

/* ── Misc helpers ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.text-honey { color: var(--honey); }
.text-muted { color: var(--text-muted); }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.align-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.page-hero p { max-width: 600px; margin: 1rem auto 0; font-size: 1.05rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .flow-steps { grid-template-columns: 1fr; }
}
