/* ============================================================
   CosmosPanel — Shared Stylesheet  (Light Enterprise Theme)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* content protection */
* { -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; -webkit-touch-callout:none; }
input, textarea, select { -webkit-user-select:text; -moz-user-select:text; -ms-user-select:text; user-select:text; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(3,6,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 24px rgba(0,0,0,.3);
  transition: background .3s, border-color .3s;
}
/* Light nav for inner pages that have a light hero */
.nav-light {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav-light .nav-links a { color: #475569; }
.nav-light .nav-links a:hover, .nav-light .nav-links a.active { color: #0f172a; }
.nav-light .nav-logo span { color: #0f172a; -webkit-text-fill-color: #0f172a; }
.nav-light .nav-hamburger span { background: #64748b; }
.nav-logo {
  font-size: 18px; font-weight: 900; letter-spacing: -0.9px;
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
  -webkit-text-fill-color: initial; line-height: 1;
}
.nav-logo-icon { display: none; }
.nav-logo-cosmos {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 900;
}
.nav-logo-panel { color: #f0f4ff; -webkit-text-fill-color: #f0f4ff; font-weight: 900; }
/* Light nav variant overrides */
.nav-light .nav-logo-cosmos {
  background: linear-gradient(90deg, #2563eb, #0891b2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-light .nav-logo-panel { color: #0f172a; -webkit-text-fill-color: #0f172a; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: #8b9ab8; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #f0f4ff; }
.nav-cta {
  padding: 9px 22px; background: #2563eb; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: #fff !important; -webkit-text-fill-color: #fff !important;
  transition: background .2s, box-shadow .2s; box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
.nav-cta:hover { background: #1d4ed8; box-shadow: 0 4px 16px rgba(37,99,235,.5); }
.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #6b7280; border-radius: 2px; }
.nav-mobile { display: none; }
@media(max-width:900px){
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(3,6,15,.97); backdrop-filter:blur(20px); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 99; }
  .nav-mobile a { padding: 15px 24px; font-size: 15px; color: #8b9ab8; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-mobile .nav-cta { margin: 16px 24px; text-align: center; border-radius: 10px; padding: 13px; display: block; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  .nav-light .nav-mobile.open { background: rgba(255,255,255,.97); }
  .nav-light + .nav-mobile.open { background: #fff; }
}

/* ── FOOTER ── */
footer { background: #0f172a; border-top: 1px solid #1e293b; padding: 72px 48px 40px; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
@media(max-width:900px){ footer { padding: 48px 24px 32px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-brand { grid-column: 1/-1; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-logo-icon { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo-text { font-size: 17px; font-weight: 900; letter-spacing: -0.5px; color: #fff; }
.footer-brand p { font-size: 14px; color: #94a3b8; line-height: 1.75; max-width: 270px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #334155; background: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #94a3b8; transition: all .2s; }
.footer-social a:hover { border-color: #3b82f6; color: #60a5fa; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #e2e8f0; margin-bottom: 18px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom { max-width: 1140px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #64748b; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge { padding: 4px 10px; border-radius: 6px; border: 1px solid #1e293b; background: #0f172a; font-size: 11px; color: #64748b; }

/* ── UTILITIES ── */
.container { max-width: 1140px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #2563eb; margin-bottom: 14px; background: #eff6ff; padding: 4px 12px; border-radius: 6px; }
.section-title { font-size: clamp(28px,3.5vw,48px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; color: #0f172a; }
.section-sub { margin-top: 16px; font-size: 17px; color: #64748b; max-width: 540px; line-height: 1.75; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: #2563eb; border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; transition: all .2s; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-weight: 600; color: #374151; background: #fff; transition: all .2s; }
.btn-ghost:hover { border-color: #2563eb; color: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.1); }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (inner pages) — DARK ── */
.page-hero {
  padding: 148px 24px 80px; text-align: center;
  background: #03060f;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(6,182,212,.1) 0%, transparent 55%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .7; pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .section-tag { background: rgba(37,99,235,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.page-hero .section-title { color: #f0f4ff !important; }
.page-hero .section-sub { color: #8b9ab8 !important; margin: 16px auto 0; }

/* ── DARK SECTION UTILITIES ── */
.s-dark  { background: #03060f; }
.s-dark2 { background: #060d1a; }
.s-dark-text { color: #f0f4ff; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(6,13,28,.97); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(59,130,246,.2);
  padding: 20px 48px; display: flex; align-items: center;
  gap: 32px; flex-wrap: wrap;
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  transform: translateY(0); opacity: 1;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s;
}
.cookie-banner.cb-hide { transform: translateY(105%); opacity: 0; pointer-events: none; }
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { font-size: 14px; font-weight: 700; color: #f0f4ff; display: block; margin-bottom: 5px; }
.cookie-text p { font-size: 13px; color: #6b7a99; line-height: 1.6; margin: 0; }
.cookie-text a { color: #60a5fa; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cb-accept {
  padding: 10px 22px; background: linear-gradient(90deg,#2563eb,#0891b2);
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: #fff; cursor: pointer; white-space: nowrap;
  transition: opacity .2s, transform .2s; font-family: inherit;
}
.cb-accept:hover { opacity: .88; transform: translateY(-1px); }
.cb-decline {
  padding: 10px 18px; background: transparent;
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #8b9ab8;
  cursor: pointer; white-space: nowrap; transition: all .2s; font-family: inherit;
}
.cb-decline:hover { border-color: rgba(255,255,255,.3); color: #c8d4f0; }
@media(max-width:700px){ .cookie-banner{ padding:20px 20px; flex-direction:column; } .cookie-actions{ width:100%; } .cb-accept,.cb-decline{ flex:1; text-align:center; } }

/* ── MARQUEE ── */
.marquee-section { padding: 24px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; overflow: hidden; position: relative; }
.marquee-section::before, .marquee-section::after { content:''; position:absolute; top:0; bottom:0; width:100px; z-index:2; pointer-events:none; }
.marquee-section::before { left:0; background:linear-gradient(90deg,#f8fafc,transparent); }
.marquee-section::after { right:0; background:linear-gradient(270deg,#f8fafc,transparent); }
.marquee-track { display:flex; align-items:center; width:max-content; animation:marquee 35s linear infinite; }
.marquee-track:hover { animation-play-state:paused; }
@keyframes marquee{ 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.marquee-item { padding: 0 40px; font-size: 14px; font-weight: 800; color: #94a3b8; letter-spacing: 2px; white-space: nowrap; transition: color .2s; }
.marquee-item:hover { color: #475569; }

/* ── TESTIMONIALS CAROUSEL ── */
.carousel-wrap { position: relative; margin-top: 56px; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; padding: 0 4px; }
.testimonial-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 44px 48px; box-shadow: 0 4px 24px rgba(0,0,0,.06); position: relative; }
@media(max-width:600px){ .testimonial-card { padding: 32px 24px; } }
.testimonial-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#2563eb,#0891b2,#7c3aed); border-radius:20px 20px 0 0; }
.testimonial-stars { display:flex; gap:3px; margin-bottom:24px; }
.testimonial-star { color:#f59e0b; font-size:18px; }
.testimonial-quote { font-size:clamp(16px,1.8vw,20px); font-weight:500; line-height:1.65; color:#1e293b; margin-bottom:36px; }
.testimonial-quote::before { content:'\201C'; font-size:52px; color:#2563eb; font-weight:900; line-height:0; vertical-align:-20px; margin-right:4px; opacity:.4; }
.testimonial-author { display:flex; align-items:center; gap:16px; }
.testimonial-avatar { width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,#2563eb,#7c3aed); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; color:#fff; flex-shrink:0; }
.testimonial-name { font-size:15px; font-weight:700; color:#0f172a; }
.testimonial-role { font-size:13px; color:#64748b; margin-top:2px; }
.testimonial-logo { margin-left:auto; font-size:12px; font-weight:800; color:#94a3b8; letter-spacing:2px; }
.carousel-controls { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:32px; }
.carousel-btn { width:42px; height:42px; border-radius:50%; border:1.5px solid #e2e8f0; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.carousel-btn:hover { border-color:#2563eb; background:#eff6ff; }
.carousel-btn svg { width:15px; height:15px; stroke:#64748b; }
.carousel-btn:hover svg { stroke:#2563eb; }
.carousel-dots { display:flex; gap:8px; }
.carousel-dot { width:8px; height:8px; border-radius:50%; background:#cbd5e1; cursor:pointer; transition:all .25s; border:none; }
.carousel-dot.active { background:#2563eb; width:22px; border-radius:4px; }

/* ── FORM VALIDATION ── */
.field-error { font-size: 12px; color: #ef4444; margin-top: 5px; display: block; }
.input-error { border-color: #fca5a5 !important; background: #fff5f5 !important; }
