/* ==========================================================================
   Netras Security: shared design system
   Light corporate theme matching parent company Assurex (assurex.co):
   white background, black text, red accent, subtle gray alt sections.
   Layered on top of Tailwind (CDN, JIT).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --border: #e5e7eb;
  --red: #e0342c;
  --red-dark: #c72a23;
  --text-hi: #0a0a0a;
  --text-mid: #4b5563;
  --text-low: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-mid);
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', system-ui, sans-serif; color: var(--text-hi); }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 999px; }

/* ---------- surfaces ---------- */
.bg-alt { background-color: var(--bg-alt); }

/* ---------- cards (formerly glassmorphism, now flat light cards) ---------- */
.glass {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.glass-strong {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(238,0,0,0.35);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.12);
}

/* ---------- text accents ---------- */
.text-accent { color: var(--red); }

/* ---------- buttons ---------- */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: .4rem; font-weight: 600; font-size: .95rem;
  color: #ffffff; background: var(--red);
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.55rem; border-radius: .4rem; font-weight: 600; font-size: .95rem;
  color: var(--text-hi); border: 1px solid var(--border); background: #ffffff;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn-ghost:hover { border-color: var(--red); background: #fff5f5; transform: translateY(-1px); }

/* ---------- chips / badges ---------- */
.chip {
  position: relative; display: inline-block; max-width: 100%;
  padding: .45rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  line-height: 1.5; color: var(--text-mid); border: 1px solid var(--border); background: var(--bg-alt);
}
.chip:has(.chip-dot) { padding-left: 1.65rem; }
.chip-dot {
  position: absolute; left: .85rem; top: .95rem;
  width: 6px; height: 6px; border-radius: 999px; background: var(--red);
}
.chip-roadmap { border-style: dashed; border-color: rgba(238,0,0,0.4); color: var(--red); background: #fff; }

/* ---------- icon tile ---------- */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .6rem;
  background: #fff2f2;
  border: 1px solid rgba(238,0,0,0.2);
  color: var(--red);
}

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

/* ---------- accordion (compliance framework detail) ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: .6rem; background: #ffffff; overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; text-align: left; cursor: pointer; background: none; border: none; color: inherit;
}
.accordion-chevron { transition: transform .3s ease; color: var(--text-low); flex-shrink: 0; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--red); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-item.open .accordion-panel { max-height: 480px; }
.accordion-panel-inner { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ---------- nav ---------- */
.nav-link { position: relative; color: var(--text-mid); transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--red); transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- mobile menu ---------- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
#mobile-menu.open { max-height: 480px; }

/* ---------- section kicker (red underline accent, mirrors Assurex heading style) ---------- */
.section-kicker {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.section-kicker::before { content: ""; width: 1.5rem; height: 2px; background: var(--red); }

.heading-underline { position: relative; display: inline-block; padding-bottom: .6rem; }
.heading-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 3px; background: var(--red);
}

hr.divider { border: none; height: 1px; background: var(--border); }

::selection { background: rgba(238,0,0,0.18); color: #0a0a0a; }
