/* =========================================================
   HARISHVI TECHNOLOGIES LLP — site stylesheet
   No external fonts: system font stack only, kept deliberate
   with type scale + tracking rather than borrowed typefaces.
   ========================================================= */

:root {
  /* Color */
  --navy-950: #060a14;
  --navy-900: #0a1128;
  --navy-800: #111a3a;
  --blue-500: #2e5eff;
  --blue-400: #6b8bff;
  --teal-500: #14b8a6;
  --teal-300: #7ee0d4;
  --paper-0: #f7f9fc;
  --paper-100: #edf1f8;
  --ink-900: #0d1220;
  --ink-700: #333d55;
  --ink-500: #626e8a;
  --line: rgba(13, 18, 32, 0.12);
  --line-dark: rgba(247, 249, 252, 0.14);

  /* Type */
  --font-body: ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-sans-serif, "Segoe UI Semibold", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --step-1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step0: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --step1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step3: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
  --step4: clamp(2.4rem, 1.9rem + 2.4vw, 3.75rem);

  --content-max: 74rem;
  --measure: 62ch;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper-0);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-500); }
a:not(.btn) { text-underline-offset: 0.18em; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy-900); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius); z-index: 100; transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 60em) {
  .wrap { padding-inline: 2.5rem; }
}
section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 3vw, 3rem); }

.measure { max-width: var(--measure); }

.eyebrow {
  font-size: var(--step-1);
  color: var(--teal-500);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.7em;
}
h1 { font-size: var(--step4); font-weight: 700; }
h2 { font-size: var(--step3); font-weight: 700; }
h3 { font-size: var(--step2); font-weight: 650; }
h4 { font-size: var(--step1); font-weight: 650; }
p { margin: 0 0 1.1em; color: var(--ink-700); }
.lede { font-size: var(--step1); color: var(--ink-700); }

ul.plain { list-style: none; padding: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step0);
  padding: 0.85em 1.5em; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: #1f4be0; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy-900); }
.on-dark .btn-secondary { color: #fff; border-color: var(--line-dark); }
.on-dark .btn-secondary:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; flex: none;
  object-fit: contain;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em;
  color: #fff; font-size: var(--step0); line-height: 1.15;
}
.brand-name small { display: block; font-weight: 500; font-size: 0.7em; color: var(--teal-300); }

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--line-dark);
  border-radius: var(--radius); color: #fff; padding: 0.5rem 0.7rem; cursor: pointer;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

.primary-nav ul {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  color: rgba(247,249,252,0.86); text-decoration: none;
  font-size: var(--step-1); font-weight: 600;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--teal-500);
}
.nav-cta { margin-left: 0.4rem; }

@media (max-width: 55em) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: fixed; inset: 4.25rem 0 0 0;
    background: var(--navy-950);
    transform: translateY(-6px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    overflow-y: auto;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .primary-nav .wrap { padding-block: 1.5rem; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line-dark); }
  .primary-nav a { display: block; padding: 1rem 0; }
  .nav-cta { margin: 1.25rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #101c46 0%, var(--navy-950) 55%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid; gap: 2.5rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; padding-block: clamp(4.5rem, 9vw, 8rem); }
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(247,249,252,0.78); }
.hero-visual { width: 100%; }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Sections / cards ---------- */
.band { border-top: 1px solid var(--line); }
.band-dark { background: var(--navy-950); color: #fff; border-top: 1px solid var(--line-dark); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: rgba(247,249,252,0.75); }
.band-tint { background: var(--paper-100); }

.grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 40em) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 55em) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid > * { background: var(--paper-0); padding: 1.8rem; }
.band-dark .grid { background: var(--line-dark); border-color: var(--line-dark); }
.band-dark .grid > * { background: var(--navy-900); }

.work-item h4 { margin-bottom: 0.4rem; }
.work-item p { margin-bottom: 0; font-size: var(--step-1); }

.feature-panel {
  display: grid; gap: 2.5rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 55em) { .feature-panel { grid-template-columns: 1fr 1fr; } }

.two-col {
  display: grid; gap: 2rem;
}
@media (min-width: 50em) { .two-col { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }

.divider { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.tag {
  display: inline-block; font-size: var(--step-1); font-weight: 600;
  color: var(--blue-500); background: rgba(46,94,255,0.09);
  padding: 0.3em 0.75em; border-radius: var(--radius);
}

/* Callout / disclaimer */
.callout {
  border-left: 3px solid var(--teal-500);
  background: var(--paper-100);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-strong { border-left-color: var(--blue-500); }

.notice {
  border: 1px dashed var(--ink-500);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: var(--step-1);
  color: var(--ink-700);
}

/* ---------- Steps (deletion workflow is a genuine sequence) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--step-1);
}

/* ---------- Tables (legal pages) ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--step-1); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); color: var(--navy-950); }

/* Legal doc typography */
.legal h2 { font-size: var(--step2); margin-top: 2.2em; }
.legal h3 { font-size: var(--step1); margin-top: 1.6em; }
.legal ol, .legal ul { color: var(--ink-700); padding-left: 1.4rem; }
.legal li { margin-bottom: 0.5em; }
.meta-dates { color: var(--ink-500); font-size: var(--step-1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: rgba(247,249,252,0.75);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 45em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h5 {
  color: #fff; font-size: var(--step-1); text-transform: none;
  margin: 0 0 0.9rem; font-family: var(--font-head);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(247,249,252,0.75); text-decoration: none; font-size: var(--step-1); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: rgba(247,249,252,0.6); font-size: var(--step-1); max-width: 32ch; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: var(--step-1);
  color: rgba(247,249,252,0.55);
}

/* ---------- 404 ---------- */
.error-page .wrap { padding-block: clamp(4rem, 10vw, 8rem); text-align: left; }
.error-code { font-size: clamp(3rem, 10vw, 6rem); font-family: var(--font-head); font-weight: 700; color: var(--blue-500); margin: 0; line-height: 1; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
