/* =========================================================
   DevsArt Innovation — Landing page styles
   Design system: deep-space dark, neon accent gradients,
   soft glass surfaces, subtle motion.
   ========================================================= */

:root {
  /* Wired to the DevsArt design system — design-system/tokens.css.
     These legacy names now resolve to theme-aware semantic tokens, so the
     whole site follows [data-theme]. Brand accents stay violet→cyan→pink. */
  --bg: var(--color-bg);
  --bg-2: var(--color-bg-elevated);
  --bg-3: var(--color-surface);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-2);
  --border: var(--color-border);
  --border-strong: var(--color-border-strong);
  --text: var(--color-text);
  --text-dim: var(--color-text-secondary);
  --text-mute: var(--color-text-muted);
  --primary: var(--violet-500);
  --primary-2: var(--cyan-400);
  --accent: var(--pink-500);
  --success: var(--color-success);
  --warning: var(--color-warning);
  /* nav surface (theme-aware, overridden in light) */
  --nav-bg: rgba(10, 13, 28, 0.55);
  --nav-bg-scrolled: rgba(10, 13, 28, 0.85);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.35);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Background fx ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(124, 92, 255, 0.20), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, #0a0d1c 0%, #0a0d1c 60%, #06081a 100%);
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floaty 18s ease-in-out infinite;
}
.orb-1 { top: -120px; left: -120px; background: #7c5cff; }
.orb-2 { top: 40%; right: -160px; background: #22d3ee; animation-delay: -6s; }
.orb-3 { bottom: -200px; left: 30%; background: #f472b6; opacity: 0.25; animation-delay: -12s; }

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--primary {
  background: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  color: #0a0d1c;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124, 92, 255, 0.7); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  font-family: 'Space Grotesk', sans-serif;
}
.nav__logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 2px;
}
.nav__name em {
  font-style: normal;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.nav__toggle span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav__toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 28, 0.95);
}
.nav__mobile a {
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--text-dim);
}
.nav__mobile a:hover { background: var(--surface); color: var(--text); }
.nav__mobile .btn { margin-top: 8px; align-self: flex-start; }

