/* ============================================================
   Astria Logic — Global Stylesheet
   Primary references: Cyberpex (structure), GPT-X (palette/feel)
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-bg:          #080810;
  --color-surface:     #0d0d18;
  --color-card:        #111120;
  --color-card-hover:  #14142a;
  --color-border:      rgba(255, 255, 255, 0.07);
  --color-border-blue: rgba(58, 123, 252, 0.3);

  --color-blue:        #3a7bfc;
  --color-blue-light:  #6ba0ff;
  --color-blue-dim:    #1d4ed8;
  --color-blue-glow:   rgba(58, 123, 252, 0.12);
  --color-blue-glow2:  rgba(58, 123, 252, 0.06);

  --color-white:       #eef2ff;
  --color-white-dim:   #c8d0e8;
  --color-muted:       #7a849a;
  --color-muted-light: #9aa3b8;
  --color-gold:        #c9a84c;

  --color-green:       #34d399;
  --color-red-soft:    #f87171;

  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:      1160px;
  --section-py: 6.5rem;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: #05060c;
  background-image:
    /* hero focal glow — strongest at top */
    radial-gradient(ellipse 100% 48% at 50% 0%,   rgba(18, 52, 165, 0.18) 0%, transparent 60%),
    /* mid-page ambient — very faint, keeps atmosphere alive through content */
    radial-gradient(ellipse  60% 25% at 50% 52%,  rgba(10, 26,  92, 0.07) 0%, transparent 55%);
  color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

p {
  color: var(--color-muted-light);
  line-height: 1.8;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.75rem;
}

section {
  padding-block: var(--section-py);
}

/* ---------- Utility ---------- */
.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1.1rem;
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }

/* Subtle divider line */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-blue-dim);
  border-color: var(--color-blue-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(58, 123, 252, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white-dim);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-border-blue);
  color: var(--color-white);
  background: var(--color-blue-glow2);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(6, 7, 14, 0.65);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-logo .dot {
  color: var(--color-gold);
  font-size: 1.3rem;
  line-height: 0;
  position: relative;
  top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--color-muted-light);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

.nav-links .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Hamburger → X */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.75rem 1.5rem;
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  padding-bottom: 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.75rem;
}

.footer-brand .nav-logo { margin-bottom: 0.9rem; }
.footer-brand p {
  font-size: 0.87rem;
  max-width: 30ch;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--color-muted-light);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-muted);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(68px + 6rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
  background: transparent;
}

/* No grid — smooth surface only */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  pointer-events: none;
}

/* Blue radial glow */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  height: 700px;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(40, 90, 210, 0.18) 0%, rgba(20, 55, 160, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Eyebrow badge */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: fit-content;
  background: rgba(7, 10, 20, 0.82);
  border-radius: 999px;
  padding: 0.52rem 1.15rem 0.52rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(58,123,252,0.18);
}

.hero-badge > * {
  position: relative;
  z-index: 2;
}

.hero-badge::before,
.hero-badge::after {
  content: none !important;
  display: none !important;
}

.hero-badge-text {
  position: relative;
  z-index: 2;
}

.hero-badge-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #86a8ff;
  box-shadow: 0 0 10px rgba(88,138,255,0.45);
  flex: 0 0 auto;
}

.hero-badge-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


.pulse {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 100;
}

.pulse.glow {
  stroke: rgba(58, 123, 252, 1);
  stroke-width: 1.4;
  filter: blur(3.5px);
  opacity: 1;
}

.pulse.core {
  stroke: rgba(235, 245, 255, 0.72);
  stroke-width: 0.55;
}

