/* ===================================================
   HyperFor Robotics Ventures — main.css
   Dark theme, accent #6c63ff
   =================================================== */

/* ── CSS Variables ─────────────────────────────── */
:root {
  --accent: #6c63ff;
  --accent-dark: #5a52e0;
  --bg: #0d0f18;
  --bg2: #13162a;
  --surface: #1a1d2e;
  --surface2: #20243a;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf0;
  --text-muted: #8892b0;
  --white: #ffffff;
  --radius: 10px;
  --nav-height: 68px;
  --font: 'Roboto', system-ui, sans-serif;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 18px !important;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: var(--white) !important; }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; color: var(--white) !important; }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; color: var(--white) !important; }
h4 { font-size: 20px; font-weight: 600; color: var(--white); }

p { line-height: 1.8; color: rgba(255,255,255,0.88); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }

hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ── Funding Bar ────────────────────────────────── */
#funding-bar {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background-color: var(--accent) !important;
  color: #ffffff !important;
  padding: 10px 5%;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 14px;
  font-weight: 500;
}
#funding-bar a, #funding-bar strong, #funding-bar span { color: #ffffff !important; }
#funding-bar button {
  color: rgba(255,255,255,0.85) !important;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  margin-left: 8px;
}
#funding-bar a.fb-link {
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: 600;
}

/* ── Navigation ─────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,15,24,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

#site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 5%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { width: 140px; height: auto; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0.5rem;
}
.nav-links li a {
  font-size: 15px !important;
  font-weight: 500;
  color: rgba(255,255,255,0.82) !important;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-links li a:hover,
.nav-links li.active a {
  color: #ffffff !important;
  background: rgba(108,99,255,0.18);
}
.nav-links li.active a { color: var(--accent) !important; }

.nav-cta {
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #ffffff !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Page top padding */
.page-top { padding-top: var(--nav-height) !important; }

/* ── Container ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Section Helpers ────────────────────────────── */
.section { padding: 90px 0; }
.section-dark { background-color: var(--bg); }
.section-alt { background-color: var(--surface); }
.section-alt2 { background-color: var(--bg2); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 14px;
}
.section-header h2 { margin: 0.4rem 0; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 17px !important;
  max-width: 620px;
  margin: 0.8rem auto 0;
  line-height: 1.7;
}

/* ── Hero ───────────────────────────────────────── */
#hero {
  background-color: rgba(10,15,40,0.35);
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: 80px 0;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
#hero > * { position: relative; z-index: 2; }

.hero-content { max-width: 700px; }
.hero-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-content h1 { color: #ffffff !important; margin: 0 0 1.2rem; }
.hero-content p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 18px !important;
  max-width: 580px;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px !important;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff !important; }
.btn-outline {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; background: rgba(108,99,255,0.08); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
  font-size: 32px !important;
  font-weight: 700;
  color: var(--accent) !important;
  line-height: 1;
}
.hero-stat-lbl { font-size: 13px !important; color: rgba(255,255,255,0.7); margin-top: 4px; letter-spacing: 0.04em; }