/* ----- Hero ----- */
.hero {
  padding: 80px 0 40px;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 8px; height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(120deg, #7c5cff 0%, #22d3ee 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: shift 8s ease-in-out infinite;
}
@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__chips li {
  padding: 7px 12px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

/* Hero visual — orbiting logo */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.orbiter {
  position: relative;
  width: 360px;
  height: 360px;
  display: grid;
  place-items: center;
}
.orbiter__core {
  width: 130px; height: 130px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow), 0 0 60px rgba(124, 92, 255, 0.3);
  z-index: 2;
  animation: floaty 8s ease-in-out infinite;
}
.orbiter__core img {
  width: 84px; height: 84px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}
.orbiter__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 24s linear infinite;
}
.orbiter__chip {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: orbit 12s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Marquee */
.hero__marquee {
  margin-top: 60px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.hero__marquee-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-dim);
}
.hero__marquee-track span:nth-child(even) { color: var(--primary); opacity: 0.7; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----- Section base ----- */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.02) 70%, transparent);
}
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}
.section__head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ----- Services cards ----- */
/* 7 cards: 4 columns gives 4 + 3, last row of 3 stretches evenly with no gap. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(34, 211, 238, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid var(--border);
  color: #c4b5fd;
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.card p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 16px;
}
.card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.card ul li::before {
  content: '✦';
  color: var(--primary-2);
  margin-right: 8px;
  font-size: 0.8em;
}

/* ----- About / stats ----- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}
.about__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.about__copy p { color: var(--text-dim); margin-bottom: 14px; }
.about__cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 80px at 80% 0%, rgba(124, 92, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.stat__num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ----- Work ----- */
/* 4 projects: 2x2 grid keeps every row perfectly even. */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work__item { display: block; text-decoration: none; color: inherit; }
.work__item h3 { font-size: 1.15rem; margin: 18px 0 8px; transition: color 0.3s var(--ease); }
.work__item:hover h3 { color: var(--text); }
.work__item p { color: var(--text-dim); font-size: 0.95rem; }
.work__live {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(10, 13, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
}
.work__live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: workLive 2s var(--ease) infinite;
}
@keyframes workLive {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .work__live-dot { animation: none; }
}
.work__thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #11142a;
}
.work__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
  z-index: 1;
}
.work__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(10, 13, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
}
.work__shape {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.work__thumb--a { background: radial-gradient(120% 100% at 0% 0%, #4c1d95 0%, #1e1b4b 50%, #0a0d1c 100%); }
.work__shape--a {
  background:
    radial-gradient(closest-side at 75% 65%, rgba(34, 211, 238, 0.45), transparent 70%),
    radial-gradient(closest-side at 25% 30%, rgba(244, 114, 182, 0.35), transparent 70%);
  filter: blur(10px);
}
.work__thumb--b { background: radial-gradient(120% 100% at 100% 0%, #0e7490 0%, #082f49 50%, #0a0d1c 100%); }
.work__shape--b {
  background:
    linear-gradient(45deg, transparent 48%, rgba(124, 92, 255, 0.5) 49%, rgba(124, 92, 255, 0.5) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(34, 211, 238, 0.5) 49%, rgba(34, 211, 238, 0.5) 51%, transparent 52%);
  background-size: 28px 28px;
  opacity: 0.5;
}
.work__thumb--c { background: radial-gradient(120% 100% at 50% 0%, #831843 0%, #500724 50%, #0a0d1c 100%); }
.work__shape--c {
  background:
    radial-gradient(closest-side at 30% 70%, rgba(124, 92, 255, 0.5), transparent 60%),
    radial-gradient(closest-side at 70% 30%, rgba(34, 211, 238, 0.5), transparent 60%);
  filter: blur(4px);
}
.work__item:hover .work__thumb { transform: translateY(-4px); transition: transform 0.4s var(--ease); }

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ----- Quotes ----- */
.quotes {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 180px;
}
.quote {
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.quote.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote {
  margin: 0 0 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
}
.quote figcaption { color: var(--text-dim); }
.quote figcaption strong { color: var(--text); margin-right: 6px; }
.quotes__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.quotes__dots button {
  width: 24px; height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.quotes__dots button.is-active {
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  width: 36px;
  border-color: transparent;
}

/* ----- Contact ----- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.contact__copy p { color: var(--text-dim); margin-bottom: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; }
.contact__label { font-size: 0.8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.contact__list a:hover { color: var(--primary-2); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-dim); }
.form input, .form select, .form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.35);
}
.form textarea { resize: vertical; min-height: 110px; }
.form__submit { align-self: flex-start; margin-top: 6px; }
.form__note { font-size: 0.9rem; color: var(--success); min-height: 1.2em; }
.form__note.is-error { color: #fca5a5; }

/* ----- Footer ----- */
.footer {
  margin-top: 40px;
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; padding: 3px; }
.footer__brand p { color: var(--text-dim); font-size: 0.9rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text); }
.footer__cols a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 4px 0;
}
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* =========================================================
   AI & RAG section
   ========================================================= */
/* RAG pipeline — full-width connected flow */
.pipe {
  position: relative;
  margin-bottom: 40px;
}
/* Gradient spine that threads the step nodes together */
.pipe__spine {
  position: absolute;
  top: 55px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 15%, var(--primary-2) 85%, transparent);
  opacity: 0.5;
  z-index: 0;
}
.pipe__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pipe__step {
  position: relative;
  padding: 26px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-width: 0;
}
.pipe__step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.pipe__node {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.22));
  border: 1px solid var(--border-strong);
  color: #c4b5fd;
}
.pipe__step:hover .pipe__node { box-shadow: var(--shadow-glow); }
.pipe__icon { display: grid; place-items: center; }
.pipe__icon svg { width: 26px; height: 26px; }
.pipe__num {
  position: absolute;
  top: -10px; right: -10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0d1c;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  padding: 3px 8px;
  border-radius: 999px;
}
.pipe__step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.pipe__step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Showcase — value pitch + live chat demo */
.ai {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 80px;
}
.ai__pitch {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.12), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: var(--radius-lg);
}
.ai__pitch h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.ai__pitch-lede {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.ai__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.ai__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ai__points div {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.ai__points strong { color: var(--text); font-weight: 600; }
.ai__check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #0a0d1c;
}
.ai__check svg { width: 15px; height: 15px; }
.ai__pitch-cta { align-self: flex-start; margin-top: auto; }

/* Chat demo */
.ai__demo { display: flex; }
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.chat__avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #0a0d1c;
}
.chat__avatar svg { width: 22px; height: 22px; }
.chat__head strong { display: block; font-size: 0.95rem; }
.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-mute);
}
.chat__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse 1.6s ease-in-out infinite;
}
.chat__reset {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.chat__reset:hover { background: var(--surface-2); color: var(--text); }
.chat__body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  animation: msgIn 0.35s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text);
}
.msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #0a0d1c;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.msg__typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.msg__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing 1s ease-in-out infinite;
}
.msg__typing span:nth-child(2) { animation-delay: 0.15s; }
.msg__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
.msg__sources {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--text-mute);
}
.msg__sources a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.msg__sources a:hover { color: var(--text); border-color: var(--border-strong); }

