/* A&A Technologies LTD — site styles */
:root {
  --brand: #2d2554;
  --brand-900: #16122b;
  --brand-800: #1e1940;
  --brand-700: #2d2554;
  --accent: #5146d8;
  --accent-dark: #3f35b8;
  --accent-soft: #eeedfc;
  --accent-on-dark: #b3adff;
  --ink: #17142b;
  --text: #3b3a4f;
  --muted: #6b6a80;
  --line: #e4e3ee;
  --surface: #ffffff;
  --surface-alt: #f6f6fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 18, 43, 0.04), 0 8px 24px rgba(22, 18, 43, 0.06);
  --heading: "Montserrat", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--heading); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--brand);
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--heading); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1;
}
.brand span small { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); }

nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
nav.main a:hover { color: var(--accent); }
nav.main a.btn { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.outline { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn.outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn.small { padding: 9px 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: #d6d4ea;
  padding: 96px 0 104px;
}
/* Angled strokes echoing the logo's geometry */
.hero::before, .hero::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 140px;
  background: rgba(255, 255, 255, 0.035);
  transform: skewX(-27deg); pointer-events: none;
}
.hero::before { right: 18%; }
.hero::after { right: 2%; width: 70px; background: rgba(255, 255, 255, 0.025); }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
}
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 20px;
}
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(34px, 4.8vw, 52px); line-height: 1.12; letter-spacing: -0.02em;
}
.hero .lede { margin-top: 22px; font-size: 18px; max-width: 580px; color: #c9c6e0; }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.coverage {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 28px;
}
.coverage h2 {
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 18px;
}
.coverage ul { list-style: none; }
.coverage li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15px; color: #dcdaee;
}
.coverage li:first-child { border-top: 0; padding-top: 0; }
.coverage li svg { flex: none; width: 20px; height: 20px; color: var(--accent-on-dark); margin-top: 2px; }
.coverage li strong { display: block; color: #fff; font-weight: 600; }
.coverage li span { font-size: 14px; color: #a9a6c4; }

/* ---------- Technology strip ---------- */
.stack { border-bottom: 1px solid var(--line); padding: 30px 0; background: var(--surface); }
.stack .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stack p { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt);
}

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head .kicker { color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.015em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.service .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service > p { font-size: 15.5px; }
.service ul { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.service li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
.service li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235146d8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -2px; left: 0; padding-top: 10px;
  border-top: 2px solid var(--accent); width: 48px;
  font-family: var(--heading); font-weight: 700; font-size: 13px; color: var(--accent);
}
.steps h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); }

/* Why us */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.why .section-head { margin-bottom: 0; }
.why .section-head p + p { margin-top: 14px; }
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
.point svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.point h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.point p { font-size: 15px; color: var(--muted); }

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  border-radius: 16px; padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; right: 8%; width: 120px;
  background: rgba(255, 255, 255, 0.04); transform: skewX(-27deg);
}
.contact > * { position: relative; z-index: 1; }
.contact h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 14px; }
.contact p { color: #c9c6e0; font-size: 16.5px; }
.contact .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 28px;
}
.contact-card h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.contact-card ul { list-style: none; display: grid; gap: 10px; }
.contact-card li { color: #c9c6e0; font-size: 15px; padding-left: 20px; position: relative; }
.contact-card li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--accent-on-dark);
}
.contact-card .email {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-weight: 600; text-decoration: none;
}
.contact-card .email svg { width: 20px; height: 20px; color: var(--accent-on-dark); }
.contact-card .email:hover { color: var(--accent-on-dark); }

/* ---------- Footer ---------- */
footer.site { background: var(--brand-900); color: #a9a6c4; padding: 64px 0 36px; font-size: 14.5px; }
footer.site .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site .about img { height: 64px; width: auto; margin-bottom: 18px; }
footer.site .about p { max-width: 300px; }
footer.site h3 {
  color: #fff; font-family: var(--heading); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
footer.site ul { list-style: none; display: grid; gap: 10px; }
footer.site a { color: #a9a6c4; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #8a87a6;
}
footer.site .bottom p:last-child { max-width: 640px; }

/* ---------- Legal pages ---------- */
.page-head {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
  padding: 64px 0 56px;
}
.page-head h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: #a9a6c4; margin-top: 10px; font-size: 14.5px; }
.legal { max-width: 800px; padding: 64px 24px 96px; }
.legal > p:first-child { font-size: 17px; color: var(--ink); }
.legal h2 { font-size: 21px; font-weight: 700; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 15.5px; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal .placeholder { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .why, .contact { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  footer.site .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  nav.main {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(22, 18, 43, 0.08);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main a.btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .brand span { font-size: 13.5px; }
  .hero { padding: 64px 0 72px; }
  section.block { padding: 72px 0; }
  .services, .points { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
  .contact { padding: 36px 24px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  footer.site .top { grid-template-columns: 1fr; }
  .legal { padding: 48px 16px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
