/* main.css — Ciphero Ventures — cipheroai.org */
:root {
  --accent: #9b59b6;
  --accent-dark: #7d3c98;
  --bg: #0d0f18;
  --surface: #161925;
  --surface2: #1e2235;
  --text: #e8eaf0;
  --text-muted: #8a91a8;
  --border: rgba(255,255,255,0.08);
  --nav-height: 72px;
  --radius: 8px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 18px !important;
  line-height: 1.9;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-dark); }

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: #fff; }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; color: #fff; }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; color: #fff; }
h4 { font-size: 18px !important; font-weight: 600; line-height: 1.4; color: #fff; }
p { line-height: 1.85; margin-bottom: 1.2rem; color: rgba(232,234,240,0.88); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* Dark theme wrappers */
.tm-main-content { background-color: var(--bg) !important; }

/* Container */
.container-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Funding Bar ── */
#funding-bar {
  display: none;
  position: fixed;
  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: 1rem;
  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;
  font-size: 18px;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
  padding: 0 4px;
}
#funding-bar a.fb-link {
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: 600;
}

/* ── Navbar ── */
.tm-top-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(13,15,24,0.97);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}
.tm-top-bar.active { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.tm-top-bar > .container { display: flex; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.tm-top-bar-bg { height: var(--nav-height); }

.navbar { width: 100%; padding: 0; display: flex; align-items: center; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px !important;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
}
.navbar-brand img { height: 26px; width: auto; }

.navbar-collapse { flex: 1; }

.navbar-nav { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-direction: row; }
.navbar-nav .nav-item { border: none; background: transparent; padding: 0; }
.navbar-nav .nav-link {
  font-size: 15px !important;
  color: rgba(232,234,240,0.82) !important;
  padding: 10px 20px !important;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: block;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active > .nav-link {
  color: var(--accent) !important;
  background: transparent !important;
}

.navbar-toggler {
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: auto;
  display: none;
}
.navbar-toggler-icon {
  display: block;
  width: 22px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%239b59b6' stroke-width='2' stroke-linecap='round' d='M1 1h20M1 9h20M1 17h20'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Page Top Padding */
.page-top { padding-top: var(--nav-height); }

/* ── Hero Section ── */
.hero-section {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(10,5,30,0.5);
  background-blend-mode: multiply;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.hero-section > * { position: relative; z-index: 2; }
.hero-section h1 { color: #ffffff !important; margin-bottom: 1.2rem; }
.hero-section p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto 2rem; font-size: 18px !important; }
.hero-badge {
  display: inline-block;
  background: rgba(155,89,182,0.25);
  border: 1px solid rgba(155,89,182,0.5);
  color: #c39bd3;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-content { padding: 3rem 2rem; }

/* Page Hero */
.page-hero {
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: #ffffff !important; font-size: 43px !important; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ── Section Layout ── */
.section { padding: 80px 0; }
.section--bg { background-color: var(--surface); }
.section--bg2 { background-color: var(--surface2); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 { color: #ffffff !important; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.75; font-size: 16px !important; }

/* ── Buttons ── */
.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: var(--radius);
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid var(--accent);
  line-height: 1.4;
}
.btn-primary:hover { background-color: var(--accent-dark) !important; border-color: var(--accent-dark) !important; transform: translateY(-1px); color: #ffffff !important; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  border-radius: var(--radius);
  font-size: 15px !important;
  font-weight: 600;
  padding: 11px 28px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #ffffff !important; }
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-size: 15px !important;
  font-weight: 600;
  padding: 11px 28px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #ffffff !important; }

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.75rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.card h3 { color: #ffffff !important; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-icon { font-size: 35px !important; color: var(--accent); margin-bottom: 1.25rem; display: block; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.stat-number {
  font-size: 40px !important;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 14px !important;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Team Cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.75rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.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-card h3 { color: #ffffff !important; margin-bottom: 0.3rem; font-size: 20px !important; }
.team-role {
  color: var(--accent);
  font-size: 14px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  display: block;
}
.team-bio { color: var(--text-muted); font-size: 15px !important; line-height: 1.7; margin-bottom: 0; }
.initial-avatar {
  width: 120px; height: 120px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 32px !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.75rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.portfolio-card h3 { color: #ffffff !important; margin-bottom: 0.5rem; font-size: 21px !important; }
.portfolio-amount {
  font-size: 28px !important;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.portfolio-stage {
  display: inline-block;
  background: rgba(155,89,182,0.2);
  border: 1px solid rgba(155,89,182,0.4);
  color: #c39bd3;
  font-size: 12px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 1rem;
}
.portfolio-desc { color: var(--text-muted); font-size: 15px !important; line-height: 1.65; margin-bottom: 0; }
.portfolio-sector {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px !important;
  padding: 2px 9px;
  border-radius: 40px;
  margin-top: 0.75rem;
}

/* ── Insights ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1.75rem;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.insight-card .card-thumb { width: 100%; overflow: hidden; }
.insight-card .card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 16/9;
}
.insight-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.insight-card h3 { color: #ffffff !important; font-size: 18px !important; line-height: 1.4; margin-bottom: 0.6rem; }
.insight-card p { color: var(--text-muted); font-size: 14px !important; flex: 1; }
.card-meta { font-size: 13px !important; color: var(--text-muted); margin-bottom: 0.75rem; }
.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(--accent-dark); }

/* ── About Spotlight ── */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.story-text h2 { color: #ffffff !important; }
.story-text p { color: rgba(232,234,240,0.88); }
.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;
  height: auto;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form .form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px !important;
  padding: 12px 16px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(155,89,182,0.15);
}
.contact-form textarea.form-control { resize: vertical; min-height: 140px; }
.contact-info h3 { color: #ffffff !important; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-muted); }
.ci-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.ci-icon { color: var(--accent); font-size: 18px !important; margin-top: 4px; flex-shrink: 0; }
.ci-text { color: var(--text-muted); }

/* ── CTA Strip ── */
.cta-strip {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-strip h2 { color: #ffffff !important; margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; font-size: 16px !important; }

/* ── Footer ── */
#footer {
  background-color: #0a0b14;
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
  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: 18px !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-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: 1200;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: none;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { color: var(--text); font-size: 14px !important; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
#cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}

/* ── Legal ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.legal-content h1 { color: #ffffff !important; margin-bottom: 0.5rem; }
.legal-content h2 { color: #ffffff !important; font-size: 22px !important; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content p, .legal-content li { color: rgba(232,234,240,0.88); line-height: 1.8; }
.legal-date { color: var(--text-muted); font-size: 14px !important; margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .tm-top-bar { height: 65px; }
  .tm-top-bar-bg { height: 65px; }
  .page-top { padding-top: 65px; }
  .navbar-toggler { display: block; }
  .navbar-collapse {
    display: none;
    position: absolute;
    top: 65px; left: 0; right: 0;
    background: rgba(13,15,24,0.98);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 1rem 2rem;
  }
  .navbar-collapse.show { display: block; }
  .navbar-collapse .navbar-nav { flex-direction: column; margin: 0; }
  .navbar-nav .nav-link { padding: 12px 8px !important; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .spotlight-section { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  #footer .inner { grid-template-columns: 1fr 1fr; padding: 0 2rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 42px !important; }
  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }
  .section { padding: 56px 0; }
  .hero-section { min-height: 480px; }
  .cta-strip { padding: 48px 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 34px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  #footer .inner { grid-template-columns: 1fr; padding: 0 1rem; }
  .spotlight-section { padding: 2em 1em; }
}
