/* Key AI Ventures - main.css */
/* ================================================
   CSS Variables & Reset
   ================================================ */
:root {
  --accent:       #f39c12;
  --accent-dark:  #d68910;
  --bg:           #0d0f18;
  --bg-2:         #13161f;
  --bg-3:         #1a1d2e;
  --surface:      #1e2235;
  --surface-2:    #252840;
  --text:         #e8eaf0;
  --text-muted:   #94a3b8;
  --border:       rgba(255,255,255,0.08);
  --radius:       8px;
  --nav-height:   72px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Open Sans", sans-serif;
  font-size: 18px !important;
  line-height: 1.85;
  color: var(--text) !important;
  background-color: var(--bg) !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; text-decoration: none; }

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: 19px !important; font-weight: 600; color: #fff; }
p  { margin-bottom: 1.2rem; }
ul { padding-left: 1.5rem; }

/* ================================================
   Layout
   ================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { color: #fff; margin-bottom: 1rem; }
.section-subtitle {
  font-size: 17px !important;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Dark / alt sections */
.section-dark    { background-color: var(--bg-2); }
.section-alt     { background-color: var(--bg-3); }
.section-surface { background-color: var(--surface); }

/* ================================================
   Page-top padding for non-index pages (R-LAYOUT)
   ================================================ */
.page-top { padding-top: var(--nav-height, 72px); }

/* ================================================
   Funding Bar — index.html ONLY (R-FUNDING-BAR1)
   ================================================ */
#funding-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--accent-dark);
  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: 1rem;
  line-height: 1;
  padding: 0;
}
#funding-bar a.fb-link { text-decoration: underline; }

/* ================================================
   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;
  transition: top 0.3s ease;
}
#site-nav .nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-brand img { width: 32px; height: 32px; display: inline-block; }
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}
.nav-links li a {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 1.0rem;
  line-height: var(--nav-height);
  display: block;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li.active a { color: #fff; }
.nav-links li.active a { border-bottom: 2px solid var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-left: 0.5rem;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; border-bottom: none !important; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px !important;
  cursor: pointer;
  padding: 0.25rem;
}
@media (max-width: 900px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    line-height: 1.5;
    padding: 0.75rem 5%;
    display: block;
  }
  .nav-links li.active a { border-bottom: none; border-left: 3px solid var(--accent); }
  .nav-cta { margin-left: 5%; margin-top: 0.5rem; margin-bottom: 0.5rem; display: inline-block; line-height: 1.5 !important; }
}

/* ================================================
   Page Hero (inner pages)
   ================================================ */
