/* ============================================================
   ByteSafeERP — erp.bytesafe.in
   Design system: deep indigo (brand #302080) + slate neutrals
   Type: Inter (Google Fonts) / system fallback
   ============================================================ */
:root {
  --brand-950: #171043;
  --brand-900: #241a6b;
  --brand-800: #302080;
  /* logo indigo */
  --brand-700: #3d2ca0;
  --brand-600: #4f46e5;
  /* accent indigo-600 */
  --brand-500: #6366f1;
  --brand-100: #e0e7ff;
  --brand-50: #eef2ff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6b84;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-deep: #1b1254;
  --success: #0e9f6e;
  --success-bg: #e7f7f0;
  --warn: #c2570a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 16px -6px rgba(23, 16, 67, .14), 0 2px 6px rgba(23, 16, 67, .06);
  --shadow-lg: 0 24px 48px -16px rgba(23, 16, 67, .22);
  --container: 1160px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility
}

img {
  max-width: 100%;
  height: auto
}

a {
  color: var(--brand-600);
  text-decoration: none
}

a:hover {
  color: var(--brand-800);
  text-decoration: underline
}

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

.section {
  padding: clamp(3.2rem, 7vw, 5.8rem) 0
}

.section-alt {
  background: var(--bg-alt)
}

.section-tight {
  padding: clamp(2.4rem, 5vw, 4rem) 0
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  font-weight: 800
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem)
}

h3 {
  font-size: 1.28rem;
  font-weight: 700
}

h4 {
  font-size: 1.05rem
}

p {
  margin: 0 0 1rem
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  color: var(--ink-soft)
}

.small {
  font-size: .9rem
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .9rem
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px
}

.center {
  text-align: center
}

.center .eyebrow::before {
  display: none
}

.maxw-760 {
  max-width: 760px
}

.mx-auto {
  margin-left: auto;
  margin-right: auto
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .16s ease;
  text-decoration: none;
  line-height: 1.2;
  min-height: 46px
}

.btn:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm)
}

.btn-primary:hover {
  background: var(--brand-800);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px)
}

.btn-dark {
  background: var(--brand-900);
  color: #fff
}

.btn-dark:hover {
  background: var(--brand-700);
  color: #fff;
  text-decoration: none
}

.btn-light {
  background: #fff;
  color: var(--brand-900);
  border-color: var(--line)
}

.btn-light:hover {
  border-color: var(--brand-400, var(--brand-500));
  color: var(--brand-800);
  text-decoration: none
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.08rem
}

.btn-block {
  width: 100%
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none
}

.brand img {
  width: auto;
  height: 34px
}

.brand:hover {
  text-decoration: none
}

.brand b {
  color: var(--brand-800);
  font-weight: 800
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none
}

.nav-links a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: .98rem
}

.nav-links a:hover {
  color: var(--brand-800);
  background: var(--brand-50);
  text-decoration: none
}

.nav-links a.active {
  color: var(--brand-800);
  background: var(--brand-50)
}

.nav-cta {
  margin-left: .6rem
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  place-items: center;
  color: var(--ink)
}

.nav-toggle svg {
  width: 22px;
  height: 22px
}

@media(max-width:960px) {
  .nav-toggle {
    display: grid
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .22s ease;
    gap: .2rem;
    z-index: 59
  }

  .nav-links.open {
    transform: translateY(0)
  }

  .nav-links a {
    font-size: 1.08rem;
    padding: .8rem .7rem
  }

  .nav-cta {
    margin: 1rem 0 0;
    width: 100%
  }
}

.js .nav-links {
  display: flex
}

.no-js .nav-links {
  display: flex;
  position: static;
  transform: none;
  flex-wrap: wrap
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, .35), transparent 60%), linear-gradient(180deg, var(--brand-950), var(--brand-900) 78%, var(--brand-800));
  color: #fff;
  position: relative;
  overflow: hidden
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 60% 30%, #000 30%, transparent 75%)
}

.hero-inner {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.2rem) 0 clamp(3.6rem, 7vw, 5.4rem)
}

.hero h1 {
  color: #fff;
  max-width: 820px
}

.hero .lede {
  color: #d6d9f5;
  max-width: 640px;
  margin: 1.2rem 0 2rem;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem)
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-top: 2.2rem;
  color: #cdd2f2;
  font-size: .95rem;
  font-weight: 500
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem
}

.hero-badges svg {
  width: 18px;
  height: 18px;
  color: #7ee2b8;
  flex: none
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 0
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.6rem
}

.hero-stat {
  background: rgba(23, 16, 67, .25);
  padding: 1.3rem 1.4rem
}

.hero-stat b {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -.02em;
  color: #fff
}

