/* ============================================================
   AZURION — design tokens
   ============================================================ */
:root {
  --bg: #090E1A;
  --bg-elev: #111A31;
  --bg-elev-2: #0C1428;
  --line: #22304F;
  --line-soft: #1A2440;
  --text: #EEF2FF;
  --text-dim: #96A1C4;
  --text-faint: #64709A;
  --azure: #3FBBFF;
  --azure-dim: #1E5A85;
  --indigo: #7C87FF;
  --amber: #FFB648;
  --amber-dim: #4A3A1E;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ============================================================
   Reset & base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(63,187,255,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 30%, rgba(124,135,255,0.10), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.28rem; }

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

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

section { position: relative; padding: 110px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azure);
  box-shadow: 0 0 10px 2px rgba(63,187,255,0.7);
}

.lede {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 18px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #ff9d3d);
  color: #1a1002;
  box-shadow: 0 8px 24px rgba(255,182,72,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,182,72,0.32); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--azure); background: rgba(63,187,255,0.06); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9,14,26,0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand-word span { color: var(--azure); }
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--azure);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-elev);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-right .btn-ghost { display: none; }
}

/* ============================================================
   Orbit graphic (signature motif)
   ============================================================ */
.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
}
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit-spin { transform-origin: 250px 250px; animation: orbit-rotate 42s linear infinite; }
.orbit-spin-rev { transform-origin: 250px 250px; animation: orbit-rotate-rev 60s linear infinite; }
@keyframes orbit-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-rotate-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.orbit-node { animation: orbit-pulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes orbit-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .orbit-spin-rev, .orbit-node { animation: none; }
}

/* small inline dot used as a bullet, echoes the orbit motif */
.dot-bullet { list-style: none; }
.dot-bullet li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.96rem;
}
.dot-bullet li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--azure);
  background: rgba(63,187,255,0.15);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 190px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; text-align: left; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 10px; }
}

.page-hero {
  padding: 168px 0 70px;
}
.page-hero h1 { max-width: 780px; }
.page-hero .lede { max-width: 700px; }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.marquee { display: flex; width: max-content; animation: marquee-scroll 32s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; } }
.marquee-group { display: flex; align-items: center; }
.marquee span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee span::after { content: "•"; margin-left: 28px; color: var(--azure-dim); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Section headers
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Service cards grid
   ============================================================ */
.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-services { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--azure-dim);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(63,187,255,0.1);
  color: var(--azure);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { font-size: 0.92rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--azure);
}

/* ============================================================
   Process steps
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process-step { padding-top: 22px; border-top: 1px solid var(--line); }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--azure);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; }

/* ============================================================
   Value pillars
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(124,135,255,0.1);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.02rem; }
.pillar p { font-size: 0.9rem; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, #0D1730, #142244 60%, #0F1B36);
  border: 1px solid var(--line);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(63,187,255,0.25), transparent 70%);
}
.cta-banner h2 { max-width: 480px; }
.cta-banner-actions { display: flex; gap: 14px; flex-shrink: 0; }
@media (max-width: 760px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 42px 28px; }
}

/* ============================================================
   Service detail sections (services.html)
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}
.service-detail:first-of-type { border-top: none; }
.service-detail-visual {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 18px;
}
.service-tag-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.service-detail-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(63,187,255,0.1);
  color: var(--azure);
  display: flex; align-items: center; justify-content: center;
}
.service-detail-icon svg { width: 30px; height: 30px; }
.service-best-for {
  display: inline-flex; gap: 8px; align-items: baseline;
  font-size: 0.84rem; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; width: fit-content;
}
.service-best-for b { color: var(--text-dim); font-weight: 600; }
.service-detail-body h2 { margin-bottom: 14px; }
.service-detail-body > p { font-size: 1.02rem; margin-bottom: 22px; }
.service-caps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px;
}
@media (max-width: 700px) { .service-caps { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 22px; }
  .service-detail-visual { position: static; flex-direction: row; align-items: center; }
}

/* ============================================================
   About page
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.stat-row { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  display: block;
  color: var(--text);
}
.stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.quote-block {
  border-left: 2px solid var(--azure);
  padding-left: 24px;
  margin: 40px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 14px; }
.form-status { font-size: 0.88rem; margin-top: 14px; display: none; }
.form-status.visible { display: block; }
.form-status.ok { color: #6FE3A3; }

.info-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column; gap: 26px;
}
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.info-item h3 { font-size: 0.96rem; margin-bottom: 4px; }
.info-item p { font-size: 0.9rem; }
.info-item a { color: var(--azure); }

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 30px;
  background: var(--bg-elev-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--azure); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Elements are visible by default (no-JS / JS-not-yet-run safe).
   JS adds .reveal-armed once it's ready to animate, then toggles .in-view on scroll. */
.reveal-armed[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-armed[data-reveal].in-view { opacity: 1; transform: translateY(0); }