.page-hero {
  background-color: var(--bg-2);
  background-image: linear-gradient(rgba(0,0,0,0.58),rgba(0,0,0,0.58)), url("../images/about-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 43px !important; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.82); margin-bottom: 0; }

/* ================================================
   Hero Section (homepage)
   ================================================ */
#hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background-color: rgba(10,15,40,0.35);
  background-image:
    linear-gradient(rgba(0,0,0,0.55),rgba(0,0,0,0.55)),
    url("../images/hero-main.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  position: relative;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 0;
  pointer-events: none;
}
#hero > * { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: 18px !important;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.75;
}
.btn-primary-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px !important;
  transition: background 0.2s, transform 0.15s;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.btn-primary-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline-cta {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 16px !important;
  transition: border-color 0.2s;
  margin-bottom: 0.5rem;
}
.btn-outline-cta:hover { border-color: #fff; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat .stat-num {
  font-size: 32px !important;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 14px !important;
  color: rgba(255,255,255,0.70);
  margin-top: 0.25rem;
}

/* ================================================
   Cards
   ================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: var(--accent);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(243,156,18,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 21px !important;
}
.card h3 { margin-bottom: 0.75rem; }
.card p  { color: var(--text-muted); margin-bottom: 0; line-height: 1.7; }

/* ================================================
   Portfolio Cards
   ================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  border-color: var(--accent);
}
.portfolio-amount {
  font-size: 26px !important;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.portfolio-company { font-size: 18px !important; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.portfolio-desc { color: var(--text-muted); font-size: 15px !important; margin-bottom: 1rem; line-height: 1.65; }
.portfolio-stage {
  display: inline-block;
  background: rgba(243,156,18,0.12);
  color: var(--accent);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border-radius: 4px;
}

/* ================================================
   Team Cards (VC rounded-rect — R-IMG2)
   ================================================ */
.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: 10px;
  padding: 2em 1.75em;
  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.35);
}
.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 { font-size: 18px !important; margin-bottom: 0.25rem; color: #fff; }
.team-role {
  font-size: 14px !important;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.team-bio { color: var(--text-muted); font-size: 15px !important; line-height: 1.7; margin-bottom: 0; }

/* ================================================
   Stats Bar
   ================================================ */
.stats-bar { background: var(--surface); padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-num { font-size: 38px !important; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-item .stat-label { font-size: 14px !important; color: var(--text-muted); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ================================================
   CTA Section
   ================================================ */
.cta-section { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); padding: 5rem 0; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p  { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2rem; }
.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark) !important;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px !important;
  transition: background 0.2s;
}
.btn-white:hover { background: #f0f0f0; }

/* ================================================
   Spotlight / Story Section (about page — R-ABOUT4)
   ================================================ */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 5%;
}
.spotlight-section h2 { margin-bottom: 1rem; }
.spotlight-section p  { color: var(--text-muted); }
.story-img { width: 100%; overflow: hidden; border-radius: var(--radius); }
.story-img img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 768px) { .spotlight-section { grid-template-columns: 1fr; } }

/* ================================================
   Insights Shell
   ================================================ */
.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: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.insight-card-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.insight-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.3s;
}
.insight-card:hover .insight-card-thumb img { transform: scale(1.04); }
.insight-card-body { padding: 1.5rem; }
.insight-card-body .tag { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
.insight-card-body h3 { font-size: 17px !important; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.insight-card-body p  { font-size: 14px !important; color: var(--text-muted); margin-bottom: 0.75rem; }
.insight-card-body .read-link { font-size: 14px !important; color: var(--accent); font-weight: 600; }

/* ================================================
   Contact Form
   ================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.75rem; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(243,156,18,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px !important; flex-shrink: 0;
}
.contact-info-text h4 { color: #fff; margin-bottom: 0.25rem; font-size: 16px !important; }
.contact-info-text p  { color: var(--text-muted); margin-bottom: 0; font-size: 15px !important; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 15px !important;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  font-size: 16px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent-dark); }

/* ================================================
   Footer (R-FOOTER1)
   ================================================ */
#footer {
  background-color: var(--bg-2);
  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;
  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;
}
@media (max-width: 768px) { #footer .inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { #footer .inner { grid-template-columns: 1fr; padding: 0 1em; } }

/* ================================================
   Cookie Banner
   ================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 5%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2000;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: 14px !important; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
#cookie-accept {
  background: var(--accent);
  color: #fff; border: none;
  border-radius: 4px; padding: 0.6em 1.6em;
  font-size: 14px !important; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.6em 1.6em; font-size: 14px !important; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s;
}
#cookie-decline:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ================================================
   Investors section
   ================================================ */
.investor-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 2rem;
  background: var(--surface);
}
.investor-badge .vc-name { font-size: 18px !important; font-weight: 700; color: #fff; }
.investor-badge .vc-desc { font-size: 14px !important; color: var(--text-muted); margin: 0; }

/* ================================================
   Image overflow protection (R-IMG-OVERFLOW1)
   ================================================ */
.feature-img-wrap {
  width: 100%; max-width: 100%; overflow: hidden;
  border-radius: var(--radius, 8px); display: block;
}
.feature-img-wrap img {
  width: 100%; max-width: 100%; height: auto;
  display: block; aspect-ratio: 16 / 9; object-fit: cover;
}

/* ================================================
   Misc utility
   ================================================ */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 768px) {
  h1 { font-size: 42px !important; }
  h2 { font-size: 32px !important; }
  h3 { font-size: 24px !important; }
  .section { padding: 60px 0; }
  .hero-stats { gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  h1 { font-size: 36px !important; }
  .hero-stats { gap: 1rem; }
}
