/* Hero: the dashboard tilts in 3D, notes float at different depths above it. */
.hero { position: relative; padding-block: 44px 140px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 50% 72%, rgba(27, 106, 232, .16), transparent 70%),
    radial-gradient(480px 300px at 12% 8%, rgba(242, 100, 59, .12), transparent 70%),
    radial-gradient(520px 320px at 92% 18%, rgba(255, 214, 102, .24), transparent 70%);
}
/* Graph-paper floor receding into the distance */
.hero-floor {
  position: absolute; inset-inline: -40%; bottom: 0; height: 58%; pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 42, 55, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 55, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(68deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
  animation: floor-run 5s linear infinite;
}
@keyframes floor-run { to { background-position: 0 56px; } }

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { position: relative; font-size: 27px; color: var(--marker); rotate: -3deg; }
.eyebrow span { color: var(--blue); }
.doodle-star { position: absolute; inset-inline-end: -34px; top: -10px; width: 26px; height: 26px; stroke: #e0a100; stroke-width: 2; }
.hero h1 { margin-block: 12px 0; max-width: 20ch; font-size: clamp(42px, 6vw, 82px); font-weight: 800; letter-spacing: -.045em; }
.circled { position: relative; display: inline-block; white-space: nowrap; color: var(--blue); }
.circled .doodle { position: absolute; left: -9%; top: -10%; width: 118%; height: 136%; stroke-width: 1.4; }
.lede { max-width: 620px; margin-block: 26px 34px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.hero .cta-row { justify-content: center; }
.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #dcf5e9 var(--tick) center / 14px no-repeat; }

.hero-stage {
  position: relative; max-width: 1080px; margin: 112px auto 0; padding-inline: var(--gutter);
  perspective: 1600px; perspective-origin: 50% 0%;
}
.hero-scene {
  position: relative; transform-style: preserve-3d; transform-origin: 50% 60%;
  transform: rotateX(var(--rx, 16deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  will-change: transform;
}

/* Browser frame, shared with the portal card and tour panels */
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-2); }
.browser img { display: block; width: 100%; height: auto; }
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px;
  background: #f1ece3; border-block-end: 1px solid var(--line);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3d9ca; }
.browser-bar i:nth-child(1) { background: #ff8f73; }
.browser-bar i:nth-child(2) { background: #ffd166; }
.browser-bar i:nth-child(3) { background: #7dd3a8; }
.browser-bar span {
  margin-inline: auto; padding: 2px 14px; border-radius: 999px; background: #fff;
  font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Things floating above the screen; `translate` holds the depth, `transform` the bobbing */
.float, .shape { position: absolute; left: var(--x); top: var(--y); translate: 0 0 var(--z); transform-style: preserve-3d; }
.float-note  { --x: -6%; --y: 30%; --z: 150px; }
.float-toast { --x: 72%; --y: 8%;  --z: 120px; --d: -2s; }
.float-lead  { --x: 61%; --y: 79%; --z: 95px;  --d: -4s; }
.float-team  { --x: 5%;  --y: 83%; --z: 70px;  --d: -1s; }
.float-in { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { transform: translateY(-12px); } }

.sticky-note {
  position: relative; width: 214px; padding: 28px 18px 18px;
  background: linear-gradient(170deg, #fff4ad, #ffe27a); color: #5a4300;
  border-radius: 2px 2px 16px 2px; rotate: -5deg;
  box-shadow: 0 18px 30px -16px rgba(90, 67, 0, .55), inset 0 -10px 18px -12px rgba(150, 110, 0, .35);
}
.sticky-note p { font-size: 25px; }
.tape {
  position: absolute; top: -11px; left: 50%; width: 86px; height: 24px; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 255, 255, .58); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.chip-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; white-space: nowrap;
  background: rgba(255, 255, 255, .94); border-radius: 16px;
  box-shadow: 0 24px 40px -20px rgba(31, 42, 55, .45), 0 0 0 1px rgba(31, 42, 55, .06);
}
.chip-card strong { display: block; font-size: 14px; line-height: 1.3; }
.chip-card small { display: block; font-size: 12.5px; color: var(--ink-2); }
.chip-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; }
.chip-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon-green { background: #dcf5e9; }
.chip-icon-green svg { stroke: var(--green); }
.mini-av { display: block; flex: none; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.av-stack { display: flex; }
.av-stack .mini-av + .mini-av { margin-inline-start: -11px; }

/* Solid shapes */
.cube  { --x: 89%; --y: 60%; --z: 130px;  width: 64px; height: 64px; animation: tumble 16s linear infinite; }
.cube i { position: absolute; inset: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .45); background: linear-gradient(135deg, #5b9bff, #1b6ae8); }
.cube i:nth-child(1) { transform: translateZ(32px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(32px); background: #1557c4; }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(32px); background: linear-gradient(135deg, #3d84f5, #1557c4); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); background: linear-gradient(135deg, #7fb2ff, #3d84f5); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(32px); background: #a9cbff; }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); background: #0f4bb0; }
@keyframes tumble { from { rotate: 1 1 .3 0deg; } to { rotate: 1 1 .3 360deg; } }

.torus {
  --x: 76%; --y: -15%; --z: -90px; width: 132px; height: 132px; border-radius: 50%;
  border: 18px solid #ffb38f;
  box-shadow: inset 0 6px 10px rgba(255, 255, 255, .55), inset 0 -8px 14px rgba(170, 60, 20, .3), 0 10px 18px -6px rgba(170, 60, 20, .35);
  animation: spin-ring 14s linear infinite;
}
@keyframes spin-ring { from { transform: rotateX(64deg) rotateZ(0deg); } to { transform: rotateX(64deg) rotateZ(360deg); } }

.sphere { border-radius: 50%; animation: bob 6s ease-in-out infinite; }
.sphere-sun {
  --x: -5%; --y: 70%; --z: 200px; width: 56px; height: 56px; animation-delay: -3s;
  background: radial-gradient(circle at 32% 28%, #fffbe6 0 8%, #ffd666 30%, #f59e0b 75%, #c96f00);
  box-shadow: 0 22px 30px -12px rgba(201, 111, 0, .5);
}
.sphere-blue {
  --x: 36%; --y: 95%; --z: 170px; width: 30px; height: 30px;
  background: radial-gradient(circle at 32% 28%, #e6f0ff 0 8%, #5b9bff 35%, #1b6ae8 75%, #0e3f94);
  box-shadow: 0 14px 20px -8px rgba(14, 63, 148, .5);
}

/* Handwritten notes next to things */
.annot { position: absolute; z-index: 3; font-size: 26px; color: var(--marker); pointer-events: none; }
.annot .doodle { position: absolute; }
.annot-hero { left: max(var(--gutter), 0px); top: -86px; rotate: -5deg; }
.annot-hero .doodle { left: 60%; top: 34px; width: 120px; height: 70px; }

@media (max-width: 1100px) {
  .annot-hero { display: none; }
  .float-note { --x: -2%; }
  .float-toast { --x: 62%; }
}
@media (max-width: 760px) {
  .hero { padding-block: 32px 96px; }
  .hero-stage { margin-block-start: 56px; perspective: 1000px; }
  .float { scale: .64; transform-origin: 0 0; }
  .float-note  { --x: 3%;  --y: 50%; }
  .float-toast { --x: 33%; --y: 7%; }
  .float-lead  { --x: 16%; --y: 90%; }
  .float-team  { display: none; }
  .cube { --x: 74%; --y: 72%; scale: .6; }
  .torus { --x: 78%; --y: -24%; width: 84px; height: 84px; border-width: 12px; }
  .sphere-sun { --x: 90%; --y: 30%; width: 36px; height: 36px; }
  .sphere-blue { --x: 6%; --y: -12%; }
  .sticky-note { width: 190px; }
}
