/* =========================================================
   Deenidz Smart Technologies — Dark Theme Design System
   Palette (from brand guideline):
     Primary:   #0C0C0C ink · #1300F0 blue · #7F23E5 purple
                #EFEFEF pale · #FFFFFF white
     Secondary: blue 50-950 / purple 50-950 tints & shades
   Type: Space Grotesk (display) + IBM Plex Sans (body)
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #0C0C0C;
  --surface: #151517;
  --surface-alt: #1B1B1F;
  --surface-raised: #202024;
  --border: #29292F;
  --border-strong: #38383F;

  /* Text */
  --text: #F5F5F7;
  --text-muted: #A6A6B3;
  --text-faint: #6F6F7B;

  /* Brand */
  --blue: #1300F0;
  --blue-600: #1D0CFF;
  --blue-500: #2F34FF;
  --blue-400: #5668FF;
  --blue-300: #859FFF;
  --blue-100: #D5E1FF;
  --purple: #7F23E5;
  --purple-600: #8A2FF8;
  --purple-500: #9652FF;
  --purple-400: #AE84FF;
  --purple-300: #C8B0FF;
  --purple-100: #EEE8FF;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-soft: linear-gradient(135deg, var(--blue-400) 0%, var(--purple-400) 100%);

  /* Theme-reactive surfaces/overlays (dark defaults) */
  --link: var(--blue-300);
  --link-hover: var(--purple-300);
  --overlay-weak: rgba(255,255,255,0.04);
  --overlay-weak-hover: rgba(255,255,255,0.07);
  --header-bg: rgba(12,12,12,0.85);
  --float-badge-bg: rgba(12,12,12,0.75);
  --badge-text: var(--blue-300);
  --tag-text: var(--purple-300);
  --glow-1: 0.16;
  --glow-2: 0.14;

  --radius-sm: 8px;
  --radius-md: 16px;
  --max-width: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F6F6F8;
  --surface-alt: #EFEFEF;
  --surface-raised: #FFFFFF;
  --border: #E2E2E8;
  --border-strong: #CACAD2;

  --text: #0C0C0C;
  --text-muted: #55555F;
  --text-faint: #86868F;

  --link: var(--blue-600);
  --link-hover: var(--purple-600);
  --overlay-weak: rgba(12,12,12,0.045);
  --overlay-weak-hover: rgba(12,12,12,0.08);
  --header-bg: rgba(255,255,255,0.85);
  --float-badge-bg: rgba(255,255,255,0.85);
  --badge-text: var(--blue-600);
  --tag-text: var(--purple-600);
  --glow-1: 0.05;
  --glow-2: 0.045;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ambient background glow — fixed, sits behind all content */
body::before, body::after {
  content: "";
  position: fixed;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.2s ease;
}
body::before { top: -220px; left: -180px; background: var(--blue); opacity: var(--glow-1); }
body::after { bottom: -220px; right: -180px; background: var(--purple); opacity: var(--glow-2); }

.text-gradient {
  background: var(--gradient-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); color: var(--text-muted); max-width: 62ch; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--link-hover); }
img { max-width: 100%; display: block; }

ul, ol { color: var(--text-muted); padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--dim { background: var(--surface-alt); }

/* Repurposed as the brand "highlight" band — gradient surface for
   Vision & Mission and similar standout sections. */
.section--ink { background: var(--gradient); color: #fff; }
.section--ink p { color: rgba(255,255,255,0.82); }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-400);
  margin-bottom: var(--space-1);
}

.lede {
  font-size: 1.15rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(127,35,229,0.55), 0 6px 16px -6px rgba(19,0,240,0.45);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 14px 36px -6px rgba(127,35,229,0.65), 0 8px 20px -4px rgba(19,0,240,0.5); }
.btn-ghost {
  background: var(--overlay-weak);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--purple-400); color: var(--text); background: var(--overlay-weak-hover); }
.section--ink .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.section--ink .btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--purple-400);
  color: var(--text);
}
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; }

