/*
  ATEC-styles.css
  Ek hi CSS file: rang, font, spacing, buttons, page ke sab hisse.
  Koi transition ya fade nahi. Hover par rang badalta hai. Koi animation content chhupati nahi.
  Rang ATEC-brand-palette.md se hain. Koi gradient, neela ya purple nahi.

  Fonts: "Public Sans" aur "IBM Plex Mono" abhi download nahi hue. Jab tak
  ATEC-assets/ATEC-fonts/ mein files na hon, browser system font dikhata hai.
  Fonts kaise jodne hain: ATEC-README.md dekhein. Neeche @font-face ka block
  tayyar hai magar comment mein hai.
*/

/*
@font-face {
  font-family: "Public Sans";
  src: url("../ATEC-fonts/ATEC-PublicSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../ATEC-fonts/ATEC-PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../ATEC-fonts/ATEC-PublicSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../ATEC-fonts/ATEC-IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* Spacing scale: sirf yehi qeematein istemal hoti hain */
  --atec-space-1: 4px;
  --atec-space-2: 8px;
  --atec-space-3: 12px;
  --atec-space-4: 16px;
  --atec-space-5: 24px;
  --atec-space-6: 32px;
  --atec-space-7: 48px;
  --atec-space-8: 64px;
  --atec-space-9: 96px;

  /* Fonts */
  --atec-font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --atec-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Text sizes */
  --atec-text-label: 14px;
  --atec-text-small: 16px;
  --atec-text-body: 18px;
  --atec-text-lead: 20px;
  --atec-text-h3: 22px;
  --atec-text-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --atec-text-h1: clamp(2.25rem, 1.2rem + 4.5vw, 4rem);

  /* Brand palette (ATEC-brand-palette.md). Contrast safed ya Ink par ginta gaya hai. */
  --atec-red: #BD1E2C;
  --atec-maroon: #8F1420;
  --atec-ink: #0E0E10;
  --atec-white: #FFFFFF;
  --atec-tint: #F6F1EF;
  --atec-border: #E4DCD9;
  --atec-grey: #5B5B5B;
  --atec-grey-on-dark: #A3A3A3;
  --atec-red-on-dark: #E8505C;
  --atec-green: #1E6B4A;

  /* Sirf review ke liye: [ ] placeholder ka nishan. Launch par yeh sab hat jayega. */
  --atec-marker-bg: #FFF3B0;
  --atec-marker-text: #000000;

  /* Roles */
  --atec-color-text: var(--atec-ink);
  --atec-color-text-muted: var(--atec-grey);
  --atec-color-bg: var(--atec-white);
  --atec-color-bg-alt: var(--atec-tint);
  --atec-color-line: var(--atec-border);
  --atec-color-input-border: var(--atec-grey);
  --atec-color-link: var(--atec-red);
  --atec-color-focus: var(--atec-ink);
  --atec-color-error: var(--atec-maroon);
  --atec-color-success: var(--atec-green);

  --atec-container: 1280px;
  --atec-radius-pill: 999px;
  --atec-radius-box: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--atec-color-bg);
  color: var(--atec-color-text);
  font-family: var(--atec-font-sans);
  font-size: var(--atec-text-body);
  font-weight: 400;
  line-height: 1.5;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg { max-width: 100%; }

a { color: var(--atec-color-link); }

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

em { font-style: italic; font-weight: inherit; }

.atec-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;
}

.atec-skip {
  position: absolute;
  left: -9999px;
  top: var(--atec-space-2);
  z-index: 100;
  padding: var(--atec-space-3) var(--atec-space-4);
  background: var(--atec-ink);
  color: var(--atec-white);
  font-size: var(--atec-text-small);
}
.atec-skip:focus {
  left: var(--atec-space-4);
}

.atec-container {
  width: 100%;
  max-width: var(--atec-container);
  margin-inline: auto;
  padding-inline: var(--atec-space-4);
}

.atec-mono {
  font-family: var(--atec-font-mono);
  font-size: var(--atec-text-label);
  color: var(--atec-color-text-muted);
  letter-spacing: 0.02em;
}

/* Buttons */

