@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

/* =====================================================================
   APIS product page — dark-blue / blue-glow theme.
   Loaded only by apis.html. Everything is scoped under body.theme-apis,
   so the rest of the site keeps its warm brown / gold look.
   ===================================================================== */

body.theme-apis {
  /* Tokens sampled from the live APIS platform (apis.twopillarsco.com) */
  --ink-950: #05070d;
  --ink-900: #05070d;
  --ink-800: #0b0e17;
  --ink-700: #10141f;
  --ink-600: #171b28;
  --line: #1f2534;
  --paper: #e8eaf2;
  --paper-dim: #b4bbd0;
  --muted: #8b91a7;
  --accent: #4f7dff;
  --accent-bright: #8aa8ff;
  --accent-dim: rgba(79,125,255,0.14);
  --apis-green: #34d399;
  --apis-glow: 0 0 40px -15px #4f7dff;
  --apis-grad: linear-gradient(92deg, #4f7dff 0%, #86a6ff 100%);
  --apis-brand-grad: linear-gradient(92deg, #4f7dff 0%, #9b6bff 55%, #ff5c8a 100%);
  --sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(79,125,255,0.20), transparent 70%),
    var(--ink-900);
  font-family: var(--sans);
}

/* Product pages use the sans-serif throughout, like the platform UI */
body.theme-apis h1,
body.theme-apis h2,
body.theme-apis h3 { font-family: var(--sans); letter-spacing: -0.02em; font-weight: 650; }

/* ---- Shared chrome re-tinted ---- */
body.theme-apis .site-header.scrolled { background: rgba(5,7,13,0.86); }
body.theme-apis .nav-dropdown-menu { background: rgba(5,7,13,0.98); }
@media (max-width: 980px) { body.theme-apis .main-nav.open { background: rgba(5,7,13,0.98); } }
body.theme-apis .btn-primary {
  background: linear-gradient(120deg, #4f7dff, #6f93ff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(79,125,255,0.40);
}
body.theme-apis .btn-primary:hover { box-shadow: 0 12px 36px rgba(79,125,255,0.55); }
body.theme-apis .btn-ghost { border-color: rgba(79,125,255,0.45); }
body.theme-apis .btn-ghost:hover { border-color: var(--accent-bright); color: #fff; background: var(--accent-dim); }
body.theme-apis .site-footer { border-top-color: var(--line); }
body.theme-apis .noise-overlay { opacity: 0.02; }

/* ---- Hero ---- */
.apis-hero { position: relative; padding: 170px 0 96px; overflow: hidden; }
.apis-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 78% 45%, rgba(79,125,255,0.38), transparent 70%);
}
.apis-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.apis-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 18px; }
.apis-title {
  font-size: clamp(4.2rem, 10vw, 7.4rem); line-height: 0.95; font-weight: 750; letter-spacing: -0.04em;
  background: var(--apis-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.apis-fullname { margin-top: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.apis-tagline { margin-top: 34px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--paper); max-width: 22em; }
.apis-intro { margin-top: 20px; color: var(--paper-dim); font-size: 1.05rem; max-width: 36em; }
.apis-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.apis-actions-center { justify-content: center; }

.apis-hero-logo { display: flex; justify-content: center; }
.apis-orb {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(79,125,255,0.35), 0 0 80px rgba(79,125,255,0.55), 0 0 160px rgba(79,125,255,0.28);
}
.apis-orb::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(79,125,255,0.22);
  animation: apis-ring 5s ease-in-out infinite;
}
.apis-orb img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
@keyframes apis-ring { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.045); opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .apis-orb::after { animation: none; } }

/* ---- Sections ---- */
.apis-section { padding: 104px 0; position: relative; }
.apis-band { background: linear-gradient(180deg, rgba(16,20,31,0.7), rgba(11,14,23,0.7)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apis-head { margin-bottom: 52px; max-width: 760px; }
.apis-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.apis-head h2, .apis-split-lead h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; }
.apis-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 14px; }
.apis-grad { background: var(--apis-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.apis-overview { padding-top: 40px; }
.apis-prose-wide { max-width: 860px; }
.apis-prose-wide p { font-size: 1.14rem; line-height: 1.7; color: var(--paper-dim); margin-bottom: 22px; }
.apis-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Capability cards ---- */
.apis-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.apis-card {
  position: relative; padding: 28px 24px 30px; border-radius: 16px;
  background: rgba(11,14,23,0.6);
  border: 1px solid var(--line);
  box-shadow: var(--apis-glow);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.apis-card::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,125,255,0.75), transparent);
}
.apis-card:hover { transform: translateY(-4px); border-color: rgba(79,125,255,0.6); box-shadow: 0 16px 44px -10px rgba(79,125,255,0.45); }
.apis-card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  color: var(--accent-bright);
  background: linear-gradient(140deg, rgba(79,125,255,0.28), rgba(79,125,255,0.12));
  border: 1px solid rgba(79,125,255,0.38);
}
.apis-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 10px; }
.apis-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.apis-card-grid > .apis-card:last-child:nth-child(4n+1) { grid-column: 1 / -1; }

