/* ====================================================================
   Boostlogix Demo — design tokens
   ==================================================================== */
:root {
  /* Color */
  --ink: #0a1b23;
  --ink-soft: #4d6672;
  --ink-faint: #7f939c;
  --paper: #f5f8f9;
  --mist: #e9eff1;
  --line: #d7e1e4;
  --cyan: #019cde;
  --cyan-dark: #016fa3;
  --cyan-soft: #d6eefa;
  --cyan-wash: #eef8fd;
  --route: #a9d9ee;
  --pulse: #1fb579;
  --white: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
}

/* ====================================================================
   Reset
   ==================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
    scroll-behavior: auto !important;
  }
}

/* ====================================================================
   Helpers
   ==================================================================== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 12px;
  color: var(--ink);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 52ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ====================================================================
   Header
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 28px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.brand-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:hover {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 0 rgba(31, 181, 121, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 181, 121, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(31, 181, 121, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 181, 121, 0);
  }
}

/* ====================================================================
   Hero
   ==================================================================== */
.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 18px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--cyan-dark);
}

.hero-copy p {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-meta div {
  font-family: var(--font-mono);
}

.hero-meta strong {
  display: block;
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-meta span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Hero diagram */
.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.route-path {
  fill: none;
  stroke: var(--route);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
  animation: flow 18s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -400;
  }
}

.node-dot {
  fill: var(--white);
  stroke: var(--cyan);
  stroke-width: 3;
}

.node-glow {
  fill: var(--cyan);
  opacity: 0.12;
}

.node-code {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-faint);
  letter-spacing: 0.05em;
}

.mark-diagonal {
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  opacity: 0.85;
  animation: fade 3.6s ease-in-out infinite;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

/* ====================================================================
   Apps section
   ==================================================================== */
.apps {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 14px 30px -18px rgba(1, 75, 110, 0.35);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-node {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cyan-wash);
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-node svg {
  width: 18px;
  height: 18px;
}

.app-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.app-tag.live {
  background: rgba(31, 181, 121, 0.12);
  color: #138a57;
}

.app-tag.soon {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
}

.app-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex-grow: 1;
}

.app-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Empty state */
.apps-empty {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--route);
  border-radius: var(--radius-l);
  background: var(--cyan-wash);
  padding: clamp(32px, 5vw, 52px);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.apps-empty .app-node {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  flex-shrink: 0;
}

.apps-empty .app-node svg {
  width: 24px;
  height: 24px;
}

.apps-empty-copy h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.apps-empty-copy p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46ch;
}

.apps-empty .btn {
  margin-left: auto;
}

@media (max-width: 640px) {
  .apps-empty .btn {
    margin-left: 0;
  }
}

/* ====================================================================
   Contact section
   ==================================================================== */
.contact {
  padding-block: clamp(48px, 7vw, 88px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.contact-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.contact-card .app-node {
  background: var(--cyan-wash);
  color: var(--cyan-dark);
}

.contact-card span.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ====================================================================
   Footer
   ==================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 18px;
  opacity: 0.85;
}

.footer-fine {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 16px;
  }
  .hero-meta {
    gap: 20px;
  }
  .apps-empty {
    flex-direction: column;
    align-items: flex-start;
  }
  .apps-empty .btn {
    margin-left: 0;
  }
}
