:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #111419;
  --muted: #576171;
  --line: #dbe2eb;
  --accent: #0d5bd7;
  --accent-2: #0a8f8e;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(15, 33, 62, 0.08);
  --container: min(1120px, 92vw);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(13, 91, 215, 0.08), transparent 35%),
    radial-gradient(circle at 92% 18%, rgba(10, 143, 142, 0.09), transparent 38%),
    var(--bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(17, 20, 25, 0.08) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  z-index: -1;
}

.container { width: var(--container); margin: 0 auto; }

/* ─── Header & Nav ──────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(9px);
  background: rgba(246, 248, 251, 0.78);
  border-bottom: 1px solid rgba(219, 226, 235, 0.7);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(13, 91, 215, 0.06);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(13, 91, 215, 0.08);
}

.nav-link--cta {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #2b66c8 52%, var(--accent-2));
  box-shadow: 0 6px 18px rgba(13, 91, 215, 0.2);
  padding: 0.5rem 1rem;
}

.nav-link--cta:hover {
  color: #fff;
  background: linear-gradient(120deg, #0b4fb8, #236ac4 52%, #088180);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 91, 215, 0.28);
}

.nav-link--cta.active {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #2b66c8 52%, var(--accent-2));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

main { display: block; }

/* ─── Home Hero ─────────────────────────────── */

.hero {
  min-height: min(90vh, 860px);
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  padding: 4.2rem 0 3rem;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 4.2vw, 3.7rem);
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  margin: 1.05rem 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta,
.ghost {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.14rem;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #2b66c8 52%, var(--accent-2));
  box-shadow: 0 12px 28px rgba(13, 91, 215, 0.24);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(13, 91, 215, 0.3);
}

.cta.small { padding: 0.56rem 0.94rem; }

.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.ghost:hover {
  transform: translateY(-1px);
  background: #fff;
}

.trust-line {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.trust-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  color: #2f3743;
  background: rgba(255, 255, 255, 0.72);
}

.hero-art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: min(2.2vw, 1.1rem);
}

.hero-art img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ─── Shared Section Styles ─────────────────── */

.services,
.technical,
.experience,
.initiatives-section,
.about-section {
  padding: 3rem 0;
}

.services h2,
.technical h2,
.experience h2,
.contact h2,
.initiatives-section h2,
.about-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 75ch;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.cap-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.card img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.card h3,
.cap-card h3 {
  margin-top: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.card p,
.cap-card p,
.experience p {
  margin: 0.62rem 0 0;
  color: var(--muted);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Card with link styling */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-link:hover {
  transform: translateY(-2px);
}

.card-link:hover .card {
  box-shadow: 0 28px 68px rgba(15, 33, 62, 0.12);
  border-color: rgba(13, 91, 215, 0.2);
}

/* ─── Page Hero (inner pages) ───────────────── */

.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero .eyebrow {
  margin: 0 0 0.6rem;
}

.page-hero h1 {
  max-width: 22ch;
  margin: 0 auto;
}

.page-hero .lead {
  max-width: 60ch;
  margin: 1rem auto 0;
  text-align: center;
}

/* ─── Initiative Pills (home teaser) ────────── */

.initiative-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.initiative-pill {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: all 180ms ease;
}

.initiative-pill:hover {
  background: rgba(13, 91, 215, 0.08);
  border-color: rgba(13, 91, 215, 0.3);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ─── AI Initiatives Grid ───────────────────── */

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.initiative-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.initiative-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 68px rgba(15, 33, 62, 0.12);
}

.initiative-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, rgba(13, 91, 215, 0.1), rgba(10, 143, 142, 0.1));
}

.initiative-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.initiative-card p {
  color: var(--muted);
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.07);
  color: #1a4a9e;
  border: 1px solid rgba(13, 91, 215, 0.12);
}

/* ─── Services Page ─────────────────────────── */

.service-detail {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-bottom: 0.8rem;
}

.service-detail p {
  color: var(--muted);
  margin: 0.5rem 0;
}

.deliverables {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.deliverables li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.service-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-visual img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

/* ─── About Page ────────────────────────────── */

.about-narrative {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-narrative p {
  color: var(--muted);
  margin: 0.8rem 0;
  font-size: 1.02rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.tech-category {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.2rem;
}

.tech-category h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.tech-category li {
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.value-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.value-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

/* ─── Contact Page ──────────────────────────── */

.contact {
  margin: 0 0 3.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(232, 239, 251, 0.68));
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.2vw, 2rem);
}

.contact p {
  margin: 0.75rem 0 1.15rem;
  color: var(--muted);
  max-width: 72ch;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-form label {
  font-weight: 600;
  color: #29313d;
  display: grid;
  gap: 0.38rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #cad8ea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.7rem 0.78rem;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23576171' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(13, 91, 215, 0.18);
  border-color: #7ba4e0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

#formStatus {
  margin: 0;
  font-size: 0.92rem;
  color: #2f3743;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ─── FAQ ────────────────────────────────────── */

.faq {
  padding: 2.5rem 0 3rem;
}

.faq h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 1.2rem 1rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CTA Banner ────────────────────────────── */

.cta-banner {
  text-align: center;
  padding: 3rem 0;
}

.cta-banner h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.cta-banner p {
  color: var(--muted);
  margin: 0 auto 1.4rem;
  max-width: 50ch;
}

/* ─── Footer ────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  color: #5e6674;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 30ch;
}

.footer-links h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ─── Thank You Page ────────────────────────── */

.thank-you {
  text-align: center;
  padding: 6rem 0;
}

.thank-you h1 {
  max-width: 20ch;
  margin: 0 auto;
}

.thank-you p {
  color: var(--muted);
  margin: 1rem auto;
  max-width: 50ch;
}

/* ─── Animations ────────────────────────────── */

.reveal-up,
.reveal-fade {
  animation-duration: 720ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up { animation-name: riseIn; }
.reveal-fade { animation-name: fadeIn; }

.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 150ms; }
.delay-3 { animation-delay: 220ms; }
.delay-4 { animation-delay: 290ms; }
.delay-5 { animation-delay: 360ms; }
.delay-6 { animation-delay: 430ms; }
.delay-7 { animation-delay: 500ms; }
.delay-8 { animation-delay: 570ms; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.7rem;
  }

  .grid-3,
  .cap-grid,
  .form-grid,
  .initiatives-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-inner {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  h1 { max-width: 20ch; }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(246, 248, 251, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    gap: 0.25rem;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .initiatives-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .initiatives-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
