/* Immersive, playful 3D hero (preview). Monochrome electric blue on deep navy. */
:root {
  --iblue: #3b82f6;
  --iblue-2: #60a5fa;
  --iblue-deep: #2563eb;
  --inavy: #02040e;
  --ipage: #d9e6f6;
}
/* Desktop uses the menu inside the frame; phones keep the normal header with its ☰ menu. */
@media (min-width: 821px) { .is-immersive .topbar { display: none; } }
body.is-immersive { background: #eef3fa; }

.ihero {
  --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0;
  padding: 18px;
  background:
    radial-gradient(1200px 500px at 20% 0%, #c8dbf3, transparent 70%),
    radial-gradient(900px 500px at 100% 100%, #c3d7f2, transparent 70%),
    var(--ipage);
}
.iframe {
  position: relative; max-width: 1400px; height: min(760px, calc(100vh - 36px)); min-height: 620px; margin: 0 auto;
  border-radius: 34px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 70% at 50% 55%, #071433 0%, #030817 55%, var(--inavy) 100%);
  box-shadow: 0 50px 100px -40px rgba(2,8,30,0.7), inset 0 0 0 1px rgba(96,165,250,0.18);
  color: #e6efff;
}

/* ---------- top bar inside the frame ---------- */
.ibrand { position: absolute; z-index: 6; top: 22px; left: 28px; display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.02em; }
.ibrand img { width: 30px; height: 30px; }
.ibrand span { color: var(--iblue-2); }
.imyapps { position: absolute; z-index: 6; top: 22px; right: 28px; color: #cfe0ff; font-weight: 700; font-size: 0.9rem; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(96,165,250,0.35); background: rgba(59,130,246,0.08); backdrop-filter: blur(8px); }
.imyapps:hover { background: rgba(59,130,246,0.2); color: #fff; }

/* The notch: a tab cut into the top of the frame that holds the menu */
.inotch {
  position: absolute; z-index: 6; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 10px 14px 12px; background: var(--ipage); border-radius: 0 0 26px 26px;
}
.inotch::before, .inotch::after { content: ""; position: absolute; top: 0; width: 26px; height: 26px; background: radial-gradient(circle at 0 100%, transparent 25px, var(--ipage) 26px); }
.inotch::before { left: -26px; transform: scaleX(-1); }
.inotch::after { right: -26px; }
.inotch a {
  color: #1e3a8a; font-weight: 700; font-size: 0.86rem; text-decoration: none; padding: 9px 16px; border-radius: 999px; transition: background .15s, color .15s;
}
.inotch a:hover { background: rgba(29,78,216,0.1); }
.inotch a.on { background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 55%), #0b1a45; color: #fff; box-shadow: inset 0 0 0 1px rgba(96,165,250,0.5), 0 0 18px rgba(59,130,246,0.45); }

/* ---------- 3D stage ---------- */
.istage { position: absolute; inset: 0; z-index: 1; perspective: 1200px; }
.arches { position: absolute; inset: 0; transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -6px), 0); }
.arches i {
  position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%);
  border: 2px solid rgba(96,165,250,0.55); border-bottom: 0; border-radius: 999px 999px 0 0;
  box-shadow: 0 0 24px rgba(59,130,246,0.55), inset 0 0 24px rgba(59,130,246,0.35);
  mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,0.2) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,0.2) 100%);
  animation: archGlow 4s ease-in-out infinite;
}
.arches i:nth-child(1) { width: 300px; height: 470px; border-color: rgba(147,197,253,0.85); }
.arches i:nth-child(2) { width: 470px; height: 560px; opacity: .8; animation-delay: .3s; }
.arches i:nth-child(3) { width: 680px; height: 640px; opacity: .6; animation-delay: .6s; }
.arches i:nth-child(4) { width: 920px; height: 720px; opacity: .45; animation-delay: .9s; }
.arches i:nth-child(5) { width: 1200px; height: 800px; opacity: .3; animation-delay: 1.2s; }
.arches i:nth-child(6) { width: 1540px; height: 880px; opacity: .2; animation-delay: 1.5s; }
@keyframes archGlow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

/* Glossy reflective floor */
.ifloor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 17%;
  background:
    radial-gradient(40% 60% at 50% 0%, rgba(59,130,246,0.45), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(96,165,250,0.06) 60px 62px),
    linear-gradient(180deg, #06122e, #02040e);
  border-top: 1px solid rgba(96,165,250,0.35);
}
.ifloor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(147,197,253,0.18), transparent); filter: blur(10px); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%,100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

