/* ============================================================
   CarbonLume — Shared Stylesheet
   Font: DM Sans (clean, technical, modern — Google Fonts)
   Theme: Deep dark with electric accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #080c10;
  --bg-2:        #0d1117;
  --bg-3:        #111820;
  --surface:     #141c25;
  --border:      rgba(255,255,255,0.07);
  --accent:      #00e5c3;        /* teal-green — CNT palette */
  --accent-dim:  rgba(0,229,195,0.12);
  --accent-glow: rgba(0,229,195,0.35);
  --text:        #e8edf2;
  --text-2:      #8fa3b3;
  --text-3:      #4d6475;
  --white:       #ffffff;

  --font:        'DM Sans', sans-serif;
  --mono:        'DM Mono', monospace;

  /* scale */
  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-md:    1.125rem;  /* 18px */
  --fs-lg:    1.375rem;  /* 22px */
  --fs-xl:    1.75rem;   /* 28px */
  --fs-2xl:   2.25rem;   /* 36px */
  --fs-3xl:   3rem;      /* 48px */
  --fs-4xl:   3.75rem;   /* 60px */
  --fs-5xl:   4.75rem;   /* 76px */

  --radius:   8px;
  --radius-lg:16px;
  --nav-h:    68px;
  --max-w:    1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Top-bar ────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 36px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.topbar a { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 20px; }

/* ── Navigation ─────────────────────────────────────────────── */
/* #nav is sticky only when wrapped in #site-header (homepage).
   On inner pages, .navbar itself is sticky. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
/* When inside #site-header, the parent is sticky — override navbar */
#site-header .navbar {
  position: static;
}
.navbar .logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.btn-nav {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-links a.btn-nav:hover { background: var(--accent); color: var(--bg); }
.nav-links a.btn-nav::after { display: none; }

/* ── Navbar transparent state (homepage only) ───────────────── */
.navbar.hero-nav {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.navbar.hero-nav.scrolled {
  background: rgba(8,12,16,0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
}

/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 36px);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: all .22s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: #00ffda; box-shadow: 0 0 24px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section helpers ─────────────────────────────────────────── */
  .container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
  }

  /* Our Technology cards grid */
  .cap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }

  .cap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    overflow: hidden;
  }
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    overflow: hidden;
  }

  .cap-card img {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
  }

    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
  }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.2; font-weight: 700; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-2); }
.text-center { text-align: center; }

/* Divider */
.divider {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0;
}
.divider.center { margin: 20px auto; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(0,229,195,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer p, .footer li, .footer a {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.8;
}
.footer a:hover { color: var(--accent); }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,195,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { display: block; margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: var(--fs-lg); color: var(--text-2); max-width: 680px; }

/* ── Stat bar ────────────────────────────────────────────────── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: 36px 28px;
  text-align: center;
}
.stat-item .num {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-item .num span { color: var(--accent); }
.stat-item .desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Tag ─────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ── Partner logos ───────────────────────────────────────────── */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.partner-logo {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  transition: border-color .2s;
  overflow: hidden;
}
.partner-logo:hover { border-color: rgba(0,229,195,0.4); }
.partner-logo img { max-width: 90%; max-height: 90%; object-fit: contain; transition: opacity .2s; }
.partner-logo:hover img { opacity: 0.85; }

/* ── Process step ────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Check list ──────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.check-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Form styles ─────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Glow accent lines ───────────────────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
  margin: 0;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .topbar .tb-right { display: none; }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .section { padding: 64px 0; }
}
