/* heyagentic.app — coming-soon with flying/welding robots (same motion as heydental). */
:root {
  --cs-ink: #0b1220;
  --cs-brand: #38bdf8;
  --cs-brand-deep: #0369a1;
  --cs-glow: #67e8f9;
  --cs-mist: #c8d8ea;
  --cs-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --cs-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cs-ink);
  color: #f4f8fc;
}

body.coming-soon {
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--cs-sans);
}

.cs {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}

.cs-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 50% 40%, rgba(56, 189, 248, 0.2), transparent 58%),
    radial-gradient(800px 480px at 12% 90%, rgba(3, 105, 161, 0.22), transparent 55%),
    linear-gradient(165deg, #070b14 0%, #101a2a 46%, #0b1220 100%);
}

.cs-hero {
  position: absolute;
  inset: -4% -2%;
  width: 104%;
  height: 108%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.92;
  filter: saturate(1.08) contrast(1.06) hue-rotate(188deg) saturate(1.15);
  transform-origin: center center;
}

.cs-hero-still {
  z-index: 0;
  animation: cs-drift 28s ease-in-out infinite alternate;
}

.cs-hero-live {
  z-index: 1;
  pointer-events: none;
  animation: none;
}

.cs-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.48) 0%, rgba(7, 11, 20, 0.1) 36%, rgba(7, 11, 20, 0.68) 100%),
    radial-gradient(ellipse 62% 48% at 50% 44%, transparent 18%, rgba(7, 11, 20, 0.52) 100%);
  pointer-events: none;
}

.cs-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 45%, black 10%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
  animation: cs-grid-shift 18s linear infinite;
}

.cs-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.cs-flyers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.cs-flyer {
  position: absolute;
  left: 0;
  top: 0;
  width: min(22vw, 210px);
  height: auto;
  filter:
    drop-shadow(0 10px 18px rgba(7, 11, 20, 0.55))
    hue-rotate(188deg)
    saturate(1.2);
  will-change: transform;
}

.cs-flyer-a { width: min(20vw, 190px); animation: cs-fly-a 18s linear infinite; }
.cs-flyer-b { width: min(18vw, 170px); animation: cs-fly-b 22s linear infinite; }
.cs-flyer-c { width: min(24vw, 220px); animation: cs-fly-c 26s linear infinite; }
.cs-flyer-d { width: min(14vw, 130px); animation: cs-fly-d 16s linear infinite reverse; opacity: 0.85; }
.cs-flyer-e { width: min(16vw, 150px); animation: cs-fly-e 20s linear infinite; opacity: 0.9; }
.cs-flyer-f { width: min(13vw, 120px); animation: cs-fly-f 14s linear infinite reverse; opacity: 0.8; }

.cs-sparks span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-brand);
  box-shadow: 0 0 12px 3px rgba(56, 189, 248, 0.55);
  opacity: 0;
  animation: cs-spark 3.6s ease-in-out infinite;
}

.cs-sparks span:nth-child(1) { left: 34%; top: 48%; animation-delay: 0s; }
.cs-sparks span:nth-child(2) { left: 58%; top: 40%; animation-delay: 0.7s; background: var(--cs-glow); box-shadow: 0 0 12px 3px rgba(103, 232, 249, 0.5); }
.cs-sparks span:nth-child(3) { left: 48%; top: 62%; animation-delay: 1.4s; }
.cs-sparks span:nth-child(4) { left: 67%; top: 56%; animation-delay: 2s; background: var(--cs-glow); box-shadow: 0 0 12px 3px rgba(103, 232, 249, 0.5); }
.cs-sparks span:nth-child(5) { left: 41%; top: 34%; animation-delay: 2.6s; }

.cs-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: clamp(24px, 6vw, 56px) clamp(18px, 4vw, 40px);
  max-width: min(920px, 92vw);
}

.cs-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: var(--cs-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(56, 189, 248, 0.28);
  animation: cs-brand-glow 5.5s ease-in-out infinite;
}

.cs-mark {
  width: clamp(40px, 7vw, 72px);
  height: clamp(40px, 7vw, 72px);
  border-radius: 16px;
  flex: 0 0 auto;
  animation: cs-mark 4.2s ease-in-out infinite;
}