.top {
  animation: move-top 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.bottom {
  animation: move-bottom 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes move-top {
  0% {
    stroke-dashoffset: 118;
  }
  100% {
    stroke-dashoffset: -18;
  }
}

@keyframes move-bottom {
  0% {
    stroke-dashoffset: -18;
  }
  100% {
    stroke-dashoffset: 118;
  }
}

/* Headline */
.hero h1 {
  max-width: 19ch;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-blue);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted-light);
  max-width: 44ch;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

/* Stats row */
.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-stat span {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ============================================================
   SECTION — PROBLEM
   ============================================================ */
.section-problem {
  background:    transparent;
  border-top:    none;
  border-bottom: none;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2.25rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.problem-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-red-soft);
  margin-top: 2px;
  font-weight: 700;
}
.problem-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.problem-item p {
  font-size: 0.87rem;
  line-height: 1.7;
}

/* Right-side callout card */
.problem-callout {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
}
.problem-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.problem-callout blockquote {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.65;
  border-left: 3px solid var(--color-blue);
  padding-left: 1.35rem;
  margin-bottom: 1.75rem;
  font-style: italic;
}
.problem-callout p {
  font-size: 0.875rem;
  line-height: 1.75;
}
.callout-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  display: block;
}

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


/* ============================================================
   SECTION — WHAT WE FIX
   ============================================================ */
.fix-header {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}
.fix-header p { margin-top: 0.9rem; }

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

.fix-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.fix-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.fix-card:hover {
  border-color: var(--color-border-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(58, 123, 252, 0.09);
}
.fix-card:hover::after { opacity: 1; }

.fix-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--color-blue-glow);
  border: 1px solid rgba(58, 123, 252, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.fix-icon svg {
  width: 20px; height: 20px;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fix-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}
.fix-card p { font-size: 0.88rem; line-height: 1.75; }

@media (max-width: 640px) { .fix-grid { grid-template-columns: 1fr; } }


/* ============================================================
   SECTION — WHY ASTRIA LOGIC
   ============================================================ */
.section-why {
  background:    transparent;
  border-top:    none;
  border-bottom: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.25rem;
}
.why-point {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.why-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-blue-glow);
  border: 1px solid rgba(58, 123, 252, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-top: 1px;
}
.why-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.why-text p { font-size: 0.875rem; line-height: 1.75; }

/* Right visual */
.why-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.metric-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.metric-label {
  font-size: 0.83rem;
  color: var(--color-muted-light);
}
.metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-green);
  white-space: nowrap;
}
.metric-val.red { color: #f87171; }

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


/* ============================================================
   SECTION — HOW WE WORK
   ============================================================ */
.steps-header {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.steps-connector {
  position: absolute;
  top: 27px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), var(--color-border-blue), var(--color-border));
  pointer-events: none;
}

.step-card {
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 auto 1.4rem;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.85rem; line-height: 1.75; }

@media (max-width: 780px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-connector { display: none; }
}
@media (max-width: 460px) {
  .steps-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   SECTION — OUTCOMES
   ============================================================ */
.section-outcomes {
  background:    transparent;
  border-top:    none;
  border-bottom: none;
}

.outcomes-header {
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.outcome-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition);
}
.outcome-card:hover { border-color: var(--color-border-blue); }

.outcome-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.04em;
}
.outcome-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}
.outcome-card p { font-size: 0.85rem; line-height: 1.75; }

@media (max-width: 780px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .outcomes-grid { grid-template-columns: 1fr; } }


/* ============================================================
   SECTION — FINAL CTA
   ============================================================ */
.section-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(58, 123, 252, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.section-cta .container { position: relative; z-index: 1; }
.section-cta h2 { margin-bottom: 1.1rem; }
.section-cta > .container > p {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ============================================================
   PAGE HERO — Inner pages
   ============================================================ */
.page-hero {
  padding-top: calc(68px + 5.5rem);
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(58, 123, 252, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero p  {
  font-size: 1.1rem;
  max-width: 50ch;
  line-height: 1.75;
}


/* ============================================================
   WHAT WE DO PAGE — Service blocks
   ============================================================ */
.services-section { padding-block: 0; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding-block: 5rem;
  border-bottom: 1px solid var(--color-border);
}
.service-block:last-child { border-bottom: none; }
.service-block.flip { direction: rtl; }
.service-block.flip > * { direction: ltr; }

.service-meta .label { margin-bottom: 0.75rem; }
.service-meta h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 1.1rem;
}
.service-meta > p { margin-bottom: 2rem; }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-light);
  line-height: 1.6;
}
.service-list-item::before {
  content: '';
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-blue);
  margin-top: 7px;
}

