/* MatBook — main.css */
/* Dark theme — accent: #0891b2 */

:root {
  --bg: #080e18;
  --surface: #0f1624;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --accent: #0891b2;
  --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);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px !important;
  line-height: 1.9 !important;
  margin: 0;
  padding: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #0ea5c9; }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 61px !important; font-weight: 700; line-height: 1.1; color: #ffffff; margin: 0 0 0.6em; }
h2 { font-size: 43px !important; font-weight: 700; line-height: 1.3; color: #ffffff; margin: 0 0 0.6em; }
h3 { font-size: 28px !important; font-weight: 600; line-height: 1.4; color: #ffffff; margin: 0 0 0.5em; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.5; color: #ffffff; margin: 0 0 0.4em; }
p, li { font-size: 18px; line-height: 1.9 !important; }
.label, .tag, .meta { font-size: 0.9rem; }

/* ===== FUNDING BAR ===== */
#funding-bar { color: #fff !important; }

/* ===== NAV ===== */
nav.site-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: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}

nav.site-nav .nav-logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

nav.site-nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: 0 !important;
}

nav.site-nav .nav-menu 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.06em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

nav.site-nav .nav-menu li a:hover,
nav.site-nav .nav-menu li.active a { color: #ffffff !important; }

nav.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55em 1.4em !important;
  border-radius: 6px;
  margin-left: 1em;
  height: auto !important;
  align-self: center;
  font-weight: 600;
}
nav.site-nav .nav-cta:hover { background: #0ea5c9; color: #fff !important; }

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  padding-top: calc(var(--funding-bar-h, 0px) + 4.5em);
}

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 2em; }

/* ===== SECTIONS ===== */
.section { padding: 6em 0; }
.section-sm { padding: 4em 0; }

.section-header { text-align: center; margin-bottom: 3em; }
.section-header p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 18px; }

.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8em;
}

/* ===== GRID ===== */
.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; }
.grid-2-left { display: grid; grid-template-columns: 3fr 2fr; gap: 4em; align-items: center; }

/* ===== HERO ===== */
#hero {
  min-height: 680px;
  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 0 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 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.hero-label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: block;
}

.hero-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  line-height: 1.75;
  margin-top: 1.2em;
  max-width: 480px;
}

.hero-right p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.9 !important;
  margin-bottom: 2.2em;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  align-items: flex-start;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #0ea5c9; 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.85em 2.2em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(8,145,178,0.4); }

.feature-card .icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(8,145,178,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}

.feature-card .icon-wrap svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.feature-card p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 0; }

/* ===== STATS ===== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3em 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 5em;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2em;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 40px !important; font-weight: 700; color: var(--accent); line-height: 1.1; display: block; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3em; }

/* ===== PLATFORM PAGE ===== */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  padding: 5em 0;
  border-bottom: 1px solid var(--border);
}
.platform-feature:last-child { border-bottom: none; }
.platform-feature.reverse { direction: rtl; }
.platform-feature.reverse > * { direction: ltr; }

.platform-feature-text h3 { font-size: 1.7rem; margin-bottom: 0.6em; }
.platform-feature-text p { color: var(--text-muted); line-height: 1.9 !important; margin-bottom: 1.2em; }
.platform-feature-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.platform-feature-text ul li {
  color: var(--text-muted);
  font-size: 16px;
  padding: 0.4em 0;
  padding-left: 1.6em;
  position: relative;
}
.platform-feature-text ul li::before {
  content: '→';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.platform-feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-feature-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== ABOUT PAGE ===== */
.about-hero-section {
  background: var(--bg);
  padding: 6em 0 4em;
}

.story-section {
  padding: 6em 0;
  background: var(--bg);
}

.story-inner {
  display: flex;
  gap: 5em;
  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;
  height: 400px;
}

.story-text { flex: 1; }
.story-text h2 { margin-bottom: 0.8em; }
.story-text p { color: var(--text-muted); line-height: 1.9 !important; margin-bottom: 1em; }

.mission-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6em 0;
}

.investors-section {
  padding: 6em 0;
  background: var(--bg);
}

.investor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em;
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
}

.investor-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.investor-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.investor-meta strong { color: var(--text); display: block; font-size: 18px; }

/* ===== TEAM PAGE ===== */
.team-section {
  padding: 6em 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  text-align: center;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: rgba(8,145,178,0.4); }

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.2em;
  border: 3px solid var(--border);
}

.team-card h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.team-card .team-title {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 1em;
  display: block;
}
.team-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 6em 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5em; margin-top: 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-info a { color: var(--accent); }

.contact-message h3 { margin-bottom: 0.8em; }
.contact-message p { color: var(--text-muted); line-height: 1.9 !important; margin-bottom: 1.5em; }

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  background-image: url('../images/about-hero.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 5em 0 4em;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.page-hero h1 { font-size: 3rem; margin-bottom: 0.5em; }
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; }

/* ===== BLOG INDEX ===== */
.blog-section { padding: 6em 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  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(8,145,178,0.4); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 1.6em; }
.blog-card-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.7em; }
.blog-card-body h3 { font-size: 18px; margin-bottom: 0.5em; }
.blog-card-body p { color: var(--text-muted); font-size: 15px; 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: 1100px;
  margin: 0 auto;
  padding: 3.5em 2em;
  gap: 3em;
}

.footer-brand h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.footer-brand p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin: 0 0 0.5em; }
.footer-brand .copyright { font-size: 0.82rem; color: var(--text-muted); }

#footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1em; }

.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.92rem; 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: 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;
}

/* ===== UTILITY ===== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  nav.site-nav .nav-menu { display: none !important; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-2-left { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 3em; }
  .platform-feature, .platform-feature.reverse { grid-template-columns: 1fr; direction: ltr; }
  .story-inner { flex-direction: column; gap: 2em; }
  .story-img { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 2em; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; gap: 2em; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 16px; }
  .hero-inner { padding: 0 1.2em; }
  .section { padding: 4em 0; }
  .container { padding: 0 1.2em; }
  .stats-inner { gap: 2.5em; }
}