@media (min-width: 861px) {
  .nav-links {
    gap: 2px;
    background: var(--overlay-weak);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
  }
  .nav-links a {
    padding: 9px 18px;
    border-radius: 999px;
    border-bottom: none;
  }
  .nav-links a:hover { background: var(--overlay-weak-hover); border-bottom: none; }
  .nav-links a[aria-current="page"] {
    background: var(--gradient);
    color: #fff;
    border-bottom: none;
    font-weight: 600;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  body.nav-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(127,35,229,0.18) 0%, rgba(19,0,240,0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy p.lede { margin-bottom: var(--space-3); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.page-hero { padding: var(--space-5) 0 var(--space-4); border-bottom: 1px solid var(--border); }
.page-hero .lede { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto var(--space-3); }
  .badge-pill--float { display: none; }
}

/* ---------- Stat bar ---------- */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.stat-item .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  display: block;
  background: var(--gradient-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item .label { font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 700px) {
  .stat-bar .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-400);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card .icon { margin-bottom: var(--space-2); }
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: var(--space-1); font-size: 0.96rem; }
.card ul { margin: var(--space-1) 0 0; font-size: 0.92rem; }

.card--teal { border-left-color: var(--purple-400); }

.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head--wide { max-width: 760px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--overlay-weak);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: var(--overlay-weak-hover); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Badge pill (hero eyebrow / floating callouts) ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(86,104,255,0.1);
  border: 1px solid rgba(134,148,255,0.35);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-pill--float {
  position: absolute;
  background: var(--float-badge-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 8px 14px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
}

/* ---------- Feature cards (numbered, glowing icon) ---------- */
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-card .bg-number {
  position: absolute;
  top: 4px; right: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.06;
  line-height: 1;
}
.feature-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}
.feature-card--blue .icon-badge { background: rgba(86,104,255,0.14); box-shadow: 0 0 24px -4px rgba(86,104,255,0.5); }
.feature-card--purple .icon-badge { background: rgba(174,132,255,0.14); box-shadow: 0 0 24px -4px rgba(174,132,255,0.5); }
.feature-card h3 { position: relative; z-index: 1; }
.feature-card p { position: relative; z-index: 1; margin-bottom: 0; }

/* ---------- Values / list rows ---------- */
.list-rows { border-top: 1px solid var(--border); }
.list-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .list-row { grid-template-columns: 1fr; gap: 6px; }
}
.list-row h3 { margin: 0; }
.list-row p { margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 3px solid var(--purple-400);
  padding-left: var(--space-3);
}
.testimonial p { font-size: 1.2rem; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 500; }
.testimonial cite { font-style: normal; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--blue); }
.cta-banner .btn-primary:hover { filter: none; background: #F0F0F0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--surface);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--purple-400);
  outline-offset: 1px;
  border-color: var(--purple-400);
}
textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: var(--space-2); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: var(--text-faint); margin-top: var(--space-1); }
#form-status { font-size: 0.92rem; margin-top: var(--space-2); }
#form-status[data-state="success"] { color: var(--purple-300); }
#form-status[data-state="error"] { color: #FF6B6B; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex; gap: 10px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.info-list strong { color: var(--text); display: block; font-size: 0.85rem; }
.info-list span, .info-list a { color: var(--text-muted); }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--purple-400);
  margin-left: var(--space-2);
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: var(--space-1); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tag-text);
  background: rgba(127,35,229,0.15);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  width: fit-content;
}
.post-card h3 { margin-bottom: 8px; }
.post-card .meta { font-size: 0.82rem; color: var(--text-faint); margin-top: auto; padding-top: var(--space-2); }

.post-body h2 { margin-top: var(--space-4); }
.post-body p, .post-body li { max-width: 70ch; }
.post-hero-tag { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--purple-400); margin-bottom: var(--space-1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: var(--space-5) 0 var(--space-3);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}
.footer-grid h4 { color: var(--text); font-size: 0.9rem; margin-bottom: var(--space-2); }
.footer-grid a { color: var(--text-muted); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-logo { color: var(--text); font-weight: 600; margin-bottom: var(--space-2); display: flex; align-items: center; gap: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-faint);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gradient);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Consent banner ---------- */
#consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface-alt);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  z-index: 60;
  border-top: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
#consent-banner p { color: var(--text-muted); margin: 0; font-size: 0.88rem; max-width: 60ch; }
#consent-banner.visible { display: flex; }
