/* ConsciousEdge — shared stylesheet
   Extends the existing brand system (dark navy + gold, Playfair/Inter/Cormorant)
   with tokens and components needed for a multi-page Products/Solutions site. */

:root {
  --black: #05080f;
  --white: #fdf9f3;
  --gold: #d4a843;
  --gold-light: #f0c96a;
  --gold-dim: rgba(212,168,67,0.15);
  --dark: #080c17;
  --mid: #0d1425;
  --muted: #7a8299;
  --body: #b8c0d4;
  --border: rgba(212,168,67,0.2);
  --accent: #1a6b6b;
  --rose: #c45c6a;
  --emerald: #1a7a5e;
  --indigo: #6366a8;
  --grad1: linear-gradient(135deg, #0d1425 0%, #080c17 100%);
  --grad-gold: linear-gradient(135deg, #d4a843 0%, #f0c96a 50%, #c9883a 100%);
  --grad-hero: linear-gradient(135deg, #080c17 0%, #0f1e3a 50%, #0a1628 100%);

  /* Product accent tokens — each product gets a distinct hue, but the same shell */
  --pc-creditlens: var(--emerald);
  --pc-geotrack: var(--indigo);
  --pc-consciouspay: var(--rose);
}

body.light-mode {
  --black: #ffffff;
  --white: #12192e;
  --gold: #b8720a;
  --gold-light: #d4920a;
  --gold-dim: rgba(184,114,10,0.1);
  --dark: #f8f5ef;
  --mid: #edeae2;
  --muted: #5a6275;
  --body: #2d3348;
  --border: rgba(184,114,10,0.22);
  background: #f8f5ef !important;
  color: #2d3348;
}
body.light-mode nav { background: rgba(248,245,239,0.96) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important; }
body.light-mode .hero, body.light-mode .page-hero { background: linear-gradient(135deg, #f0ece2 0%, #e8e2d4 100%) !important; }
body.light-mode .hero-card { background: rgba(255,255,255,0.92) !important; box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important; }
body.light-mode .about, body.light-mode .problem, body.light-mode .tiers,
body.light-mode .team, body.light-mode .contact, body.light-mode .split,
body.light-mode .industries-band { background: rgba(237,234,226,0.97) !important; }
body.light-mode .feature { background: rgba(248,245,239,0.97) !important; }
body.light-mode .feature-cell, body.light-mode .team-card,
body.light-mode .report-card, body.light-mode .card { background: rgba(255,255,255,0.9) !important; }
body.light-mode footer { background: rgba(220,216,208,0.98) !important; }
body.light-mode .mid-cta { background: linear-gradient(135deg, rgba(26,107,107,0.1) 0%, rgba(248,245,239,0.99) 60%) !important; }
body.light-mode .trust-bar { background: rgba(184,114,10,0.06) !important; }
body.light-mode .tier-card { background: rgba(255,255,255,0.7) !important; }
body.light-mode .tier-card.featured { background: rgba(26,107,107,0.07) !important; }
body.light-mode .form-group input, body.light-mode .form-group textarea,
body.light-mode .form-group select { background: rgba(255,255,255,0.95) !important; color: #2d3348 !important; border-color: rgba(184,114,10,0.25) !important; }
body.light-mode .form-group select option { background: #f8f5ef !important; color: #2d3348 !important; }
body.light-mode .hero h1, body.light-mode .page-hero h1,
body.light-mode .section-title, body.light-mode .nav-logo-text { color: #0d1425 !important; }
body.light-mode .problem-card { background: rgba(255,220,220,0.12) !important; }
body.light-mode .about-stat { background: rgba(255,255,255,0.7) !important; }
body.light-mode .hero-sub, body.light-mode .btn-ghost { color: #4a5568 !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080c17;
  color: var(--body);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 1; }
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; background: var(--gold); opacity: 0.35; }
@keyframes floatUp { to { transform: translateY(-100vh); opacity: 0; } }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(15,22,35,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s;
}
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); letter-spacing: 0.01em; white-space: nowrap; }
.nav-logo-text span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { text-decoration: none; color: var(--body); font-size: 0.86rem; letter-spacing: 0.03em; transition: color 0.2s; display: flex; align-items: center; gap: 0.3rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-caret { font-size: 0.6rem; opacity: 0.6; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--mid); border: 1px solid var(--border); border-radius: 10px;
  min-width: 240px; padding: 0.5rem; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a { display: block; padding: 0.65rem 0.9rem; border-radius: 6px; font-size: 0.85rem; }
.dropdown-panel a:hover { background: rgba(212,168,67,0.08); }
.dropdown-panel .dd-desc { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.btn-nav-cta {
  background: var(--grad-gold); color: var(--black); font-weight: 600; font-size: 0.82rem;
  padding: 0.65rem 1.3rem; border-radius: 6px; text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
}
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.3s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(20deg); }
.nav-burger { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* Mobile nav */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--dark);
    flex-direction: column; align-items: flex-start; padding: 2rem; gap: 0.5rem; overflow-y: auto;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0; width: 100%; font-size: 1rem; }
  .dropdown-panel { position: static; transform: none; opacity: 1; visibility: visible; display: none;
    box-shadow: none; border: none; background: rgba(255,255,255,0.03); margin-top: 0.3rem; width: 100%; }
  .dropdown.open .dropdown-panel { display: block; }
  .nav-burger { display: block; }
  .btn-nav-cta { padding: 0.55rem 1rem; font-size: 0.76rem; }
}

/* Typography */
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--white); font-weight: 700; }
.eyebrow { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; display: inline-block; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin-bottom: 1.2rem; max-width: 640px; }
.section-sub { max-width: 620px; font-size: 1.05rem; color: var(--body); margin-bottom: 2.5rem; }
.italic-accent { font-family: 'Cormorant Garamond', serif; font-style: italic; }

section { position: relative; z-index: 1; padding: 6rem 0; }
@media (max-width: 700px) { section { padding: 3.5rem 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.9rem; border-radius: 7px;
  text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--grad-gold); color: var(--black); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,168,67,0.25); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--body); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Page hero (inner pages) */
.page-hero { padding: 11rem 0 4.5rem; background: var(--grad-hero); position: relative; z-index: 1; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.15; max-width: 780px; }
.page-hero p { max-width: 620px; font-size: 1.08rem; margin-top: 1.2rem; color: var(--body); }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* Home hero */
.hero { padding: 12rem 0 6rem; background: var(--grad-hero); position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.08; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.1rem; color: var(--body); max-width: 480px; margin-bottom: 1rem; }
.hero-card { background: rgba(13,20,37,0.7); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; backdrop-filter: blur(6px); }
.hero-card-title { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1.5rem; text-transform: uppercase; }
.metric-row { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 0.85rem; color: var(--muted); }
.metric-val { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--emerald); }
.metric-bar { width: 90px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-left: 1rem; }
.metric-bar span { display: block; height: 100%; background: var(--emerald); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Split — What We Build */
.split { padding: 5.5rem 0; background: var(--mid); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-card { border-radius: 14px; padding: 2.5rem; border: 1px solid var(--border); text-decoration: none; transition: transform 0.25s, border-color 0.25s; }
.split-card:hover { transform: translateY(-4px); }
.split-card.products { background: linear-gradient(160deg, rgba(212,168,67,0.09), rgba(212,168,67,0.02)); }
.split-card.products:hover { border-color: var(--gold); }
.split-card.solutions { background: linear-gradient(160deg, rgba(26,107,107,0.12), rgba(26,107,107,0.02)); }
.split-card.solutions:hover { border-color: var(--accent); }
.split-card .eyebrow { margin-bottom: 0.6rem; }
.split-card h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.split-card p { color: var(--body); font-size: 0.98rem; }
.split-card .link { display: inline-block; margin-top: 1.2rem; font-size: 0.85rem; color: var(--gold-light); }
@media (max-width: 800px) { .split-grid { grid-template-columns: 1fr; } }

/* Cards grid (products / solutions / industries) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: rgba(13,20,37,0.55); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem;
  text-decoration: none; display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); }
.card .accent-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card.acc-creditlens .accent-bar { background: var(--pc-creditlens); }
.card.acc-geotrack .accent-bar { background: var(--pc-geotrack); }
.card.acc-consciouspay .accent-bar { background: repeating-linear-gradient(90deg, var(--pc-consciouspay) 0 8px, transparent 8px 14px); }
.card.acc-creditlens:hover { border-color: var(--pc-creditlens); }
.card.acc-geotrack:hover { border-color: var(--pc-geotrack); }
.card-badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border-radius: 20px; margin-bottom: 1rem; width: fit-content; }
.badge-live { background: rgba(26,122,94,0.15); color: #4fceac; border: 1px solid rgba(79,206,172,0.3); }
.badge-active { background: rgba(99,102,168,0.18); color: #a3a6e8; border: 1px solid rgba(163,166,232,0.3); }
.badge-dev { background: rgba(196,92,106,0.12); color: #e79aa5; border: 1px solid rgba(231,154,165,0.3); }
.card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card p { color: var(--body); font-size: 0.95rem; flex: 1; }
.card .link { margin-top: 1.3rem; font-size: 0.85rem; color: var(--gold-light); }
.card.consciouspay-card { opacity: 0.88; border-style: dashed; }

/* Feature cell grid */
.feature-cell {
  background: var(--dark); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem;
}
.feature-cell .fi { font-size: 1.4rem; color: var(--gold); margin-bottom: 0.8rem; }
.feature-cell h4 { font-family: 'Inter', sans-serif; font-size: 1.02rem; color: var(--white); font-weight: 500; margin-bottom: 0.5rem; }
.feature-cell p { font-size: 0.9rem; color: var(--muted); }

/* Solution page: problem / build / outcome track */
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.track-step { border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; background: rgba(13,20,37,0.4); }
.track-step .t-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.6rem; }
.track-step p { font-size: 0.93rem; color: var(--body); }
@media (max-width: 800px) { .track { grid-template-columns: 1fr; } }

/* List with check marks */
.check-list { list-style: none; margin: 1.5rem 0; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: 0.7rem; font-size: 0.95rem; color: var(--body); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

/* Trust bar */
.trust-bar { background: rgba(212,168,67,0.05); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; font-size: 0.85rem; color: var(--muted); }
.trust-inner span { color: var(--gold); margin-right: 0.4rem; }

/* Stats */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.about-stat { text-align: center; background: rgba(13,20,37,0.5); border: 1px solid var(--border); border-radius: 12px; padding: 1.6rem 1rem; }
.about-stat .stat-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold); }
.about-stat .stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 800px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }

