/* =============================================================
   main.css — Latentforce — AI Inference Infrastructure
   ============================================================= */

/* --- CSS Variables --- */
:root {
  --bg: #080612;
  --surface: #100e1e;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --accent: #8b5cf6;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 20px !important !important;
  line-height: 1.9 !important !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography Scale --- */
h1 { font-size: 61px !important !important; font-weight: 700 !important; line-height: 1.1 !important; color: #ffffff !important; margin-bottom: 0.5em; }
h2 { font-size: 43px !important !important; font-weight: 700 !important; line-height: 1.3 !important; color: #ffffff !important; margin-bottom: 0.5em; }
h3 { font-size: 28px !important !important; font-weight: 600 !important; line-height: 1.4 !important; color: #ffffff !important; margin-bottom: 0.4em; }
h4 { font-size: 18px !important; font-weight: 600 !important; line-height: 1.5 !important; color: #ffffff !important; }
p { color: var(--text); font-size: 18px; line-height: 1.9 !important; margin-bottom: 1em; }
li { font-size: 18px; line-height: 1.9 !important; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a78bfa; }
img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* --- Layout Utilities --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 2em; }
.section-pad { padding: 6em 0; }
.section-header { text-align: center; margin-bottom: 3.5em; }
.section-header p { color: var(--text-muted); max-width: 640px; margin: 1em auto 0; font-size: 18px; }
.section-header h2 { margin-bottom: 0.3em; }

.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; }

/* --- Funding Bar --- */
#funding-bar { color: #fff !important; }

/* --- Nav --- */
#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: 4.5em !important;
  z-index: 9999 !important;
  background-color: rgba(8,6,18,0.97) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}
#nav #logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  position: static !important;
  top: auto !important;
  text-align: left !important;
}
#nav #logo h1 { margin: 0 !important; font-size: 1em !important; }
#nav > ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}
#nav > ul > li > a {
  display: flex !important;
  align-items: center !important;
  height: 4.5em !important;
  padding: 0 1.2em !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 15px !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
#nav > ul > li > a:hover,
#nav > ul > li.active > a { color: #ffffff !important; }
#nav > ul > li.active > a { color: var(--accent) !important; }

#page-wrapper { padding-top: calc(var(--nav-height) + var(--funding-bar-h, 0px)) !important; }

/* --- Template nav override --- */
.navbar { display: none !important; }
.preloader { display: none !important; }

/* --- Buttons --- */
.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.85em 2.2em !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: background 0.2s !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
}
.btn-primary:hover { background: #7c3aed !important; color: #fff !important; }
.btn-outline {
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 0.85em 2.2em !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: border-color 0.2s, color 0.2s !important;
}
.btn-outline:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* --- Chip / Label --- */
.chip {
  display: inline-block;
  background: rgba(139,92,246,0.12);
  color: var(--accent);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 2em;
  padding: 0.3em 1em;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.2em;
}
.label-accent {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: block;
}

/* --- Hero Section --- */
#hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 8em 4em 6em;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
#hero > * { position: relative; z-index: 1; }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left h1 { color: #ffffff; margin-bottom: 0.6em; }
.hero-left h1 span { color: var(--accent); }
.hero-tagline { color: rgba(255,255,255,0.65) !important; font-size: 18px !important; line-height: 1.7 !important; max-width: 500px; margin-top: 0; }
.hero-right { }
.hero-desc { color: rgba(255,255,255,0.72) !important; font-size: 16px !important; line-height: 1.85 !important; margin-bottom: 2.5em; }
.hero-ctas { display: flex; flex-direction: column; gap: 1em; align-items: flex-start; }

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 4em 0;
}
.stat-item {
  text-align: center;
  padding: 2em 1em;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 38px !important; font-weight: 700 !important; color: var(--accent) !important; line-height: 1.1 !important; display: block; }
.stat-label { font-size: 14px !important; color: var(--text-muted) !important; margin-top: 0.3em; display: block; }