/* Podium: phone on a glowing pedestal */
.ipodium { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); width: 300px; display: flex; flex-direction: column; align-items: center; }
.iphone-wrap {
  --ps: .68; width: calc(280px * var(--ps)); height: calc(572px * var(--ps));
  position: relative; z-index: 2; margin-bottom: -10px;
  transform: rotateX(calc(var(--rx) * 1)) rotateY(calc(var(--ry) * 1)); transform-style: preserve-3d;
  transition: transform .25s ease-out; animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.iphone-wrap .phone { transform: scale(var(--ps)); transform-origin: 0 0; animation: none; }
.is-immersive .phone-icon, .is-immersive .phone-banner b { background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0) 55%), var(--iblue); }
.is-immersive .phone-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 18px 34px -10px rgba(59,130,246,0.7); }
.pedestal {
  position: relative; width: 300px; height: 46px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 40%, #1e3a8a, #071433 70%);
  box-shadow: 0 0 0 2px rgba(147,197,253,0.7), 0 0 30px rgba(59,130,246,0.9), 0 0 80px rgba(59,130,246,0.6), inset 0 -8px 18px rgba(0,0,0,0.6);
}
.pedestal { perspective: 600px; }
.ped-ring { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; border: 2px solid rgba(96,165,250,0.15); border-top-color: rgba(191,219,254,0.95); border-right-color: rgba(96,165,250,0.6); transform: rotateX(78deg); animation: spin 3.5s linear infinite; filter: drop-shadow(0 0 6px #60a5fa); pointer-events: none; }
@keyframes spin { from { transform: rotateX(78deg) rotateZ(0deg); } to { transform: rotateX(78deg) rotateZ(360deg); } }
.ireflect { width: 260px; height: 60px; margin-top: 4px; background: radial-gradient(50% 60% at 50% 0%, rgba(96,165,250,0.55), transparent 70%); filter: blur(6px); }

/* Playful floating 3D objects (move with the cursor by depth) */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.fl { position: absolute; display: grid; place-items: center; transform: translate3d(calc(var(--mx) * var(--d, 20px)), calc(var(--my) * var(--d, 20px)), 0); transition: transform .3s ease-out; }
.fl.tile {
  width: 62px; height: 62px; border-radius: 18px; color: #fff; font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 50%), linear-gradient(145deg, #60a5fa, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -6px 12px rgba(2,8,30,0.35), 0 18px 30px -10px rgba(2,8,30,0.8), 0 0 30px rgba(59,130,246,0.45);
  animation: floaty 6s ease-in-out infinite;
}
.fl.sphere { border-radius: 50%; background: radial-gradient(circle at 32% 28%, #dbeafe 0%, #60a5fa 22%, #1d4ed8 60%, #0b1a45 100%); box-shadow: 0 20px 40px -12px rgba(2,8,30,0.9), 0 0 40px rgba(59,130,246,0.5); animation: floaty 7s ease-in-out infinite; }
.fl.ring { width: 90px; height: 90px; border-radius: 50%; border: 10px solid #3b82f6; box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 0 26px rgba(59,130,246,0.7); transform-style: preserve-3d; animation: floaty 8s ease-in-out infinite; }
.t1 { --d: 34px; top: 24%; left: 37%; }
.t2 { --d: 22px; top: 30%; right: 33%; animation-delay: -2s !important; }
.t3 { --d: 40px; top: 50%; right: 30%; animation-delay: -4s !important; }
.s1 { --d: 46px; width: 46px; height: 46px; top: 58%; left: 39%; }
.s2 { --d: 18px; width: 26px; height: 26px; top: 12%; left: 46%; animation-delay: -3s !important; }
.r1 { --d: 30px; top: 16%; right: 20%; width: 70px; height: 70px; border-width: 8px; }
@keyframes floaty { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -16px; rotate: 8deg; } }

/* ---------- copy ---------- */
.icopy { position: absolute; z-index: 5; left: 48px; top: 120px; max-width: 400px; }
.ipill { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #bfdbfe; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(96,165,250,0.35); background: rgba(59,130,246,0.1); backdrop-filter: blur(8px); }
.icopy h1 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.05; letter-spacing: -0.045em; margin: 18px 0 14px; font-weight: 800; }
.icopy h1 em { font-style: normal; color: var(--iblue-2); text-shadow: 0 0 28px rgba(59,130,246,0.6); }
.icopy p { color: #a9bddb; font-size: 1.04rem; line-height: 1.6; margin: 0 0 24px; }
.iactions { display: flex; gap: 10px; flex-wrap: wrap; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; font-weight: 750; padding: 14px 24px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0) 55%), var(--iblue-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 0 1px rgba(147,197,253,0.4), 0 12px 30px -8px rgba(59,130,246,0.9);
  transition: transform .15s, box-shadow .15s;
}
.ibtn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 0 1px rgba(147,197,253,0.6), 0 16px 40px -8px rgba(59,130,246,1); text-decoration: none; }
.ibtn-ghost { display: inline-flex; align-items: center; text-decoration: none; color: #dbeafe; font-weight: 700; padding: 14px 20px; border-radius: 14px; border: 1px solid rgba(96,165,250,0.35); background: rgba(59,130,246,0.08); backdrop-filter: blur(8px); }
.ibtn-ghost:hover { background: rgba(59,130,246,0.18); color: #fff; text-decoration: none; }

/* ---------- glass stat cards ---------- */
.icards { position: absolute; z-index: 5; right: 28px; bottom: 28px; width: 250px; display: flex; flex-direction: column; gap: 12px; }
.icard {
  padding: 16px 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(59,130,246,0.22), rgba(29,78,216,0.08));
  border: 1px solid rgba(147,197,253,0.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 20px 40px -20px rgba(2,8,30,0.9);
}
.icard b { display: block; font-size: 1.9rem; letter-spacing: -0.03em; text-align: center; }
.icard small { display: block; text-align: center; color: #bfdbfe; font-size: 0.8rem; }
.icard svg { display: block; width: 100%; height: 46px; margin-top: 8px; }
.icard svg path { fill: none; stroke: #60a5fa; stroke-width: 2.5; filter: drop-shadow(0 0 6px #3b82f6); stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s ease-out .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.icard-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.icard-row b { font-size: 1.1rem; display: inline; }

/* ---------- notched bottom-left corner with round CTA ---------- */
.icorner { position: absolute; z-index: 6; left: 0; bottom: 0; width: 150px; height: 150px; background: var(--ipage); border-radius: 0 64px 0 0; display: grid; place-items: center; }
.icorner::before, .icorner::after { content: ""; position: absolute; width: 34px; height: 34px; background: radial-gradient(circle at 100% 0, transparent 33px, var(--ipage) 34px); }
.icorner::before { left: 0; top: -34px; }
.icorner::after { right: -34px; bottom: 0; }
.iround {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 0.82rem; letter-spacing: .22em; line-height: 1.5;
  background: radial-gradient(circle at 35% 25%, #3b82f6, #0b1a45 75%);
  box-shadow: inset 0 0 0 2px rgba(147,197,253,0.8), inset 0 2px 0 rgba(255,255,255,0.4), 0 0 30px rgba(59,130,246,0.7);
  transition: transform .2s, box-shadow .2s;
}
.iround:hover { transform: scale(1.06) rotate(-4deg); box-shadow: inset 0 0 0 2px #bfdbfe, 0 0 46px rgba(59,130,246,1); text-decoration: none; }

/* Rest of the page: same electric blue accent */
.is-immersive .btn-lg { background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%), #2563eb; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 14px 30px -10px rgba(59,130,246,0.9); }
.is-immersive .btn-lg:hover { background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%), #1d4ed8; }
.is-immersive .build { margin-top: -40px; }

@media (prefers-reduced-motion: reduce) {
  .arches i, .ifloor::after, .ped-ring, .iphone-wrap, .fl, .icard svg path { animation: none !important; }
  .icard svg path { stroke-dashoffset: 0; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 1000px) {
  .icopy { left: 32px; max-width: 340px; }
  .icards { width: 210px; }
  .t1, .s1, .r1 { left: auto; right: 6%; }
}
@media (max-width: 820px) {
  .ihero { padding: 8px; }
  .iframe { height: auto; min-height: 0; border-radius: 24px; padding: 24px 18px 0; display: flex; flex-direction: column; }
  .inotch, .icorner, .r1, .s2 { display: none; }
  .ibrand, .imyapps { display: none; }

  .icopy { order: 1; position: relative; left: auto; top: auto; max-width: none; text-align: left; }
  .ipill { font-size: 0.74rem; padding: 6px 11px; }
  .icopy h1 { font-size: 2.15rem; margin: 14px 0 10px; }
  .icopy p { font-size: 0.98rem; margin-bottom: 18px; }
  .iactions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
  .ibtn, .ibtn-ghost { justify-content: center; padding: 14px 10px; font-size: 0.92rem; white-space: nowrap; }

  .istage { order: 2; position: relative; inset: auto; height: 470px; margin: 8px -18px 0; overflow: hidden; }
  .arches i { bottom: 86px; }
  .arches i:nth-child(1) { width: 250px; height: 380px; }
  .arches i:nth-child(2) { width: 360px; height: 430px; }
  .arches i:nth-child(3) { width: 500px; height: 480px; }
  .arches i:nth-child(n+4) { display: none; }
  .ifloor { height: 86px; }
  .ipodium { bottom: 86px; }
  .iphone-wrap { --ps: .56; }
  .pedestal { width: 220px; height: 34px; }
  .ped-ring { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .ireflect { display: none; }
  .fl.tile { width: 44px; height: 44px; font-size: 1rem; border-radius: 13px; }
  .t1 { top: 10%; left: 6%; right: auto; } .t2 { top: 6%; right: 7%; } .t3 { top: 40%; right: 5%; }
  .s1 { width: 34px; height: 34px; top: 46%; left: 7%; right: auto; }

  /* Stat cards float as glass over the floor */
  .icards { order: 3; position: relative; right: auto; bottom: auto; width: auto; flex-direction: row; gap: 8px; margin: -78px 0 16px; z-index: 6; }
  .icards .icard { flex: 1; padding: 10px 12px; border-radius: 16px; background: rgba(8,20,55,0.6); }
  .icard b { font-size: 1.25rem; }
  .icard small { font-size: 0.72rem; }
  .icard svg { height: 22px; margin-top: 4px; }
  .icard-row { flex-direction: column; justify-content: center; gap: 2px; text-align: center; font-size: 0.78rem; }
  .icard-row b { font-size: 1.25rem; }
  .is-immersive .build { margin-top: 20px; }
}
@media (max-width: 360px) {
  .icopy h1 { font-size: 1.9rem; }
  .iactions { grid-template-columns: 1fr; }
}
