/* ============================================================
   MetaFinOps – Global Styles
   ============================================================ */

:root {
  --bg:            #0a0b10;
  --bg-alt:        #0d0e14;
  --bg-section:    #080910;
  --card-bg:       #13151e;
  --card-border:   #1e2130;
  --accent:        #ff6b6b;
  --accent-soft:   rgba(255,107,107,0.15);
  --accent-glow:   rgba(255,107,107,0.5);
  --text:          #e8e8ec;
  --text-muted:    #8b8d9a;
  --heading:       #f4f4f6;
  --border:        #1a1c28;
  --radius:        16px;
  --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #07080c;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 28, 40, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo { flex-shrink: 0; }

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
}

.nav > a,
.nav-dropdown > .nav-dropdown-toggle {
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.nav > a:hover,
.nav-dropdown > .nav-dropdown-toggle:hover { color: var(--heading); }

.nav > a.active { color: var(--heading); font-weight: 500; }

/* ── Dropdown Menu ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-toggle .chevron {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 11, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 210px;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--heading);
  background: rgba(255,255,255,0.03);
}

.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 500;
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
}

.login-icon svg { width: 14px; height: 14px; }

.btn-outline-header {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--text-muted);
  border-radius: 30px;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-outline-header:hover {
  border-color: var(--heading);
  background: rgba(255,255,255,0.05);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  border: none;
  background: var(--accent);
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #0a0b10 0%, #0d1117 50%, #0a0b10 100%);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  line-height: 1.7;
}

/* ============================================================
   GOVERNANCE + FEATURES
   ============================================================ */
.governance {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.governance-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  min-height: 600px;
}

.governance-left {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
}

.governance-bg-image {
  position: absolute;
  inset: 0;
}

.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.governance-text-overlay {
  position: relative;
  z-index: 2;
}

.governance-text-overlay h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.governance-text-overlay p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 28rem;
}

.governance-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.feature-card {
  padding: 2rem 1.8rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:nth-child(even) { border-right: none; }
.feature-card:nth-child(n+3) { border-bottom: none; }

.feature-card:hover { background: rgba(255,255,255,0.02); }

.feature-icon {
  margin-bottom: 1rem;
}

.feature-icon svg { color: var(--accent); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-divider {
  width: 60px;
  height: 2px;
  background: var(--card-border);
  margin-top: 1.2rem;
}

/* ============================================================
   EMPOWERING / CTA SPLIT SECTIONS
   ============================================================ */
.empowering-section,
.cta-final {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 500px;
}

.cta-left {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-left-text {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem;
}

.cta-left-text h2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  max-width: 22rem;
}

.cta-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem;
}

.cta-right p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 24rem;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  position: relative;
  background: var(--bg-section);
  overflow: hidden;
  padding: 5rem 0;
}

.metrics-bg-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 0;
}

.metrics-inner {
  position: relative;
  z-index: 2;
}

.metrics-inner h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  text-align: center;
}

.metric-item {
  padding: 1.5rem 1rem;
}

.metric-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.metric-divider {
  width: 50px;
  height: 2px;
  background: var(--card-border);
  margin: 1rem auto 0;
}

/* ============================================================
   TRUSTED COLLABORATIONS
   ============================================================ */
.trusted {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.trusted-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
}

.trusted-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.partner-logo {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 90px;
}

.partner-logo:last-child { border-right: none; }

.partner-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

.partner-text.mikron {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.dot-accent { font-weight: 700; }
.dot-accent2 { color: var(--text-muted); }

.partner-text.pomegranate {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
}

.partner-text.garoosh {
  font-size: 1.3rem;
  font-weight: 700;
}

.partner-text.velocity {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.velo-icon {
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.footer-contact {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--heading); }

.footer-cta {
  margin-top: 1rem;
  display: inline-flex;
  width: fit-content;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 1rem;
}

.newsletter-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 0.8rem;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.btn-outline-submit {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  background: transparent;
  color: var(--heading);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline-submit:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--heading);
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-circle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   CHAT BUTTON
   ============================================================ */
.chat-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: transform var(--transition);
}

.chat-button:hover { transform: scale(1.05); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION PADDING
   ============================================================ */
.section {
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .governance-layout {
    grid-template-columns: 1fr;
  }

  .governance-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 350px;
  }

  .governance-right {
    grid-template-columns: 1fr 1fr;
  }

  .cta-layout {
    grid-template-columns: 1fr;
  }

  .cta-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 300px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1rem;
    z-index: 99;
  }

  .nav.active .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: auto;
  }

  .nav.active .nav-dropdown-toggle .chevron { display: none; }

  .hero { min-height: 70vh; }

  .hero-text h1 { font-size: 2rem; }

  .governance-right {
    grid-template-columns: 1fr;
  }

  .feature-card { border-right: none !important; }
  .feature-card:nth-child(n+3) { border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }

  .trusted-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trusted-logos {
    grid-template-columns: 1fr 1fr;
  }

  .partner-logo:nth-child(2) { border-right: none; }
  .partner-logo:nth-child(1),
  .partner-logo:nth-child(2) { border-bottom: 1px solid var(--border); }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-text h1 { font-size: 1.8rem; }

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

  .trusted-logos {
    grid-template-columns: 1fr;
  }

  .partner-logo { border-right: none !important; border-bottom: 1px solid var(--border); }
  .partner-logo:last-child { border-bottom: none; }
}