.atec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--atec-space-2);
  min-height: 48px;
  padding: var(--atec-space-3) var(--atec-space-5);
  border: 1px solid var(--atec-red);
  border-radius: var(--atec-radius-pill);
  font-family: inherit;
  font-size: var(--atec-text-small);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.atec-btn--filled {
  background: var(--atec-red);
  color: var(--atec-white);
}
.atec-btn--filled:hover {
  background: var(--atec-maroon);
  border-color: var(--atec-maroon);
}

.atec-btn--outline {
  background: var(--atec-white);
  border-color: var(--atec-ink);
  color: var(--atec-ink);
}
.atec-btn--outline:hover {
  background: var(--atec-ink);
  color: var(--atec-white);
}

.atec-btn[disabled] {
  background: var(--atec-grey);
  border-color: var(--atec-grey);
  color: var(--atec-white);
  cursor: default;
}

.atec-btn[aria-busy="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: atec-spin 0.8s linear infinite;
}

@keyframes atec-spin {
  to { transform: rotate(360deg); }
}

.atec-btn__icon { flex: none; }

.atec-actions {
  display: flex;
  flex-direction: column;
  gap: var(--atec-space-3);
}

.atec-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--atec-text-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.atec-link:hover {
  color: var(--atec-maroon);
  text-decoration-thickness: 3px;
}

/* Placeholder markers (launch se pehle Asad ko bharne hain) */

.atec-placeholder,
.atec-placeholder-tag {
  background: var(--atec-marker-bg);
  color: var(--atec-marker-text);
  outline: 1px dashed var(--atec-marker-text);
  outline-offset: 0;
  font-size: var(--atec-text-small);
}
.atec-placeholder {
  display: block;
  padding: var(--atec-space-2) var(--atec-space-3);
}
.atec-placeholder-tag {
  display: inline-block;
  padding: 0 var(--atec-space-1);
}

/* Top bar */

.atec-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--atec-white);
  border-bottom: 1px solid var(--atec-color-line);
  box-shadow: 0 2px 0 var(--atec-color-line);
}
.atec-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--atec-space-3);
  min-height: 64px;
  padding-block: var(--atec-space-2);
}
.atec-logo {
  display: block;
  flex: none;
}
.atec-logo img {
  display: block;
  height: 44px;
  width: auto;
}
.atec-topbar .atec-btn {
  flex: 0 1 160px;
  padding: var(--atec-space-2) var(--atec-space-4);
  font-size: var(--atec-text-label);
}
.atec-nav { display: none; }
.atec-nav__list {
  display: flex;
  align-items: center;
  gap: var(--atec-space-6);
}
.atec-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--atec-ink);
  font-size: var(--atec-text-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.atec-nav a:hover { color: var(--atec-red); text-decoration: underline; text-underline-offset: 4px; }

/* Sections */

.atec-section {
  padding-block: var(--atec-space-8);
}
.atec-section--alt {
  background: var(--atec-color-bg-alt);
}
.atec-h1 {
  font-size: var(--atec-text-h1);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.atec-h2 {
  font-size: var(--atec-text-h2);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.atec-section__head { margin-bottom: var(--atec-space-7); }
.atec-lead {
  font-size: var(--atec-text-body);
  color: var(--atec-color-text-muted);
}

/* Hero */

.atec-hero {
  padding-block: var(--atec-space-8);
  text-align: center;
}
.atec-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--atec-space-5);
  max-width: 900px;
  margin-inline: auto;
}
.atec-hero .atec-actions { width: 100%; align-items: stretch; }

/* Services */

.atec-services {
  border-top: 1px solid var(--atec-color-line);
}
.atec-service {
  display: grid;
  gap: var(--atec-space-3);
  padding-block: var(--atec-space-6);
  border-bottom: 1px solid var(--atec-color-line);
}
.atec-service__name {
  font-size: var(--atec-text-h3);
  font-weight: 400;
  line-height: 1.3;
}
.atec-service__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--atec-space-2);
  color: var(--atec-color-text-muted);
}

/* Mid CTA */