.hero-stat span {
  color: #c3c9ee;
  font-size: .88rem
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: #fff
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.4rem
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

@media(max-width:980px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-color: #c7d2fe
}

.card h3 {
  margin: .9rem 0 .5rem
}

.card p {
  color: var(--muted);
  font-size: .97rem;
  margin: 0
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-700)
}

.card-icon svg {
  width: 24px;
  height: 24px
}

.card-link {
  margin-top: .9rem;
  font-weight: 650;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--brand-600)
}

a.card:hover .card-link {
  color: var(--brand-800)
}

.module-card {
  display: flex;
  flex-direction: column
}

.module-num {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--brand-500)
}

/* ---------- Feature list / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center
}

@media(max-width:900px) {
  .split {
    grid-template-columns: 1fr
  }
}

.feature-tick {
  display: flex;
  gap: .8rem;
  margin-bottom: .95rem;
  align-items: flex-start
}

.feature-tick svg {
  width: 21px;
  height: 21px;
  color: var(--success);
  flex: none;
  margin-top: 3px
}

.feature-tick p {
  margin: 0;
  color: var(--ink-soft)
}

.feature-tick b {
  color: var(--ink)
}

.panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem)
}

.checklist {
  list-style: none;
  margin: 1rem 0
}

.checklist li {
  display: flex;
  gap: .7rem;
  margin-bottom: .6rem;
  color: var(--ink-soft)
}

.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex: none;
  margin-top: 3px
}

.pill {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid #dbe3ff;
  font-size: .8rem;
  font-weight: 650;
  padding: .22rem .7rem;
  border-radius: 999px;
  margin: .15rem .2rem .15rem 0
}

.pill-green {
  background: var(--success-bg);
  color: #0b6e4f;
  border-color: #bfe8d8
}

/* ---------- Steps / workflow ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  counter-reset: step
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm)
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--brand-500)
}

.step h3 {
  margin: .7rem 0 .4rem;
  font-size: 1.12rem
}

.step p {
  color: var(--muted);
  font-size: .96rem;
  margin: 0
}

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: .7rem;
  overflow: hidden
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  font-weight: 650;
  color: var(--ink)
}

details.faq summary::-webkit-details-marker {
  display: none
}

details.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brand-500);
  line-height: 1;
  transition: transform .2s
}

details.faq[open] summary::after {
  transform: rotate(45deg)
}

details.faq .faq-a {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft)
}

details.faq[open] {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-sm)
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-950), var(--brand-800));
  color: #fff;
  border-radius: 22px;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden
}

.cta-band h2 {
  color: #fff;
  margin-bottom: .5rem
}

.cta-band p {
  color: #cfd4f3;
  margin: 0;
  max-width: 560px
}

.cta-band .btn-light {
  white-space: nowrap
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--brand-950), var(--brand-800));
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 0
}

.page-hero .crumb {
  color: #aab1ea;
  font-size: .9rem;
  margin-bottom: 1rem
}

.page-hero .crumb a {
  color: #cfd4f6
}

.page-hero h1 {
  color: #fff;
  max-width: 860px
}

.page-hero .lede {
  color: #d6d9f5;
  max-width: 700px;
  margin-top: 1rem
}

.kicker {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

@media(max-width:640px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin: 0 0 .35rem;
  color: var(--ink)
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: .72rem .9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 1.05rem
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100)
}

.form-note {
  font-size: .86rem;
  color: var(--muted)
}

.contact-methods {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem
}

.contact-method svg {
  width: 22px;
  height: 22px;
  color: var(--brand-600);
  flex: none;
  margin-top: 2px
}

.contact-method b {
  display: block
}

.contact-method p,
.contact-method a {
  color: var(--ink-soft);
  font-size: .97rem;
  margin: 0
}

.contact-method a {
  color: var(--brand-700);
  font-weight: 550
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #aeb6e4;
  margin-top: 0;
  font-size: .95rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding: clamp(2.8rem, 6vw, 4.2rem) 0 2.4rem
}

@media(max-width:980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:620px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.site-footer h4 {
  color: #fff;
  font-size: .98rem;
  margin-bottom: 1rem
}

.site-footer a {
  color: #aeb6e4;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem 0;
  width: 100%
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none
}

.site-footer svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .9
}

.site-footer a:hover svg {
  opacity: 1
}

.site-footer .brand {
  color: #fff;
  margin-bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: space-between;
  font-size: .87rem;
  color: #8891c9
}

/* ---------- Misc ---------- */
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .4em;
  font-size: .9em
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-900);
  color: #fff;
  padding: .7rem 1.2rem;
  z-index: 100;
  border-radius: 0 0 8px 0
}

.skip-link:focus {
  left: 0
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

::selection {
  background: var(--brand-100)
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff
}

th,
td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top
}

th {
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-alt)
}

.alert {
  display: flex;
  gap: .8rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .95rem
}

@media print {

  .site-header,
  .site-footer,
  .nav-toggle,
  .no-print {
    display: none !important
  }
}