.chat__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}
.chat__quick button {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.chat__quick button:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.chat__form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.chat__form input:focus { outline: none; border-color: var(--primary); }
.chat__send {
  padding: 10px 16px;
  border-radius: 999px;
}

/* Use cases */
.usecases { margin-top: 8px; }
.usecases__head {
  text-align: center;
  margin-bottom: 28px;
}
.usecases__head .eyebrow { margin-bottom: 14px; }
.usecases__head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.usecase {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.usecase::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px 140px at 100% 0%, rgba(124, 92, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.usecase:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.usecase:hover::before { opacity: 1; }
.usecase__icon {
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
}
.usecase h4 { font-size: 1rem; margin-bottom: 6px; }
.usecase p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* Featured service card */
.card--featured {
  position: relative;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.08));
  border-color: rgba(124, 92, 255, 0.4);
}
.card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px 180px at 100% 0%, rgba(34, 211, 238, 0.25), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.card__badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  color: #0a0d1c;
}
.card__icon--ai { color: #67e8f9; }

/* New work thumb (4th) */
.work__thumb--d { background: radial-gradient(120% 100% at 50% 100%, #0e7490 0%, #1e1b4b 50%, #0a0d1c 100%); }
.work__shape--d {
  background:
    repeating-linear-gradient(45deg, rgba(124, 92, 255, 0.25) 0 6px, transparent 6px 14px),
    radial-gradient(closest-side at 30% 30%, rgba(34, 211, 238, 0.4), transparent 60%);
  filter: blur(2px);
}

/* ----- Reveal animation ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive — clean, ordered, no overlap.
   Breakpoints (descending):
     1200 large desktop
     1024 desktop / large tablet
      900 tablet
      720 small tablet
      640 mobile
   ========================================================= */

/* ---- 1200: tighten gaps, no layout change ---- */
@media (max-width: 1200px) {
  .container { max-width: 1080px; }
  .hero__inner { gap: 48px; }
}

/* ---- 1024: 4-col service grid → 2-col; nothing else changes ---- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 900: tablet — hero stacks, AI section stacks, secondary grids → 2-col ---- */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; min-height: 320px; }
  .orbiter { width: 300px; height: 300px; }
  .orbiter__core { width: 110px; height: 110px; }
  .orbiter__core img { width: 72px; height: 72px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; }

  /* AI showcase: pitch stacks above the chat, both full width */
  .ai { grid-template-columns: 1fr; gap: 20px; }
  .ai__demo { min-height: 0; }

  /* RAG pipeline: collapse from 4-col to 2x2 grid, hide the spine */
  .pipe__steps { grid-template-columns: repeat(2, 1fr); }
  .pipe__spine { display: none; }
}

/* ---- 720: small tablet — everything 1-col ---- */
@media (max-width: 720px) {
  .cards, .work, .steps, .stats, .footer__cols, .form__row,
  .usecases__grid, .pipe__steps { grid-template-columns: 1fr; }
}

/* ---- 640: mobile — show hamburger, tighten paddings ---- */
@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile.is-open { display: flex; }
  .section { padding: 64px 0; }
  .form { padding: 22px; }
  .footer__bottom { flex-direction: column; }
  .orbiter__chip { width: 38px; height: 38px; font-size: 11px; }
  @keyframes orbit {
    from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
  }
  .chat { min-height: 420px; }
  .ai__pitch { padding: 24px; }
  .section__head { margin-bottom: 36px; }
  .ai { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   LIGHT THEME — overrides for pieces that are hardcoded dark.
   Neutrals (text/surface/border) already flip via tokens.css;
   these handle the decorative deep-space bits so light looks clean.
   ========================================================= */
[data-theme="light"] {
  --nav-bg: rgba(255, 255, 255, 0.62);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .bg-grid {
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(15, 160, 219, 0.10), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f9 60%, #e7ecf6 100%);
}
[data-theme="light"] .bg-orbs { opacity: 0.5; }
[data-theme="light"] .orb { filter: blur(90px); opacity: 0.28; }
/* Gradient text needs a darker stop to read on light backgrounds */
[data-theme="light"] .stat__num {
  background: linear-gradient(135deg, var(--violet-600), var(--azure-600));
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .card__icon { color: var(--violet-600); }
[data-theme="light"] .theme-toggle:hover { background: var(--surface-2); }
/* Translucent-white fills need a real surface on light backgrounds */
[data-theme="light"] .card {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .section--alt {
  background: linear-gradient(180deg, transparent, rgba(19, 26, 43, 0.03) 30%, rgba(19, 26, 43, 0.03) 70%, transparent);
}
[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(19, 26, 43, 0.04));
}
[data-theme="light"] .btn--ghost:hover { border-color: var(--primary); }
[data-theme="light"] .chat__quick button:hover { background: var(--color-surface-3); }
/* Dark rgba fills on inputs / chat bands → light surfaces in light mode */
[data-theme="light"] .chat__head,
[data-theme="light"] .chat__form { background: var(--color-surface-2); }
[data-theme="light"] .chat__form input,
[data-theme="light"] .form input,
[data-theme="light"] .form select,
[data-theme="light"] .form textarea {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}
/* Keep the bright gradient chips/badges legible: dark text stays dark on light */

/* ----- Theme toggle button ----- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  backdrop-filter: blur(10px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
/* In-menu (mobile) toggle stretches full width with a label; the top-bar
   toggle stays a 40px square next to the hamburger. */
.nav__mobile .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  margin-top: 8px;
}