.atec-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--atec-space-5);
}
.atec-cta__text {
  font-size: var(--atec-text-h2);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Process */

.atec-steps {
  display: grid;
  gap: var(--atec-space-6);
}
.atec-step {
  display: grid;
  gap: var(--atec-space-2);
  padding-top: var(--atec-space-4);
  border-top: 1px solid var(--atec-color-line);
}
.atec-step__title {
  font-size: var(--atec-text-h3);
  font-weight: 400;
  line-height: 1.3;
}
.atec-step p { color: var(--atec-color-text-muted); }
.atec-note {
  margin-top: var(--atec-space-6);
  color: var(--atec-color-text-muted);
}

/* Why A-TEC */

.atec-points {
  display: grid;
  gap: var(--atec-space-6);
}
.atec-point {
  display: grid;
  align-content: start;
  gap: var(--atec-space-2);
  padding-top: var(--atec-space-4);
  border-top: 1px solid var(--atec-color-line);
}
.atec-point__title {
  font-size: var(--atec-text-h3);
  font-weight: 400;
  line-height: 1.3;
}
.atec-point p { color: var(--atec-color-text-muted); }
.atec-point .atec-placeholder { color: var(--atec-marker-text); }

/* FAQ */

.atec-faq {
  border-top: 1px solid var(--atec-color-line);
}
.atec-faq details {
  border-bottom: 1px solid var(--atec-color-line);
}
.atec-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--atec-space-4);
  min-height: 56px;
  padding-block: var(--atec-space-3);
  font-size: var(--atec-text-body);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.atec-faq summary::-webkit-details-marker { display: none; }
.atec-faq summary::after {
  content: "+";
  flex: none;
  color: var(--atec-red);
  font-family: var(--atec-font-mono);
  font-size: var(--atec-text-h3);
}
.atec-faq details[open] summary::after { content: "\2212"; }
.atec-faq__answer {
  padding-bottom: var(--atec-space-5);
  color: var(--atec-color-text-muted);
}

/* Closing CTA and form */

.atec-formsec {
  display: grid;
  gap: var(--atec-space-7);
}
.atec-formsec__intro {
  display: grid;
  align-content: start;
  gap: var(--atec-space-4);
}
.atec-disclaimer {
  margin-top: var(--atec-space-5);
  font-size: var(--atec-text-small);
  color: var(--atec-color-text-muted);
}

.atec-form {
  display: grid;
  gap: var(--atec-space-5);
}
.atec-field {
  display: grid;
  gap: var(--atec-space-2);
}
.atec-label {
  font-size: var(--atec-text-small);
  font-weight: 500;
}
.atec-hint {
  font-size: var(--atec-text-small);
  color: var(--atec-color-text-muted);
}
.atec-input,
.atec-select,
.atec-textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--atec-space-3) var(--atec-space-4);
  border: 1px solid var(--atec-color-input-border);
  border-radius: 12px;
  background: var(--atec-white);
  color: var(--atec-color-text);
  font-family: inherit;
  font-size: var(--atec-text-body);
  line-height: 1.4;
}
.atec-textarea {
  min-height: 120px;
  resize: vertical;
}
.atec-input[aria-invalid="true"],
.atec-select[aria-invalid="true"],
.atec-textarea[aria-invalid="true"] {
  border: 2px solid var(--atec-color-error);
}

/* Error: Deep Maroon border, "Ghalti:" lafz aur icon. Kabhi sirf rang se nahi. */
.atec-error {
  display: flex;
  align-items: flex-start;
  gap: var(--atec-space-2);
  font-size: var(--atec-text-small);
  font-weight: 500;
  color: var(--atec-color-error);
}
.atec-error::before,
.atec-panel--error .atec-panel__msg::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--atec-color-error);
  color: var(--atec-white);
  font-size: var(--atec-text-label);
  font-weight: 700;
  line-height: 1;
}

.atec-consent {
  display: grid;
  gap: var(--atec-space-2);
}
.atec-consent__row {
  display: flex;
  align-items: flex-start;
  gap: var(--atec-space-3);
  font-size: var(--atec-text-small);
  line-height: 1.5;
}
.atec-consent__row input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--atec-ink);
}
.atec-consent__row a { font-weight: 500; }
.atec-datanote {
  font-size: var(--atec-text-small);
  color: var(--atec-color-text-muted);
}

/* Honeypot: nazar nahi aata, keyboard aur screen reader se bhi hata hua */
.atec-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form ke panels: error summary, failure, blocked, success */