/* ---- Split layout ---- */
.apis-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.apis-triple span { display: block; }
.apis-pull { margin-top: 30px; font-size: 1.2rem; font-weight: 600; color: var(--paper); padding-left: 18px; border-left: 2px solid; border-image: linear-gradient(180deg, #4f7dff, #86a6ff) 1; }
.apis-split-body p { font-size: 1.06rem; color: var(--paper-dim); line-height: 1.7; margin-bottom: 20px; }
.apis-callout {
  margin-top: 30px; padding: 24px 28px; border-radius: 16px; box-shadow: var(--apis-glow); font-size: 1.12rem; line-height: 1.5; font-weight: 550; color: var(--paper);
  background: linear-gradient(120deg, rgba(79,125,255,0.20), rgba(79,125,255,0.08));
  border: 1px solid rgba(79,125,255,0.38);
}
.apis-lede { margin-top: 24px; font-size: 1.2rem; font-weight: 550; color: var(--paper); line-height: 1.45; }
.apis-muted { margin-top: 16px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

.apis-attrs { display: flex; flex-direction: column; gap: 14px; }
.apis-attr { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: rgba(11,14,23,0.6); border: 1px solid var(--line); box-shadow: var(--apis-glow); }
.apis-attr .apis-card-icon { margin-bottom: 0; flex: none; }
.apis-attrs .apis-attr p { margin: 0; font-size: 1.04rem; color: var(--paper); line-height: 1.45; }
.apis-attrs .apis-callout { margin-top: 10px; }

/* ---- Three-column prose ---- */
.apis-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.apis-cols p { color: var(--paper-dim); font-size: 1.04rem; line-height: 1.7; }

/* ---- Industry links ---- */
.apis-ind-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.apis-ind {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
  background: rgba(11,14,23,0.6); border: 1px solid var(--line); color: var(--paper-dim); font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s var(--ease);
}
.apis-ind svg { color: var(--accent-bright); }
.apis-ind:hover { color: #fff; border-color: rgba(79,125,255,0.6); background: var(--ink-700); transform: translateY(-2px); }

/* ---- Finale ---- */
.apis-finale { background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(79,125,255,0.30), transparent 70%); }
.apis-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 56px; }
.apis-steps li {
  padding: 28px 24px; border-radius: 16px; background: rgba(11,14,23,0.6); border: 1px solid var(--line); box-shadow: var(--apis-glow);
  font-size: 1.28rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--paper);
}
.apis-step-n { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 14px; background: var(--apis-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apis-closer {
  margin: 56px 0 36px; text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; color: var(--paper);
}
.apis-closer span { display: inline-block; margin: 0 0.18em; }
.apis-disclaimer {
  max-width: 820px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.8rem; line-height: 1.65; text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .apis-card-grid { grid-template-columns: repeat(2, 1fr); }
  .apis-card-grid > .apis-card:last-child:nth-child(4n+1) { grid-column: auto; }
  .apis-split { gap: 48px; }
}
@media (max-width: 980px) {
  .apis-hero { padding: 140px 0 72px; }
  .apis-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .apis-hero-logo { order: -1; }
  .apis-orb { width: min(72%, 300px); }
  .apis-hero-copy { text-align: center; }
  .apis-tagline, .apis-intro { margin-left: auto; margin-right: auto; }
  .apis-actions { justify-content: center; }
  .apis-split { grid-template-columns: 1fr; }
  .apis-cols { grid-template-columns: 1fr; gap: 20px; }
  .apis-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .apis-section { padding: 76px 0; }
  .apis-card-grid { grid-template-columns: 1fr; }
  .apis-prose-wide p { font-size: 1.05rem; }
  .apis-closer span { display: block; margin: 0; }
}