/* Team */
.team-card { background: rgba(13,20,37,0.55); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; text-align: center; }
.team-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--grad-gold); color: var(--black); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; margin: 0 auto 1rem; }
.team-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-role { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.8rem; }
.team-card p { font-size: 0.88rem; color: var(--muted); }

/* Mid CTA band */
.mid-cta { background: linear-gradient(135deg, rgba(212,168,67,0.08) 0%, rgba(8,12,23,0.99) 60%); padding: 5rem 0; text-align: center; }
.mid-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.mid-cta p { max-width: 520px; margin: 0 auto 1rem; color: var(--body); }
.mid-cta .cta-row { justify-content: center; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.c-label { font-size: 0.78rem; color: var(--muted); }
.c-val a { color: var(--white); text-decoration: none; }
.c-val a:hover { color: var(--gold-light); }
.contact-form { background: rgba(13,20,37,0.55); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 7px;
  padding: 0.75rem 0.9rem; color: var(--white); font-family: inherit; font-size: 0.9rem;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit { width: 100%; padding: 0.95rem; background: var(--grad-gold); color: var(--black); font-weight: 600; border: none; border-radius: 7px; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
@media (max-width: 800px) { .contact-inner { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Industries band */
.industries-band { background: var(--mid); padding: 4rem 0; }
.industries-band .grid-2 { gap: 1.3rem; }

/* Footer */
footer { background: rgba(8,12,23,0.98); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); font-size: 1.1rem; margin-bottom: 0.6rem; }
.footer-logo span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-tag { font-size: 0.85rem; color: var(--muted); max-width: 260px; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.86rem; color: var(--body); text-decoration: none; margin-bottom: 0.65rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