.atec-panel {
  display: grid;
  gap: var(--atec-space-4);
  padding: var(--atec-space-5);
  border: 1px solid var(--atec-color-input-border);
  border-radius: var(--atec-radius-box);
  background: var(--atec-white);
}
.atec-panel--error { border: 2px solid var(--atec-color-error); }
.atec-panel--error .atec-panel__msg {
  display: flex;
  align-items: flex-start;
  gap: var(--atec-space-2);
  font-weight: 500;
  color: var(--atec-color-error);
}
.atec-panel--success { border: 2px solid var(--atec-color-success); }
.atec-panel--success .atec-panel__title {
  display: flex;
  align-items: flex-start;
  gap: var(--atec-space-2);
  color: var(--atec-color-success);
}
.atec-panel--success .atec-panel__title::before {
  content: "\2713";
  content: "\2713" / "";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--atec-color-success);
  color: var(--atec-white);
  font-size: var(--atec-text-small);
  line-height: 1;
}
.atec-panel__title {
  font-size: var(--atec-text-h3);
  font-weight: 500;
  line-height: 1.3;
}
.atec-panel a { font-weight: 500; }
.atec-summary {
  display: grid;
  gap: var(--atec-space-3);
}
.atec-summary dt {
  font-size: var(--atec-text-label);
  font-family: var(--atec-font-mono);
  color: var(--atec-color-text-muted);
}
.atec-summary dd { overflow-wrap: anywhere; }
.atec-errorlist {
  display: grid;
  gap: var(--atec-space-2);
  font-size: var(--atec-text-small);
}
.atec-errorlist li {
  display: flex;
  align-items: flex-start;
  gap: var(--atec-space-2);
}
.atec-errorlist li::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--atec-color-error);
  color: var(--atec-white);
  font-size: var(--atec-text-label);
  font-weight: 700;
  line-height: 1;
}
.atec-errorlist a { color: var(--atec-color-error); font-weight: 500; }

/* Footer (Ink, safed text, doosri darje ka text grey-on-dark) */

.atec-footer {
  background: var(--atec-ink);
  color: var(--atec-grey-on-dark);
  padding-block: var(--atec-space-8);
}
.atec-footer :focus-visible { outline-color: var(--atec-white); }
.atec-footer__grid {
  display: grid;
  gap: var(--atec-space-6);
}
.atec-footer__logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: var(--atec-space-4);
}
.atec-footer__title {
  font-size: var(--atec-text-body);
  font-weight: 500;
  color: var(--atec-white);
  margin-bottom: var(--atec-space-3);
}
.atec-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--atec-white);
}
.atec-footer a:hover { color: var(--atec-red-on-dark); }
.atec-footer li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--atec-space-2); }
.atec-footer__legal {
  margin-top: var(--atec-space-7);
  padding-top: var(--atec-space-5);
  border-top: 1px solid var(--atec-grey);
  font-size: var(--atec-text-small);
  color: var(--atec-grey-on-dark);
  display: grid;
  gap: var(--atec-space-3);
}

/* Tablet */

@media (min-width: 700px) {
  .atec-container { padding-inline: var(--atec-space-6); }
  .atec-hero .atec-actions { flex-direction: row; justify-content: center; width: auto; }
  .atec-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atec-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop */

@media (min-width: 900px) {
  .atec-section { padding-block: var(--atec-space-9); }
  .atec-hero { padding-block: var(--atec-space-9); }
  .atec-logo img { height: 52px; }
  .atec-nav { display: block; }
  .atec-topbar .atec-btn { flex: none; font-size: var(--atec-text-small); padding: var(--atec-space-3) var(--atec-space-5); }
  .atec-service {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--atec-space-6);
    align-items: start;
  }
  .atec-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .atec-cta__text { max-width: 720px; }
  .atec-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: var(--atec-space-8);
  }
  .atec-formsec { grid-template-columns: 1fr 1fr; gap: var(--atec-space-8); align-items: start; }
  .atec-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .atec-container { padding-inline: var(--atec-space-8); }
}

@media (prefers-reduced-motion: reduce) {
  .atec-btn[aria-busy="true"]::after { animation: none; }
}
