/* ==========================================================================
   Creative 80/20 Flow AI — DARK liquid glass design system
   Brand: orange #f3a01f · blue #369abc on deep space-blue glass
   ========================================================================== */

:root {
  --orange: #f3a01f;
  --blue: #369abc;
  --blue-bright: #5cc3e8;
  --ink: #f2f5f9;
  --ink-soft: #aeb6c2;
  --ink-faint: #7d8694;
  --bg: #070b12;
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  --glass-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(54, 154, 188, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --grad: linear-gradient(120deg, var(--orange), var(--blue-bright));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(54, 154, 188, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 25%, rgba(243, 160, 31, 0.10), transparent 55%),
    radial-gradient(1000px 800px at 60% 110%, rgba(54, 154, 188, 0.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(243, 160, 31, 0.4); }

/* ---------- ambient background orbs ---------- */

.orb-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.38;
  will-change: transform;
}

.orb-a {
  width: 55vmax; height: 55vmax;
  top: -22vmax; right: -16vmax;
  background: radial-gradient(circle at 30% 30%, rgba(243, 160, 31, 0.9), rgba(243, 160, 31, 0.35) 55%, transparent 72%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.orb-b {
  width: 52vmax; height: 52vmax;
  bottom: -20vmax; left: -15vmax;
  background: radial-gradient(circle at 60% 40%, rgba(92, 195, 232, 0.85), rgba(54, 154, 188, 0.35) 55%, transparent 72%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

.orb-c {
  width: 28vmax; height: 28vmax;
  top: 42%; left: 56%;
  background: radial-gradient(circle, rgba(243, 160, 31, 0.5), rgba(54, 154, 188, 0.45) 65%, transparent 80%);
  animation: drift-c 42s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8vmax, 10vmax) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(10vmax, -8vmax) scale(1.12); }
}
@keyframes drift-c {
  from { transform: translate(0, 0) scale(0.9); }
  to   { transform: translate(-12vmax, -10vmax) scale(1.25); }
}

/* faint starfield grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- layout ---------- */

.wrap {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

section { padding: 92px 0; }

/* ---------- glass primitives ---------- */

.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-inner);
  overflow: hidden;
}

/* specular streak across the top of every glass panel */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 8%;
  width: 84%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.card {
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* hover sheen sweep */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.08) 52%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-lift), var(--glass-inner);
}

.card:hover::after { transform: translateX(110%); }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.grad-text {
  background: linear-gradient(120deg, #ffc45e, var(--orange) 30%, var(--blue-bright) 75%, #8fd8f2);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad);
  color: #08111a;
  box-shadow: 0 8px 28px rgba(243, 160, 31, 0.35), 0 2px 8px rgba(54, 154, 188, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 1px; left: 10%;
  width: 80%; height: 45%;
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(243, 160, 31, 0.45), 0 4px 16px rgba(54, 154, 188, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-glass {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 26, 38, 0.72), rgba(10, 16, 26, 0.6));
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.site-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 10%;
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(54, 154, 188, 0.5)); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.nav-links a.active { background: rgba(255, 255, 255, 0.12); color: var(--ink); font-weight: 600; }

.nav-social {
  display: flex;
  gap: 2px;
  align-items: center;
  padding-right: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-social a {
  display: inline-flex;
  padding: 7px;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-social a:hover { color: var(--blue-bright); background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.nav-social svg { width: 17px; height: 17px; }

.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-links, .nav-social, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav.open { border-radius: 24px; flex-wrap: wrap; }

  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    margin: 8px 0 4px;
  }

  .site-nav.open .nav-links a { padding: 12px 16px; }

  .site-nav.open .nav-social {
    display: flex;
    order: 4;
    border-right: none;
    padding: 4px 8px 8px;
  }

  .site-nav.open .nav-cta { display: inline-flex; order: 5; margin: 0 8px 10px; }
}

/* ---------- hero ---------- */

.hero {
  padding: 195px 0 105px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero .lede { margin: 22px 0 34px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* 3D neural-network scene */
.hero-visual { position: relative; min-height: 460px; }

#hero3d {
  position: absolute;
  inset: -60px -40px;
}

#hero3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* soft glow behind the scene so it sits IN the page, not on it */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 154, 188, 0.22), rgba(243, 160, 31, 0.10) 55%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.hero3d-caption {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hero3d-caption .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(243, 160, 31, 0.8);
  flex: none;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

@media (max-width: 900px) {
  .hero { padding: 155px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
  #hero3d { inset: -30px -20px; }
  .hero3d-caption { font-size: 0.78rem; padding: 10px 16px; }
}

/* ---------- grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #08111a;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(243, 160, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.icon-badge svg { width: 22px; height: 22px; }

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

.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-bright);
}

/* ---------- steps ---------- */

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* ---------- tool strip ---------- */

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-pill {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tool-pill:hover {
  border-color: rgba(92, 195, 232, 0.4);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 76px 40px;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(243, 160, 31, 0.16), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(54, 154, 188, 0.18), transparent 45%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--ink-soft); }

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: 185px 0 40px; }
.page-hero .lede { margin-top: 18px; }

/* ---------- service detail blocks ---------- */

.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px;
  margin-bottom: 32px;
}

.svc h2 { font-size: 1.7rem; }
.svc .svc-tag { margin-bottom: 12px; }
.svc p { color: var(--ink-soft); margin-bottom: 14px; }

.svc ul { margin: 8px 0 0; }

.svc ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.svc ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(243, 160, 31, 0.5);
}

.svc h4 { margin: 18px 0 8px; font-size: 1rem; }
.svc strong { color: var(--ink); }

@media (max-width: 800px) {
  .svc { grid-template-columns: 1fr; padding: 30px; }
}

/* ---------- case study cards ---------- */

.cs-card { display: flex; flex-direction: column; }

.cs-metric {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.placeholder-note {
  border: 1.5px dashed rgba(92, 195, 232, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 18px;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.portrait {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.contact-line svg { width: 18px; height: 18px; color: var(--blue-bright); flex: none; }

.calendly-shell { padding: 12px; }

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

/* ---------- footer ---------- */

footer {
  margin-top: 40px;
  padding: 56px 0 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; max-width: 320px; margin-top: 12px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-flex; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--ink-soft); transition: color .2s, transform .2s, border-color .2s; }
.footer-social a:hover { color: var(--blue-bright); border-color: rgba(92, 195, 232, 0.4); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .hero-ring svg, .grad-text, .card::after { animation: none; }
}
