:root {
  --bg: #001C2E;
  --bg-alt: #012C4A;
  --surface: #01365C;
  --surface-2: #014477;
  --border: #1B4A6E;
  --text: #EAF1F7;
  --text-muted: #9FBBD1;
  --azure: #70A4D8;
  --green: #98CB00;
  --magenta: #EC008C;
  --font: 'Calibri', 'Carlito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --gradient: linear-gradient(90deg, var(--green), var(--magenta));
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body { line-height: 1.5; }

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

img { max-width: 100%; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.logo svg { display: block; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); }

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

.lang-pill {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  background: none;
  color: var(--text);
}
.lang-pill span { padding: 2px 8px; border-radius: 999px; opacity: 0.55; }
.lang-pill span.is-active { opacity: 1; background: var(--surface-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-alert {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
}
.btn-primary:hover, .btn-secondary:hover, .btn-alert:hover { filter: brightness(1.12); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

#menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg-alt);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  opacity: 0.10;
  filter: blur(2px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--green);
  top: -160px; right: -120px;
}
.hero::after {
  width: 280px; height: 280px;
  background: var(--magenta);
  bottom: -140px; right: 30%;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
.hero-left { max-width: 560px; }
.eyebrow {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--azure);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 480px;
}
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.status-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 380px;
  flex-shrink: 0;
  font-family: var(--mono);
}
.status-panel .row { margin-bottom: 18px; }
.status-panel .row:last-child { margin-bottom: 0; }
.status-panel .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.status-panel .value { font-size: 15px; color: var(--green); font-weight: 500; }

/* ---- Services (fluid flow, not a rigid card grid) ---- */
.services {
  padding: 96px 0;
}
.services-head { text-align: center; margin-bottom: 56px; }
.services h2 { font-size: 30px; margin: 0 0 12px; }
.services .intro {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}
.services-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 880px;
  margin: 0 auto;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: transform 0.15s ease;
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.service-row:hover { transform: translateX(4px); }
.service-row:nth-child(even):hover { transform: translateX(-4px); }
.service-blob {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
}
.service-row:nth-child(5n+1) .service-blob { background: var(--green); }
.service-row:nth-child(5n+2) .service-blob { background: var(--azure); }
.service-row:nth-child(5n+3) .service-blob { background: var(--magenta); }
.service-row:nth-child(5n+4) .service-blob { background: var(--green); }
.service-row:nth-child(5n+5) .service-blob { background: var(--azure); }
.service-row h3 { font-size: 20px; margin: 0 0 6px; }
.service-row p { font-size: 15px; color: var(--text-muted); margin: 0; max-width: 520px; }
.service-row:nth-child(even) p { margin-left: auto; }

/* ---- About ---- */
.about {
  background: var(--bg-alt);
  padding: 88px 0;
  text-align: center;
}
.about h2 { font-size: 26px; margin: 0 0 16px; }
.about p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 16px;
  font-size: 17px;
}
.about p:last-child { margin-bottom: 0; }

/* ---- How we work ---- */
.how {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 38% 62% 55% 45% / 50% 42% 58% 50%;
  background: var(--azure);
  opacity: 0.08;
  left: -140px; bottom: -160px;
  pointer-events: none;
}
.how .container { position: relative; max-width: 760px; }
.how h2 { font-size: 30px; margin: 0 0 28px; text-align: center; }
.how p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 20px;
}
.how p:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */
.faq {
  background: var(--bg-alt);
  padding: 96px 0;
}
.faq h2 { font-size: 30px; margin: 0 0 40px; text-align: center; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 17px;
  margin: 0 0 10px;
  display: flex;
  gap: 12px;
}
.faq-item h3::before {
  content: "?";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 0 38px;
}

/* ---- Service detail sections (index page anchors + dedicated content) ---- */
.service-detail {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.service-detail:nth-child(even) { background: var(--bg-alt); }
.service-detail .container { max-width: 900px; }
.service-detail h2 { font-size: 28px; margin: 0 0 8px; }
.service-detail .sub { color: var(--azure); margin: 0 0 20px; font-size: 16px; }
.service-detail .body-text { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 680px; }
.service-detail .deliverables, .service-detail .why {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.service-detail .deliverables li, .service-detail .why li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}
.service-detail .deliverables li::before,
.service-detail .why li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
}
.service-detail .why li::before { background: var(--magenta); }
.service-detail h3.block-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-family: var(--mono); margin-bottom: 14px; }

/* ---- Contact ---- */
.contact { padding: 88px 0; text-align: center; }
.contact h2 { font-size: 28px; margin: 0 0 32px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--azure); outline-offset: 1px; }
.contact-card .btn-primary { width: 100%; margin-top: 4px; }
#form-note { margin-top: 14px; font-size: 14px; color: var(--green); min-height: 1.2em; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .legal-name { font-family: var(--mono); color: var(--text-muted); font-size: 13px; }
.site-footer nav a { font-size: 13px; color: var(--text-muted); margin-left: 20px; }
.site-footer nav a:hover { color: var(--text); }

/* ---- Palo Alto tech page ---- */
.tech-page { padding: 72px 0; max-width: 760px; margin: 0 auto; }
.tech-page h1 { font-size: 30px; margin-bottom: 16px; }
.tech-page p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.status-note {
  border-left: 3px solid var(--azure);
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--text);
}
.status-note.alert { border-left-color: var(--magenta); }

/* ---- Legal page ---- */
.legal-page { padding: 72px 0; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 28px; margin-bottom: 24px; }
.legal-page h2 { font-size: 18px; margin: 32px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; align-items: flex-start; }
  .status-panel { width: 100%; }
}

@media (max-width: 720px) {
  .service-row, .service-row:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .service-row:nth-child(even) p { margin-left: 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .main-nav.is-open { display: flex; }
  #menu-btn { display: inline-flex; }
  .header-actions .lang-pill { display: none; }
  .hero h1 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .site-footer nav a { margin-left: 0; margin-right: 16px; }
}
