/* ===========================================================================
   A & S Software Consultancy Pvt. Ltd. - www3.assoftwaregroup.com
   Static site. No build step, no framework, no webfont requests, no cookies.
   Brand colours sampled from App_Themes/white/images/ans-logo.png:
     red #DC2A26, graphite #4B4B4B, silver #BABBBD
   =========================================================================== */

:root {
  --red:        #DC2A26;
  --red-dark:   #B41F1C;
  --red-tint:   #FDF2F2;

  --ink:        #14161A;
  --ink-2:      #3C424C;
  --ink-3:      #667085;

  --line:       #E4E7EC;
  --line-2:     #F0F2F5;
  --surface:    #FFFFFF;
  --surface-2:  #F7F8FA;
  --surface-3:  #FBFCFD;

  --radius:     12px;
  --radius-lg:  18px;
  --maxw:       1120px;

  --shadow-sm:  0 1px 2px rgba(16,24,40,.05);
  --shadow:     0 4px 16px -4px rgba(16,24,40,.09), 0 1px 3px rgba(16,24,40,.05);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red:       #FF5A55;
    --red-dark:  #FF7A76;
    --red-tint:  #2A1615;

    --ink:       #F2F4F7;
    --ink-2:     #C6CCD6;
    --ink-3:     #929AA8;

    --line:      #2A2F38;
    --line-2:    #22262E;
    --surface:   #131519;
    --surface-2: #1A1D23;
    --surface-3: #16191E;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 4px 16px -4px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.021em;
  margin: 0 0 .5em;
  font-weight: 680;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.11rem; font-weight: 660; }
h4 { font-size: .95rem; font-weight: 660; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }

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

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--red); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
/* The header carries the A & S device mark only; the wordmark is set in live text
   beside it, which stays crisp at any density. The footer uses the full logo.
   Both have a light and a dark variant selected by <picture>. */
.site-head .brand img { width: 44px; height: 26px; }
.site-foot .brand img { width: 140px; height: 24px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: .875rem; font-weight: 680; color: var(--ink); letter-spacing: -.012em; }
.brand-txt span { font-size: .688rem; color: var(--ink-3); letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: .938rem; font-weight: 520;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav a.btn { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a.btn { color: #1A0B0A; }
}

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; cursor: pointer; color: var(--ink); font: inherit; font-size: .875rem;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; margin: 0;
    position: absolute; inset: 68px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 8px; border-radius: 8px; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px;
  font-size: .938rem; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary,
  :root:not([data-theme="light"]) .btn-primary:hover { color: #1A0B0A; }
}

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }

.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 11px; }

/* ---------- section scaffolding ---------- */

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 680; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.section-intro { max-width: 68ch; margin-bottom: 40px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 460px at 18% -10%, color-mix(in srgb, var(--red) 9%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  overflow: hidden;
}
.hero::after {
  /* faint engineering-grid wash - drawn in CSS, not an image request */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-bottom: 30px; }

.hero-page { padding: 62px 0 54px; }
.hero-page h1 { max-width: 24ch; margin-bottom: .35em; }

/* ---------- trust strip ---------- */

.trust { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust span {
  font-size: .8125rem; font-weight: 600; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
}

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 6px; }
.card p { font-size: .938rem; color: var(--ink-3); margin: 0; }

a.card { display: block; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.card:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  box-shadow: var(--shadow);
}
a.card:hover h3 { color: var(--red); }

.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 8px; background: var(--red-tint); color: var(--red);
  font-size: .8125rem; font-weight: 700;
}

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; }
.stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .875rem; color: var(--ink-3); }

/* ---------- split / prose ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .938rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 650; }

.updated { font-size: .875rem; color: var(--ink-3); margin-bottom: 2em; }

/* ---------- alliance ---------- */

.alliance {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 620px) { .alliance { padding: 24px 22px; } }

/* ---------- team ---------- */

.person img {
  width: 104px; height: 104px; border-radius: 50%;
  margin-bottom: 16px; background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--surface), 0 0 0 6px var(--line-2);
}
.person h3 { margin-bottom: 2px; }
.person .role { font-size: .875rem; font-weight: 620; color: var(--red); margin-bottom: 4px; }
.person .quals { font-size: .8125rem; color: var(--ink-3); margin-bottom: 12px; }
.person p { font-size: .938rem; color: var(--ink-2); margin: 0; }

/* ---------- offices ---------- */

.office h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.office .flag { font-size: 1.05rem; line-height: 1; }
.office address { font-style: normal; font-size: .938rem; color: var(--ink-3); }
.office address a { color: var(--ink-2); }

/* ---------- form ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .938rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.check input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.form-note { font-size: .875rem; color: var(--ink-3); }

/* ---------- contact rows ---------- */

.contact-list { display: grid; gap: 2px; margin: 0; }
.contact-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .938rem;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-weight: 600; color: var(--ink); }
.contact-row dd { margin: 0; color: var(--ink-2); }
.contact-row .when {
  display: inline-block; margin-left: 8px;
  font-size: .75rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
}
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 46px 44px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 52ch; margin: 0; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band { background: var(--surface-2); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .cta-band h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .cta-band p { color: var(--ink-3); }
  :root:not([data-theme="light"]) .cta-band .btn-ghost { color: var(--ink); border-color: var(--line); }
  :root:not([data-theme="light"]) .cta-band .btn-ghost:hover { background: var(--surface); color: var(--ink); }
}
@media (max-width: 620px) { .cta-band { padding: 32px 26px; } }

/* ---------- saas launch page ---------- */

.launch { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 60px 0; }
.launch-card {
  max-width: 620px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 48px 44px;
}
.launch-card .lead { margin-inline: auto; }
.launch-card .btn-row { justify-content: center; margin-top: 28px; }
.launch-url {
  display: inline-block; margin-top: 22px;
  font-size: .8125rem; color: var(--ink-3); font-family: var(--mono);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 11px;
}
.launch-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line);
  text-align: left;
}
.launch-feats h4 { margin-bottom: 3px; }
.launch-feats p { font-size: .8125rem; color: var(--ink-3); margin: 0; }
@media (max-width: 620px) {
  .launch-card { padding: 34px 24px; }
  .launch-feats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- footer ---------- */

.site-foot { background: var(--surface-2); border-top: 1px solid var(--line); padding: 54px 0 30px; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.site-foot h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot ul a { color: var(--ink-2); }
.site-foot ul a:hover { color: var(--red); }
.site-foot .brand { margin-bottom: 14px; }
.foot-blurb { color: var(--ink-3); font-size: .875rem; max-width: 36ch; }
.foot-legal { color: var(--ink-3); font-size: .8125rem; margin-top: 14px; max-width: 36ch; }

.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .8125rem; color: var(--ink-3);
}
.foot-base a { color: var(--ink-3); }
.foot-base a:hover { color: var(--red); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