/* Service visual card */
.service-visual {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.visual-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.visual-row-label { font-size: 0.8rem; color: var(--color-muted-light); }
.visual-row-value { font-size: 0.82rem; font-weight: 600; color: var(--color-white); }
.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.tag-blue  { background: rgba(58, 123, 252, 0.15); color: var(--color-blue-light); }
.tag-green { background: rgba(52, 211, 153, 0.12); color: var(--color-green); }
.tag-amber { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 2.5rem; direction: ltr; }
  .service-block.flip { direction: ltr; }
}


/* ============================================================
   APPROACH PAGE — Phase blocks
   ============================================================ */
.phases-section { padding-top: 4rem; }

.phase-block {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  padding-block: 4rem;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.phase-block:last-child { border-bottom: none; }

.phase-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(58, 123, 252, 0.13);
  letter-spacing: -0.06em;
  line-height: 1;
  padding-top: 4px;
}
.phase-content h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}
.phase-content > p {
  max-width: 58ch;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.phase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.phase-tag {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  font-size: 0.76rem;
  color: var(--color-muted-light);
}

@media (max-width: 640px) {
  .phase-block { grid-template-columns: 1fr; gap: 1.25rem; }
  .phase-num { font-size: 2.8rem; }
}

/* Principles */
.section-principles {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.principles-header {
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.principle-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.principle-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--color-blue-glow);
  border: 1px solid rgba(58, 123, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.principle-icon svg {
  width: 18px; height: 18px;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle-card h4 { font-size: 0.95rem; margin-bottom: 0.45rem; }
.principle-card p  { font-size: 0.86rem; line-height: 1.75; }

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


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding-top: 4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.1rem; }
.contact-info > p { margin-bottom: 2.75rem; line-height: 1.8; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--color-blue-glow);
  border: 1px solid rgba(58, 123, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.contact-item p {
  font-size: 0.925rem;
  color: var(--color-white);
}

/* Form */
.contact-form-wrap {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.55rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.78rem 1rem;
  font-size: 0.9rem;
  color: var(--color-white);
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237a849a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--color-card); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(122, 132, 154, 0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(58, 123, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(58, 123, 252, 0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}
.form-btn {
  width: 100%;
  justify-content: center;
  padding: 0.9rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--color-green);
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }


/* ============================================================
   VISUAL UPGRADE v2 — Hero Refinements (applied first pass)
   ============================================================ */

/* 1. Hero ::before — clear, page bg shows through */
.hero::before {
  background-image:   none;
  background:         none;
  mask-image:         none;
  -webkit-mask-image: none;
}

/* Hero focal glow — page's brightest atmospheric point */
.hero-glow {
  width:  1500px;
  height: 760px;
  top:    -220px;
  background:
    radial-gradient(ellipse 34% 32% at 50% 40%, rgba(28, 70, 192, 0.15) 0%, transparent 58%),
    radial-gradient(ellipse 72% 56% at 50% 42%, rgba(14, 36, 118, 0.07) 0%, transparent 80%);
}

/* 2. Hero content — center */
.hero .container { text-align: center; position: relative; z-index: 2; }
.hero h1              { margin-inline: auto; }
.hero .hero-sub       { margin-inline: auto; }
.hero .hero-actions   { justify-content: center; }
.hero .hero-stats     { justify-content: center; }


/* ============================================================
   VISUAL UPGRADE v3 — Rebuilt circuits + corrected buttons
   ============================================================ */

/* ── Null out any residual v2 button animations ──────────────── */
.btn-primary          { overflow: visible; position: static; }
.btn-primary::after   { content: none; animation: none; display: none; }
.btn-outline          { animation: none; }


/* ── Hero side circuits — live SVG objects ────────────────────── */
.hero-img {
  position: absolute;
  top: 50%;
  width: clamp(260px, 20vw, 360px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 14px rgba(66, 130, 255, 0.14))
    drop-shadow(0 0 32px rgba(66, 130, 255, 0.08));
}

.hero-circuit-object,
.hero-img svg,
.hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-img-left  {
  left: clamp(1rem, 3vw, 3.25rem);
  transform: translateY(-50%);
}

.hero-img-right {
  right: clamp(1rem, 3vw, 3.25rem);
  transform: translateY(-50%) scaleX(-1);
}

@media (max-width: 1180px) {
  .hero-img {
    width: clamp(220px, 18vw, 300px);
    opacity: 0.88;
  }
}

@media (max-width: 1024px) {
  .hero-img { display: none; }
}


/* ── Hero buttons ────────────────────────────────────────────── */
.hero .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

/* Primary CTA stays solid and clean */
.hero .btn-primary::before,
.hero .btn-primary::after {
  content: none;
  display: none;
}

/* "What We Do" — animated perimeter trace */
.hero .btn-outline {
  --trace-base: rgba(58, 123, 252, 0.16);
  --trace-mid: rgba(102, 162, 255, 0.78);
  --trace-hot: rgba(239, 246, 255, 0.98);
  border-color: rgba(58, 123, 252, 0.22);
  color: var(--color-white);
  background: rgba(8, 8, 16, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 0 0 1px rgba(58, 123, 252, 0.06);
}

.hero .btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 312deg,
      rgba(58, 123, 252, 0.10) 326deg,
      rgba(58, 123, 252, 0.28) 336deg,
      rgba(107, 160, 255, 0.88) 347deg,
      rgba(239, 246, 255, 1) 354deg,
      rgba(107, 160, 255, 0.88) 358deg,
      rgba(58, 123, 252, 0.16) 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter:
    drop-shadow(0 0 3px rgba(85, 145, 255, 0.42))
    drop-shadow(0 0 8px rgba(85, 145, 255, 0.22));
  animation: tracer-spin 5.2s linear infinite, tracer-breathe 5.2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero .btn-outline::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-sm) - 1px);
  background:
    linear-gradient(180deg, rgba(10, 12, 22, 0.84), rgba(7, 8, 16, 0.92));
  z-index: 1;
  pointer-events: none;
}

.hero .btn > span {
  position: relative;
  z-index: 2;
}

.site-nav .btn {
  overflow: visible;
}
.site-nav .btn::before,
.site-nav .btn::after {
  content: none;
  display: none;
}

@keyframes tracer-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes tracer-breathe {
  0%, 100% {
    opacity: 0.62;
    filter:
      drop-shadow(0 0 2px rgba(85, 145, 255, 0.26))
      drop-shadow(0 0 6px rgba(85, 145, 255, 0.12));
  }
  18% {
    opacity: 0.95;
    filter:
      drop-shadow(0 0 4px rgba(85, 145, 255, 0.48))
      drop-shadow(0 0 12px rgba(85, 145, 255, 0.24));
  }
  68% {
    opacity: 0.78;
    filter:
      drop-shadow(0 0 3px rgba(85, 145, 255, 0.34))
      drop-shadow(0 0 9px rgba(85, 145, 255, 0.18));
  }
}
/* ── Brand name — dot span is no longer rendered ─────────────── */
.nav-logo .dot { display: none; }


/* ── Stale v1 upgrade block removed — superseded by v2/v3 above ── */


/* ============================================================
   FINAL REPAIR — restore badge animation, remove secondary CTA animation
   ============================================================ */

/* Secondary hero CTA: static only */
.hero .btn-outline {
  animation: none !important;
  border-color: rgba(58, 123, 252, 0.24) !important;
  color: var(--color-white) !important;
  background: rgba(8, 8, 16, 0.72) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 0 0 1px rgba(58, 123, 252, 0.06) !important;
}
.hero .btn-outline::before,
.hero .btn-outline::after {
  content: none !important;
  animation: none !important;
  display: none !important;
}