.cs-line {
  margin: clamp(14px, 2.5vw, 22px) 0 0;
  font-family: var(--cs-sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--cs-mist) 92%, white);
  text-wrap: balance;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.cs-sub {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cs-foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 3vw, 28px) 20px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cs-mist) 70%, transparent);
  background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.55));
}

.version-stamp {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.version-stamp:empty { display: none; }

@keyframes cs-drift {
  from { transform: scale(1.04) translate3d(-1.2%, -0.6%, 0); }
  to { transform: scale(1.1) translate3d(1.2%, 0.8%, 0); }
}

@keyframes cs-spark {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  35% { opacity: 1; transform: scale(1) translateY(-10px); }
  70% { opacity: 0.15; transform: scale(0.7) translateY(-22px); }
}

@keyframes cs-brand-glow {
  0%, 100% { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 50px rgba(56, 189, 248, 0.18); }
  50% { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 70px rgba(56, 189, 248, 0.4); }
}

@keyframes cs-mark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes cs-grid-shift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes cs-fly-a {
  0%   { transform: translate(-12vw, 16vh) rotate(-12deg) scale(0.72); }
  22%  { transform: translate(18vw, 6vh) rotate(8deg) scale(0.9); }
  48%  { transform: translate(78vw, 18vh) rotate(-6deg) scale(0.7); }
  72%  { transform: translate(52vw, 68vh) rotate(14deg) scale(0.85); }
  100% { transform: translate(-12vw, 16vh) rotate(-12deg) scale(0.72); }
}

@keyframes cs-fly-b {
  0%   { transform: translate(92vw, 58vh) rotate(10deg) scale(0.65); }
  30%  { transform: translate(62vw, 8vh) rotate(-8deg) scale(0.8); }
  58%  { transform: translate(8vw, 22vh) rotate(6deg) scale(0.7); }
  82%  { transform: translate(28vw, 70vh) rotate(-14deg) scale(0.9); }
  100% { transform: translate(92vw, 58vh) rotate(10deg) scale(0.65); }
}

@keyframes cs-fly-c {
  0%   { transform: translate(38vw, -12vh) rotate(4deg) scale(0.55); }
  25%  { transform: translate(70vw, 28vh) rotate(-10deg) scale(0.75); }
  50%  { transform: translate(12vw, 54vh) rotate(12deg) scale(0.62); }
  75%  { transform: translate(80vw, 72vh) rotate(-4deg) scale(0.8); }
  100% { transform: translate(38vw, -12vh) rotate(4deg) scale(0.55); }
}

@keyframes cs-fly-d {
  0%   { transform: translate(6vw, 72vh) rotate(16deg) scale(0.5); }
  40%  { transform: translate(88vw, 12vh) rotate(-6deg) scale(0.7); }
  100% { transform: translate(6vw, 72vh) rotate(16deg) scale(0.5); }
}

@keyframes cs-fly-e {
  0%   { transform: translate(-8vw, 42vh) rotate(-18deg) scale(0.58); }
  35%  { transform: translate(44vw, 4vh) rotate(10deg) scale(0.72); }
  70%  { transform: translate(96vw, 36vh) rotate(-8deg) scale(0.6); }
  100% { transform: translate(-8vw, 42vh) rotate(-18deg) scale(0.58); }
}

@keyframes cs-fly-f {
  0%   { transform: translate(54vw, 78vh) rotate(8deg) scale(0.48); }
  50%  { transform: translate(10vw, 8vh) rotate(-12deg) scale(0.68); }
  100% { transform: translate(54vw, 78vh) rotate(8deg) scale(0.48); }
}

@media (max-width: 720px) {
  .cs-copy { max-width: min(920px, 94vw); }
  .cs-hero { object-position: center 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero,
  .cs-sparks span,
  .cs-brand,
  .cs-mark,
  .cs-grid,
  .cs-flyer {
    animation: none !important;
  }
  .cs-hero { transform: none; }
  .cs-flyers { display: none; }
  .cs-hero-live { display: none; }
}
