/* CueBox — main.css */

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --bg: #0c0a04;
  --surface: #161410;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --accent: #f59e0b;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* ─── Base Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px !important;
  line-height: 1.9 !important;
  margin: 0;
  padding: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* ─── Typography ────────────────────────────────────── */
h1 { font-size: 61px !important; font-weight: 700; line-height: 1.1; margin: 0 0 0.6em; color: #fff; }
h2 { font-size: 43px !important; font-weight: 700; line-height: 1.3; margin: 0 0 0.8em; color: #fff; }
h3 { font-size: 28px !important; font-weight: 600; line-height: 1.4; margin: 0 0 0.6em; color: #fff; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0 0 0.5em; color: #fff; }
p, li { font-size: 18px; line-height: 1.9 !important; }
.label, .tag, .meta { font-size: 0.9rem; }

/* ─── Funding Bar ───────────────────────────────────── */
#funding-bar { color: #fff !important; }

/* ─── Navigation ────────────────────────────────────── */
#site-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 2.5em !important;
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: var(--nav-height) !important;
  z-index: 9999 !important;
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}

#site-nav .nav-logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#site-nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: 0 !important;
}

#site-nav .nav-menu li a {
  display: flex !important;
  align-items: center !important;
  height: var(--nav-height) !important;
  padding: 0 1.2em !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 15px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

#site-nav .nav-menu li a:hover,
#site-nav .nav-menu li.current a { color: #ffffff !important; }

/* ─── Page Wrapper ──────────────────────────────────── */
#page-wrapper {
  padding-top: var(--nav-height);
}

/* ─── Layout Utilities ──────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.section { padding: 5em 0; }
.section-header { text-align: center; margin-bottom: 3em; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--text-muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }

/* ─── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85) !important;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ─── Favicon / Logo ────────────────────────────────── */
.site-logo { display: flex; align-items: center; }

/* ─── Hero Section ──────────────────────────────────── */
#hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 8em 4em 6em;
  position: relative;
  overflow: hidden;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
  z-index: 0;
}
#hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,10,4,0.72);
  z-index: 1;
}
#hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6em;
  align-items: center;
}

/* ─── About Banner ──────────────────────────────────── */
#about-banner {
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8em 4em 5em;
}
body.page-about #about-banner { background-image: url('assets/images/about-hero.jpg'); background-size: cover; background-position: center; }
#about-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,10,4,0.68);
  z-index: 0;
}
#about-banner > * { position: relative; z-index: 2; }

/* ─── Spotlight / Story ─────────────────────────────── */
.spotlight-section { padding: 5em 0; background: var(--surface); }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.story-text { flex: 1; }

/* ─── Feature Cards ─────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  font-size: 1.4rem;
  color: var(--accent);
}
.feature-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.5em; }
.feature-card p { color: var(--text-muted); font-size: 16px; }

/* ─── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 4em;
  padding: 3em 0;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 45px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-item .label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4em; }

/* ─── Team Cards ────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--border);
  margin-bottom: 1em;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.team-card .title { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.8em; }
.team-card p { color: var(--text-muted); font-size: 15px; }

/* ─── Blog Grid ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5em; }
.blog-card h3 { font-size: 18px; margin-bottom: 0.5em; }
.blog-card .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8em; }
.blog-card p { color: var(--text-muted); font-size: 15px; }

/* ─── Contact ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
}
.contact-info h3 { font-size: 18px; color: var(--accent); margin-bottom: 0.4em; margin-top: 1.8em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 16px; }
.contact-message { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em; }
.contact-message h3 { margin-bottom: 1em; }
.contact-message p { color: var(--text-muted); margin-bottom: 1.5em; }

/* ─── Platform Feature Rows ──────────────────────────── */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  padding: 4em 0;
  border-bottom: 1px solid var(--border);
}
.platform-feature:last-child { border-bottom: none; }
.platform-feature.reverse { direction: rtl; }
.platform-feature.reverse > * { direction: ltr; }
.platform-feature-img { border-radius: var(--radius); overflow: hidden; min-height: 320px; }
.platform-feature-img img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }
.platform-feature-text h3 { font-size: 28px !important; margin-bottom: 0.8em; }
.platform-feature-text p { color: var(--text-muted); }
.platform-feature-text ul { color: var(--text-muted); padding-left: 1.4em; }
.platform-feature-text ul li { margin-bottom: 0.5em; }

/* ─── How It Works ──────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  position: relative;
}
.step-num {
  font-size: 40px !important;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5em;
}
.step-card h4 { font-size: 18px; color: #fff; margin-bottom: 0.5em; }
.step-card p { color: var(--text-muted); font-size: 15px; }

/* ─── CTA Banner ────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4em;
  text-align: center;
  margin: 4em 0;
}
.cta-section h2 { margin-bottom: 0.5em; }
.cta-section p { color: var(--text-muted); margin-bottom: 2em; }

/* ─── Footer ────────────────────────────────────────── */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
#footer h3 { font-size: 18px; color: #fff; margin-bottom: 0.8em; }
#footer h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1em; }
#footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-brand-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1em; }

/* ─── Cookie Banner ─────────────────────────────────── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 16px; color: var(--text); }
.cookie-text p { font-size: 14px; color: var(--text-muted); margin: 0.4em 0 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 980px) {
  #site-nav .nav-menu { display: none !important; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .contact-grid, .platform-feature { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  body { font-size: 16px; }
  #hero { padding: 6em 2em 4em; }
  #hero .hero-inner { grid-template-columns: 1fr; gap: 3em; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  .platform-feature.reverse { direction: ltr; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .stats-bar { flex-direction: column; gap: 2em; }
  .cta-section { padding: 2.5em 1.5em; }
}