/* ── Page Hero (inner pages) ────────────────────── */
.page-hero {
  background-color: rgba(10,15,40,0.35);
  background-image: url('../images/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 80px 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  z-index: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: #ffffff !important; margin: 0 0 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.82) !important; margin: 0; font-size: 18px !important; }

/* ── Services/Features Grid ─────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border-color: rgba(108,99,255,0.4);
}
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(108,99,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 22px;
  color: var(--accent);
}
.feature-card h3 { margin: 0 0 0.8rem; color: var(--white) !important; font-size: 19px !important; }
.feature-card p { color: var(--text-muted); font-size: 15px !important; margin: 0; line-height: 1.7; }

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 40px !important;
  font-weight: 700;
  color: var(--accent) !important;
  line-height: 1;
  display: block;
}
.stat-lbl {
  color: var(--text-muted);
  font-size: 14px !important;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Spotlight / Two-col ─────────────────────────── */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}

/* ── Team Cards ──────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 1.8em;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.team-card img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2rem;
}
.team-role {
  color: var(--accent) !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.3rem 0 0.8rem;
}
.team-card .bio {
  color: var(--text-muted);
  font-size: 15px !important;
  line-height: 1.7;
  margin: 0;
}
.team-card h3 { font-size: 18px !important; margin: 0; color: var(--white) !important; }

/* Team card horizontal variant */
.team-card.team-card--h {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1.8em !important;
  padding: 1.8em 2em !important;
  text-align: left !important;
}
.team-card.team-card--h img {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  object-position: 50% 10% !important;
}
.team-card.team-card--h .team-info { flex: 1; min-width: 0; }
.team-card.team-card--h h3 { text-align: left !important; }
.team-card.team-card--h .team-role { text-align: left !important; }
.team-card.team-card--h p { text-align: left !important; }
.team-info p { color: var(--text-muted); font-size: 15px !important; line-height: 1.75; margin: 0 0 0.8rem; }

@media (max-width: 600px) {
  .team-card.team-card--h { flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .team-card.team-card--h h3, .team-card.team-card--h .team-role, .team-card.team-card--h p { text-align: center !important; }
}

/* ── Portfolio Grid ──────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.portfolio-company {
  font-size: 21px !important;
  font-weight: 700;
  color: var(--white) !important;
  margin: 0 0 0.4rem;
}
.portfolio-amount {
  font-size: 26px !important;
  font-weight: 700;
  color: var(--accent) !important;
  margin: 0.5rem 0;
}
.portfolio-stage {
  display: inline-block;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(108,99,255,0.18);
  color: var(--accent) !important;
  border: 1px solid rgba(108,99,255,0.4);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 1rem;
}
.portfolio-desc { color: var(--text-muted); font-size: 15px !important; line-height: 1.6; margin: 0; }

/* ── Insights / Blog Grid ────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.insight-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.insight-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.insight-date { font-size: 13px !important; color: var(--text-muted); margin-bottom: 0.6rem; }
.insight-card h3 { font-size: 17px !important; margin: 0 0 0.7rem; color: var(--white) !important; line-height: 1.4; }
.insight-card p { color: var(--text-muted); font-size: 15px !important; margin: 0 0 1rem; flex: 1; line-height: 1.6; }
.insight-card a.read-more { color: var(--accent); font-size: 14px !important; font-weight: 600; margin-top: auto; }
.insight-card a.read-more:hover { color: var(--white); }

/* ── CTA Section ─────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2, .cta-section h3, .cta-section p { color: #ffffff !important; }
.cta-section .btn-white {
  background: #ffffff;
  color: var(--accent) !important;
  border-color: #ffffff;
  font-weight: 700;
}
.cta-section .btn-white:hover {
  background: rgba(255,255,255,0.9);
}
.cta-section .btn-outline-white {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.7);
}
.cta-section .btn-outline-white:hover { background: rgba(255,255,255,0.12); }

/* ── Contact ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { font-size: 18px !important; margin: 0 0 0.4rem; }
.contact-info p { color: var(--text-muted); font-size: 15px !important; margin: 0; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(108,99,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px !important;
  padding: 0.8em 1em;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────── */
#footer {
  background-color: #0a0c14;
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
  text-align: left;
  width: 100%;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3em;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4em;
  align-items: start;
  box-sizing: border-box;
}
#footer h2 {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600;
  margin: 0 0 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#footer p {
  color: var(--text-muted);
  font-size: 16px !important;
  line-height: 1.7;
  margin: 0;
}
#footer .brand-desc { margin-top: 0.8rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5em; }
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px !important;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #ffffff; }
#footer .copyright {
  color: var(--text-muted);
  font-size: 15px !important;
  text-align: center;
  margin: 2.5em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  max-width: 1100px;
}

/* ── Cookie Banner ───────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#cookie-banner p { color: var(--text-muted); font-size: 14px !important; margin: 0; flex: 1; }
#cookie-banner p a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; }
#cookie-accept, .cookie-btn {
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn.decline, #cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
}
.cookie-btn.decline:hover, #cookie-decline:hover { border-color: var(--text-muted); }

/* ── Utility ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.accent { color: var(--accent) !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* Two col split */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Anchor / firm badge */
.anchor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  margin-top: 1.5rem;
}
.anchor-badge img { width: 28px; height: auto; }
.anchor-badge span { color: var(--text-muted); font-size: 14px !important; }

/* ── Legal pages ─────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.legal-content h1 { font-size: 38px !important; margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 24px !important; margin-top: 2.5rem; margin-bottom: 0.8rem; }
.legal-content p, .legal-content li { color: rgba(255,255,255,0.82); line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-date { color: var(--text-muted); font-size: 14px !important; margin-bottom: 2.5rem; }

/* ── Page Wrapper ────────────────────────────────── */
#page-wrapper, #wrapper, #main { background-color: var(--bg) !important; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 38px !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 22px !important; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg2); padding: 1rem 5%; border-bottom: 1px solid var(--border); gap: 0.3rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .two-col { grid-template-columns: 1fr; }
  .spotlight-section { grid-template-columns: 1fr; padding: 2em 1.5em; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  #footer .inner { grid-template-columns: 1fr 1fr; padding: 0 1.5rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  #footer .inner { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 36px !important; }
  .cookie-buttons { flex-direction: column; width: 100%; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* Article hero image */
.article-hero-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  overflow: hidden;
  border-radius: 8px;
  text-align: center;
}
.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}
