/* Corvena AI — main.css */
/* ===================================================
   CSS VARIABLES — DARK THEME
   =================================================== */
:root {
  --bg: #0a0a10;
  --surface: #12131f;
  --surface2: #1a1b2e;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --accent: #f97316;
  --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; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

ul { list-style: none; padding: 0; margin: 0; }

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; color: #ffffff; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; color: #ffffff; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: #ffffff; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: #ffffff; }
p, li { font-size: 1.1rem; line-height: 1.9; }
.label, .tag, .meta { font-size: 0.9rem; }

/* ===================================================
   LAYOUT
   =================================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.section { padding: 6em 2em; }
.section--alt { background: var(--surface); }

.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; }

.section-header { text-align: center; margin-bottom: 4em; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 1em auto 0; font-size: 1.1rem; }

/* ===================================================
   FUNDING BAR
   =================================================== */
#funding-bar { color: #fff !important; }

/* ===================================================
   NAV
   =================================================== */
#site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2.5em;
  position: fixed;
  top: var(--funding-bar-h, 0px);
  left: 0;
  right: 0;
  width: 100%;
  min-height: 4.5em;
  z-index: 9999;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  transition: top 0.3s ease;
}

.site-logo { flex-shrink: 0; display: flex; align-items: center; }

.nav-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: 4.5em;
  padding: 0 1.2em;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current a { color: #ffffff; }

.nav-menu li.current a { color: var(--accent); }

/* ===================================================
   PAGE WRAPPER
   =================================================== */
#page-wrapper { padding-top: 4.5em; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; color: #fff; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 0.9em 2.2em;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===================================================
   HERO
   =================================================== */
#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: 6em;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
  display: block;
}

.hero-left h1 { margin-bottom: 1em; }

.hero-left .hero-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-right p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2.5em;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}

/* ===================================================
   FEATURE CARDS
   =================================================== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2em;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(249,115,22,0.35); }

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(249,115,22,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }

.feature-card h3 { margin-bottom: 0.6em; font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin: 0; }

/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3em 2em;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===================================================
   ABOUT PAGE
   =================================================== */
.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 8em 4em 5em;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/about-hero.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .hero-label { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1em; display: block; }

.spotlight-section { padding: 6em 2em; }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 1em; }
.story-text p { color: var(--text-muted); margin-bottom: 1em; }

.investors-section { padding: 5em 2em; background: var(--surface); }
.investors-section .container { text-align: center; }
.vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.2em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8em 3em;
  margin-top: 2em;
}
.vc-badge .vc-icon {
  width: 52px; height: 52px;
  background: rgba(249,115,22,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.vc-badge .vc-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; }
.vc-badge .vc-info h4 { font-size: 1.1rem; margin-bottom: 0.2em; }
.vc-badge .vc-info p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===================================================
   TEAM PAGE
   =================================================== */
.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; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em 2em; }
.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(249,115,22,0.3);
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.team-card .title { color: var(--accent); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1em; }
.team-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.8; }

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h3 { font-size: 1.1rem; margin-bottom: 0.5em; color: var(--accent); }
.contact-info p { color: var(--text-muted); margin-bottom: 1.8em; font-size: 1rem; line-height: 1.8; }
.contact-info br + br { display: none; }
.contact-message h3 { font-size: 1.4rem; margin-bottom: 1em; }
.contact-message p { color: var(--text-muted); margin-bottom: 1.8em; font-size: 1rem; }

/* ===================================================
   PLATFORM PAGE
   =================================================== */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 5em;
  padding: 0 2em;
}
.platform-feature--rev { direction: rtl; }
.platform-feature--rev > * { direction: ltr; }
.platform-feature__text h3 { font-size: 1.8rem; margin-bottom: 0.8em; }
.platform-feature__text p { color: var(--text-muted); font-size: 1rem; line-height: 1.9; margin-bottom: 1.2em; }
.platform-feature__visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.platform-feature__visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.feature-list { list-style: none; padding: 0; margin-top: 1em; }
.feature-list li {
  padding: 0.4em 0;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ===================================================
   BLOG PAGE
   =================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: rgba(249,115,22,0.3); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.8em; }
.blog-card-meta { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8em; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.blog-card h3 a { color: #ffffff; text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ===================================================
   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: 1.2rem; margin-bottom: 1em; }
#footer h4 { font-size: 1rem; margin-bottom: 1em; color: rgba(255,255,255,0.9); letter-spacing: 0.05em; }
#footer .brand-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.2em; }
#footer .copyright { font-size: 0.82em; color: var(--text-muted); }

.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; transition: color 0.2s; }
.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: 1rem; color: var(--text); }
.cookie-text p {
  font-size: 0.88rem;
  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: 0.88rem;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 980px) {
  .nav-menu { display: none !important; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 16px; }

  #hero { padding: 6em 2em 4em; }
  .hero-inner { grid-template-columns: 1fr; gap: 3em; }

  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }

  .platform-feature { grid-template-columns: 1fr; gap: 3em; }
  .platform-feature--rev { direction: ltr; }

  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }

  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
}
