/* =============================================
   ByteAndBrain — AI × Web Hosting
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;800&display=swap');

/* --- Variables --- */
:root {
  --bg: #0a0c10;
  --bg2: #0f1218;
  --bg3: #161b24;
  --border: #1e2530;
  --accent: #00e5ff;
  --accent2: #7b61ff;
  --green: #00ff88;
  --text: #c9d4e0;
  --text-dim: #5a6a7e;
  --text-bright: #eef2f7;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

/* --- Header --- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.logo-byte { color: var(--text-bright); }
.logo-amp  { color: var(--accent); margin: 0 1px; }
.logo-brain{ color: var(--accent2); }
.logo-tag  { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 3px; }

nav { display: flex; gap: 2rem; }
nav a { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--accent); }

.header-line { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent); opacity: 0.4; }

/* --- Hero --- */
.hero {
  position: relative; max-width: 1100px; margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: flex; align-items: flex-start; gap: 3rem; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.hero-content { flex: 1; min-width: 0; }
.hero-eyebrow { font-size: 0.75rem; color: var(--green); letter-spacing: 0.1em; margin-bottom: 1.2rem; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--text-bright); line-height: 1.1; margin-bottom: 1.4rem; }
.highlight { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--text); font-size: 0.9rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.9; }

.cta-btn {
  display: inline-block; padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  border-radius: var(--radius); transition: background 0.2s, color 0.2s;
}
.cta-btn:hover { background: var(--accent); color: var(--bg); }

/* --- Terminal --- */
.hero-terminal {
  width: 340px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg2);
  box-shadow: 0 0 40px rgba(0,229,255,0.06);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 0.7rem; color: var(--text-dim); }
.terminal-body { padding: 1.2rem 1.4rem; font-size: 0.78rem; line-height: 2; }
.t-prompt { color: var(--green); margin-right: 6px; }
.t-cmd    { color: var(--accent); }
.t-out    { color: var(--text-dim); padding-left: 1rem; }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- Section Titles --- */
.section-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--text-bright); margin-bottom: 2rem; display: inline-block; }
.section-title::after { content: ''; display: block; height: 2px; width: 40px; background: var(--accent); margin-top: 6px; }

/* --- Topics --- */
.topics { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; border-top: 1px solid var(--border); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.topic-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.2s, transform 0.2s; }
.topic-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.topic-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.topic-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text-bright); margin-bottom: 0.5rem; }
.topic-card p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; }

/* --- Posts --- */
.posts { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; border-top: 1px solid var(--border); }
.post-list { display: flex; flex-direction: column; gap: 1.2rem; }
.post-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--accent2); }
.post-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: rgba(0,229,255,0.12); color: var(--accent); }
.tag.hosting { background: rgba(123,97,255,0.15); color: var(--accent2); }
.tag.edge    { background: rgba(0,255,136,0.1); color: var(--green); }
.date { font-size: 0.72rem; color: var(--text-dim); }
.post-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--text-bright); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 0.8rem; color: var(--text-dim); }

/* --- Footer --- */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text-bright); margin-bottom: 0.6rem; }
.footer-logo span { color: var(--accent); }
footer p { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.3rem; }
.footer-small { font-size: 0.68rem; margin-top: 0.8rem; opacity: 0.5; }

/* --- Responsive --- */
@media (max-width: 720px) {
  .hero { flex-direction: column; }
  .hero-terminal { width: 100%; }
  nav { gap: 1rem; }
}
