/* ===================================================================
   TECH INDIA SOLUTION — STYLESHEET
   Token system lives at the top. Every color/type/spacing decision
   in the file below should trace back to one of these variables —
   if you need a new value, add it here first, then use it below.
=================================================================== */

:root {
  /* Color */
  --navy:        #0B2545;   /* primary dark — header, footer, hero */
  --navy-deep:   #071A33;   /* darker layer under navy, for depth */
  --blue:        #1565D8;   /* primary accent — CTAs, links */
  --blue-light:  #4C8DF0;
  --circuit-red: #C8372D;   /* secondary accent, used sparingly */
  --ink:         #14213D;   /* body text on light backgrounds */
  --steel:       #5C6B7A;   /* muted / secondary text */
  --paper:       #F5F7FA;   /* page background */
  --paper-dim:   #E8ECF1;
  --white:       #FFFFFF;
  --line:        #D8DEE6;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Scale */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --shadow-card: 0 2px 10px rgba(11, 37, 69, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(11, 37, 69, 0.14);
}

@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;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--circuit-red);
  border-radius: 50%;
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
}

p { margin: 0; line-height: 1.6; }

.section {
  padding: 68px 0;
}
.section--tight { padding: 52px 0; }
.section--dark {
  background: var(--navy);
  color: var(--paper);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--white); }

.section-head {
  max-width: 600px;
  margin-bottom: 32px;
}
.section-head p {
  margin-top: 10px;
  color: var(--steel);
  font-size: 15.5px;
}
.section--dark .section-head p { color: #B9C4D6; }

/* ---------- circuit divider (signature motif, reused between sections) ---------- */
.circuit-divider {
  width: 100%;
  height: 28px;
  overflow: hidden;
}
.circuit-divider svg { width: 100%; height: 100%; display: block; }
.circuit-divider .trace {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.circuit-divider .node {
  fill: var(--circuit-red);
}
.circuit-divider.on-dark .trace { stroke: #1C3A5E; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 37, 69, 0.97);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

nav.primary-nav {
  display: flex;
  gap: 32px;
}
nav.primary-nav a {
  font-size: 14px;
  color: #C7D1E0;
  transition: color 0.15s ease;
}
nav.primary-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 6px 18px rgba(21, 101, 216, 0.35); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 76px 0 88px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy .eyebrow { color: var(--blue-light); }
.hero-copy .eyebrow::before { background: var(--circuit-red); }
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.6vw, 64px);
  margin-top: 18px;
}
.hero h1 .accent { color: var(--blue-light); }
.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: #C7D1E0;
  max-width: 480px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 32px;
  display: flex;
  gap: 36px;
}
.hero-stats div { font-family: var(--font-mono); }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
}
.hero-stats span { font-size: 12px; color: #8FA1BC; text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 420px; }

/* circuit tree growth animation */
.tree-trace {
  fill: none;
  stroke: var(--circuit-red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: grow 2.2s ease forwards;
}
.tree-node {
  fill: var(--navy-deep);
  stroke: var(--circuit-red);
  stroke-width: 2.5;
  opacity: 0;
  animation: appear 0.4s ease forwards;
}
.tree-leaf {
  fill: var(--blue-light);
  opacity: 0;
  animation: appear 0.5s ease forwards;
}
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ===================== VALUE PROPS ===================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-card {
  background: var(--white);
  padding: 28px 22px;
  text-align: left;
}
.value-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.value-card .icon-wrap svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 16px; margin-bottom: 6px; }
.value-card p { font-size: 13.5px; color: var(--steel); }

/* ===================== PRODUCT GRID ===================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--blue-light);
}
.product-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--navy);
}
.product-card .icon-wrap svg { width: 22px; height: 22px; }
.product-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.product-card p { font-size: 12.5px; color: var(--steel); font-family: var(--font-mono); }

/* "add a category" ghost card — signals the grid is meant to grow */
.product-card--ghost {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}
.product-card--ghost .icon-wrap { background: transparent; border: 1px dashed var(--line); }

/* ===================== BRANDS / PARTNERS ===================== */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.brand-badge {
  flex: 1 1 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-badge span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
}

/* ===================== AMC ===================== */
.amc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.amc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid #1C3A5E;
  border-radius: var(--radius);
  padding: 26px;
}
.amc-card .icon-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(21,101,216,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--blue-light);
}
.amc-card .icon-wrap svg { width: 20px; height: 20px; }
.amc-card h3 { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.amc-card p { font-size: 13.5px; color: #AEBBCC; }

.amc-coverage {
  margin-top: 32px;
  border-top: 1px solid #1C3A5E;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #C7D1E0;
}
.amc-coverage strong { color: var(--white); }

/* ===================== CONTACT ===================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--blue);
}
.contact-item .icon-wrap svg { width: 18px; height: 18px; }
.contact-item h3 { font-size: 14px; margin-bottom: 4px; color: var(--navy); }
.contact-item p { font-size: 14.5px; color: var(--steel); }
.contact-item .mono { font-family: var(--font-mono); font-size: 13.5px; }

.map-card {
  margin-top: 28px;
}
.map-embed {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}
.map-links {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}
.map-link:hover { color: var(--navy); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { font-size: 18px; margin-bottom: 6px; }
.contact-form > p { color: var(--steel); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: var(--white);
}
.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--steel);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-deep);
  color: #8FA1BC;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h3 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #6E80A0; max-width: 280px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #16294A;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: #5C6F8C;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================== utility/visible focus ===================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .amc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto 12px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.primary-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .amc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}

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

/* mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 12px 24px 22px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid #16294A;
  color: #C7D1E0;
  font-size: 15px;
}