/* --- Feature Cards (home + platform) --- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2em; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.feature-card .icon {
  width: 52px; height: 52px;
  background: rgba(139,92,246,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: 28px !important; margin-bottom: 0.5em; color: #fff; }
.feature-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; margin: 0; }

/* --- Platform Feature Rows --- */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 5em;
  padding: 0 2em;
}
.feature-section.reverse { }
.feature-text h3 { font-size: 28px !important; margin-bottom: 0.6em; }
.feature-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }
.feature-text .feature-list { list-style: none; padding: 0; margin: 1.5em 0 0; }
.feature-text .feature-list li { color: var(--text-muted); font-size: 16px; padding: 0.35em 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.6em; }
.feature-text .feature-list li::before { content: '›'; color: var(--accent); font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img { width: 100%; height: 320px; object-fit: cover; display: block; }
.feature-img-placeholder {
  width: 100%;
  height: 320px;
  background: rgba(139,92,246,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139,92,246,0.3);
  font-size: 3rem;
}

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2em; }
.step { text-align: center; padding: 2em; }
.step-num {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; color: #fff;
  margin: 0 auto 1.2em;
}
.step h3 { font-size: 28px !important; margin-bottom: 0.4em; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin: 0; }

/* --- Testimonial --- */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2em;
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin: 0 0 1.2em;
  font-style: italic;
}
.testimonial-card cite { font-size: 14px; color: var(--text-muted); font-style: normal; display: block; }
.testimonial-card strong { color: rgba(255,255,255,0.9); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.03));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius);
  padding: 5em 4em;
  text-align: center;
  margin: 4em 0;
}
.cta-section h2 { margin-bottom: 0.4em; }
.cta-section p { color: var(--text-muted); max-width: 540px; margin: 0 auto 2.5em; font-size: 18px; }
.cta-buttons { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* --- Page Hero (non-home pages) --- */
.page-hero {
  padding: 8em 0 5em;
  text-align: center;
  background-image: url('../images/about-hero.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .chip { margin-bottom: 1.5em; }
.page-hero h1 { margin-bottom: 0.5em; }
.page-hero p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 18px; line-height: 1.8; }

/* --- About Story --- */
.spotlight-section { padding: 5em 0; }
.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; min-height: 300px; background: var(--surface); }
.story-img-placeholder {
  width: 100%;
  height: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139,92,246,0.25);
  font-size: 4rem;
}
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 0.6em; }
.story-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }

/* --- Investors --- */
.investors-section { padding: 4em 0; }
.investor-badges { display: flex; gap: 1.5em; flex-wrap: wrap; justify-content: center; margin-top: 2em; }
.investor-badge {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 8px;
  padding: 0.8em 2.2em;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 500;
}
.funding-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 3em;
  max-width: 560px;
  margin: 2.5em auto 0;
  text-align: center;
}
.funding-detail .amount { font-size: 45px !important; font-weight: 700 !important; color: var(--accent) !important; display: block; line-height: 1.1; }
.funding-detail .round { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3em; }

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 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;
  margin-bottom: 1.2em;
  border: 3px solid rgba(139,92,246,0.3);
}
.team-card h3 { font-size: 28px !important; margin-bottom: 0.2em; }
.team-card .title { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.8em; display: block; font-weight: 500; }
.team-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; margin: 0; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info h3 { color: var(--accent) !important; font-size: 28px !important; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5em; margin-top: 2.2em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin: 0; }
.contact-message h3 { font-size: 28px !important !important; margin-bottom: 0.6em; }
.contact-message p { color: var(--text-muted); margin-bottom: 1.8em; font-size: 1.05rem; }

/* --- Blog shell --- */
.blog-shell {
  text-align: center;
  padding: 8em 2em;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.blog-shell h2 { margin-bottom: 0.5em; }
.blog-shell p { color: var(--text-muted); max-width: 480px; }

/* --- Footer --- */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
.footer-brand h3 { color: #fff !important; font-size: 28px !important; margin-bottom: 0.5em; }
.footer-brand p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin: 0; }
.footer-brand .copy { font-size: 0.82em; color: var(--text-muted); margin-top: 1.5em; display: block; }
#footer h4 { color: rgba(255,255,255,0.5) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.2em; margin-top: 0; }
.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.9em; }
.footer-nav a:hover { color: var(--text); }

/* --- 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;
}

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 4em 0; }

/* --- Responsive --- */
@media screen and (max-width: 980px) {
  #nav > ul { display: none !important; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5em; }
  .feature-section { grid-template-columns: 1fr; gap: 2.5em; }
  .feature-section.reverse { }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  #footer .inner { grid-template-columns: 1fr; padding: 2.5em; }
  h1 { font-size: 61px !important; }
  h2 { font-size: 43px !important; }
  body { font-size: 16px !important; }
  .cta-section { padding: 2.5em 1.5em; }
  #hero { padding: 5em 2em 4em; }
  .page-hero { padding: 6em 2em 4em; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* latentforte page-hero text fix */
.page-hero h1, .page-hero h2, .page-hero p,
.page-hero .chip, .page-hero span {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
