/* ==============================
   Reset
================================ */

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

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

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
}

/* ==============================
   Variables
================================ */

:root {
  --primary: #0b1220;
  --secondary: #111827;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #38bdf8;
  --text: #1f2937;
  --text-light: #64748b;
  --text-on-dark: #f8fafc;
  --text-muted-dark: #94a3b8;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --background-dark: #0b1220;
  --border: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.18);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-height: 80px;
  --header-height-scrolled: 68px;
  --container: 1120px;
  --transition: 0.25s ease;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* ==============================
   Typography
================================ */

h1,
h2,
h3,
h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-light);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   Base Layout
================================ */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--background-alt);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ==============================
   Buttons
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--background-alt);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ==============================
   Header
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    height var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  border-bottom-color: var(--border-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: rgba(11, 18, 32, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo:hover,
.logo:focus-visible {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list a {
  position: relative;
  color: var(--text-muted-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: #fff;
}

.nav-list a[aria-current="page"]::after,
.nav-list a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.header-cta .btn {
  min-height: 42px;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.header-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #fff;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color var(--transition);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==============================
   Hero
================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #111827 55%, #0b1220 100%);
  color: var(--text-on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content .eyebrow {
  color: var(--accent-light);
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: #fff;
  max-width: 14ch;
}

.hero-content p {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--text-muted-dark);
  font-size: 1.125rem;
  line-height: 1.7;
}

.page-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(37, 99, 235, 0.18), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #111827 100%);
  color: var(--text-on-dark);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  color: #fff;
}

.page-hero p {
  max-width: 40rem;
  color: var(--text-muted-dark);
  font-size: 1.0625rem;
}

/* Hero tech visual */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.tech-visual {
  position: relative;
  width: 100%;
  height: 420px;
}

.tech-visual .grid-plane {
  position: absolute;
  inset: 10% 5% 15% 10%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(11, 18, 32, 0.7)),
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: var(--shadow-lg);
}

.tech-visual .node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15);
}

.tech-visual .node-1 { top: 22%; left: 28%; }
.tech-visual .node-2 { top: 38%; left: 62%; background: var(--accent); }
.tech-visual .node-3 { top: 58%; left: 40%; }
.tech-visual .node-4 { top: 70%; left: 72%; background: var(--accent); }

.tech-visual .connector {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
  transform-origin: left center;
}

.tech-visual .connector-1 {
  top: 25%;
  left: 30%;
  width: 120px;
  transform: rotate(18deg);
}

.tech-visual .connector-2 {
  top: 42%;
  left: 42%;
  width: 90px;
  transform: rotate(55deg);
}

.tech-visual .connector-3 {
  top: 62%;
  left: 43%;
  width: 110px;
  transform: rotate(-12deg);
}

.code-card {
  position: absolute;
  width: min(240px, 70%);
  padding: 1rem 1.125rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.code-card-1 {
  top: 12%;
  right: 4%;
}

.code-card-2 {
  bottom: 18%;
  left: 0;
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.code-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
}

.code-card-dot:nth-child(1) { background: #f87171; }
.code-card-dot:nth-child(2) { background: #fbbf24; }
.code-card-dot:nth-child(3) { background: #34d399; }

.code-card pre {
  margin: 0;
  color: #cbd5e1;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.code-card .c-key { color: #38bdf8; }
.code-card .c-str { color: #86efac; }
.code-card .c-num { color: #fbbf24; }

.arch-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.arch-badge-1 {
  top: 48%;
  right: 8%;
}

.arch-badge-2 {
  bottom: 8%;
  right: 22%;
}

.arch-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

/* ==============================
   Capabilities Bar
================================ */

.capabilities-bar {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.capabilities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
}

.capabilities-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.capabilities-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==============================
   Sections
================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.intro-copy h2 {
  max-width: 16ch;
}

.intro-copy p {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.value-cards {
  display: grid;
  gap: 1.25rem;
}

.value-card,
.service-card,
.why-card,
.how-card,
.process-step,
.service-detail,
.leader-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.value-card {
  padding: 1.5rem;
}

.value-card:hover,
.service-card:hover,
.why-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.value-card h3,
.service-card h3,
.why-card h3 {
  margin-bottom: 0.625rem;
}

.value-card p,
.service-card p,
.why-card p {
  font-size: 0.9375rem;
}

/* Services preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 1.75rem;
  height: 100%;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background-alt);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Process */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  background: var(--background);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.process-step h3 {
  margin-bottom: 0.625rem;
}

.process-step p {
  font-size: 0.9375rem;
}

/* Technology */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-group {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
}

.tech-group h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background-alt);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 1.75rem 1.5rem;
}

.why-card .service-icon {
  margin-bottom: 1rem;
}

/* CTA Banner */
.cta-banner {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(37, 99, 235, 0.25), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #111827 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.cta-inner p {
  max-width: 32rem;
  color: var(--text-muted-dark);
  font-size: 1.0625rem;
}

/* ==============================
   Cards — Services Detail
================================ */

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: calc(var(--header-height-scrolled) + 1.5rem);
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}

.service-detail-icon svg {
  width: 26px;
  height: 26px;
}

.service-detail h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.service-detail > div > p {
  margin-bottom: 1.5rem;
  max-width: 48rem;
}

.service-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-meta h3 {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--primary);
}

.service-meta ul {
  display: grid;
  gap: 0.5rem;
}

.service-meta li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.service-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-content p {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.how-card {
  padding: 1.75rem;
}

.how-card h3 {
  margin-bottom: 0.625rem;
}

.how-card p {
  font-size: 0.9375rem;
}

.leader-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 36rem;
  padding: 2rem;
}

.leader-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.leader-card h3 {
  margin-bottom: 0.25rem;
}

.leader-role {
  margin-bottom: 0.875rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.leader-card p {
  font-size: 0.9375rem;
}

/* ==============================
   Forms / Contact
================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrap,
.contact-info-wrap {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-group .required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.contact-info-wrap h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.contact-info-wrap > p {
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.contact-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.contact-block:last-child {
  padding-bottom: 0;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
}

.contact-block p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-block .address {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ==============================
   Footer
================================ */

.site-footer {
  padding: 4rem 0 0;
  background: var(--primary);
  color: var(--text-muted-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 18rem;
  color: var(--text-muted-dark);
  font-size: 0.9375rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.625rem;
}

.footer-col a {
  color: var(--text-muted-dark);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
}

.footer-col p {
  color: var(--text-muted-dark);
  font-size: 0.9375rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
  color: var(--text-muted-dark);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted-dark);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

/* ==============================
   Reveal Animations
================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Responsive
================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content h1 {
    max-width: none;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    min-height: 360px;
  }

  .tech-visual {
    height: 360px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .tech-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --header-height-scrolled: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    background: rgba(11, 18, 32, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .site-header.is-scrolled .nav {
    top: var(--header-height-scrolled);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-list a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav .header-cta-mobile {
    display: block;
    margin-top: 1rem;
  }

  .nav .header-cta-mobile .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .services-grid,
  .process-timeline,
  .tech-groups,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero-visual,
  .tech-visual {
    min-height: 300px;
    height: 300px;
  }

  .code-card {
    width: min(200px, 65%);
    padding: 0.75rem;
  }

  .code-card pre {
    font-size: 0.6875rem;
  }

  .leader-card {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 3.5rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
