/* 360plus.ai - Coming Soon. Pure CSS: no scripts, fonts, trackers or third-party requests. */

:root {
  --bg-deep: #050A18;
  --bg-navy: #0B1530;
  --navy: #101B36;
  --electric: #3B82F6;
  --electric-hi: #60A5FA;
  --electric-ice: #93C5FD;
  --cyan: #22D3EE;
  --ink: #EAF1FF;
  --ink-soft: #B8C6E3;
  --ink-dim: #7F8FB3;
  --card: rgba(16, 27, 54, 0.55);
  --card-line: rgba(96, 165, 250, 0.22);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% 18%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(900px 600px at 85% 85%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 700px at 8% 75%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 55%, var(--bg-deep) 100%);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.55;
}

/* --- star field (two layers, slow independent drift) ----------------------------------------------- */
.sky,
.sky::after {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

.sky {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(234, 241, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(147, 197, 253, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 90px 160px, rgba(234, 241, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 210px 210px, rgba(96, 165, 250, 0.7), transparent 60%);
  background-size: 240px 240px;
  opacity: 0.55;
  animation: sky-drift 120s linear infinite;
}

.sky::after {
  content: "";
  background-image:
    radial-gradient(1px 1px at 60px 70px, rgba(234, 241, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 180px 40px, rgba(34, 211, 238, 0.6), transparent 60%),
    radial-gradient(1px 1px at 120px 200px, rgba(234, 241, 255, 0.5), transparent 60%);
  background-size: 320px 320px;
  animation: sky-drift 180s linear infinite reverse, twinkle 6s ease-in-out infinite alternate;
}

@keyframes sky-drift { to { transform: translate3d(-240px, -120px, 0); } }
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.85; } }

/* --- layout ------------------------------------------------------------------------------------------ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 6vh, 64px) var(--gutter) 28px;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(300px, 52vh, 560px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.eyebrow {
  position: relative;
  z-index: 3;
  margin: 0 0 clamp(10px, 2vh, 18px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 999px;
  background: rgba(11, 21, 48, 0.6);
  color: var(--electric-ice);
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(34, 211, 238, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.55; }
}

.headline {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- the wordmark: orbit + independent left/right and up/down motion ---------------------------------
   Three nested layers, each animating one thing on its own period:
     .drift-x   left / right   13s
     .drift-y   up / down       8.5s
     .orbit     a small circle 17s
   The periods share no common divisor, so the combined path keeps changing instead of looping. */
.drift-x { animation: drift-x 13s ease-in-out infinite alternate; }
.drift-y { animation: drift-y 8.5s ease-in-out infinite alternate; }
.orbit { animation: orbit 17s linear infinite; }

@keyframes drift-x {
  from { transform: translateX(-2.6vmin); }
  to { transform: translateX(2.6vmin); }
}

@keyframes drift-y {
  from { transform: translateY(-1.8vmin); }
  to { transform: translateY(1.8vmin); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(1.4vmin) rotate(0deg); }
  to { transform: rotate(360deg) translateX(1.4vmin) rotate(-360deg); }
}

.wordmark {
  margin: 0;
  font-size: clamp(2.7rem, 12.5vw, 8.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(59, 130, 246, 0.55), 0 0 80px rgba(37, 99, 235, 0.35);
}

.wordmark .plus {
  background: linear-gradient(100deg, var(--electric-ice) 0%, var(--electric-hi) 35%, var(--cyan) 70%, var(--electric-hi) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(59, 130, 246, 0.65));
  animation: shimmer 7s ease-in-out infinite alternate;
}

.wordmark .tld { color: var(--electric-ice); }

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

/* --- orbit rings around the wordmark ----------------------------------------------------------------- */
.halo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.halo::before {
  content: "";
  position: absolute;
  width: min(62vmin, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 70%);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { transform: scale(0.9); opacity: 0.75; }
  to { transform: scale(1.08); opacity: 1; }
}

.ring {
  position: absolute;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12), inset 0 0 18px rgba(59, 130, 246, 0.08);
  /* Tilt the circle into an ellipse; the spinner inside is flattened into the same plane, so its dot
     travels along the ellipse. */
  transform: rotate(var(--tilt)) scaleY(var(--squash));
}

.ring--1 { --size: min(88vw, 760px); --tilt: -14deg; --squash: 0.34; }
.ring--2 { --size: min(70vw, 600px); --tilt: 18deg; --squash: 0.42; border-color: rgba(34, 211, 238, 0.22); }
.ring--3 { --size: min(52vw, 440px); --tilt: -4deg; --squash: 0.55; border-style: dashed; border-color: rgba(147, 197, 253, 0.18); }

.spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin var(--period) linear infinite;
}

.ring--1 .spinner { --period: 22s; }
.ring--2 .spinner { --period: 15s; animation-direction: reverse; }
.ring--3 .spinner { --period: 31s; }

.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--electric-hi);
  box-shadow: 0 0 12px var(--electric-hi), 0 0 28px rgba(59, 130, 246, 0.9);
}

.spinner::before { top: -5px; }
.spinner::after { bottom: -5px; width: 6px; height: 6px; margin-left: -3px; opacity: 0.7; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ring--3 .spinner::after { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- copy -------------------------------------------------------------------------------------------- */
.teaser {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: clamp(8px, 2vh, 20px) auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
}

.teaser strong { color: var(--ink); font-weight: 650; }
h1.teaser { font-weight: 400; line-height: 1.55; }   /* the 404 page's heading reads as the teaser */

.points {
  list-style: none;
  margin: clamp(28px, 6vh, 56px) auto 0;
  padding: 0;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
}

.point {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: var(--card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(2, 6, 18, 0.45), inset 0 1px 0 rgba(147, 197, 253, 0.08);
  animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both;
}

.point:nth-child(2) { animation-delay: 0.12s; }
.point:nth-child(3) { animation-delay: 0.24s; }

/* Motion only, never opacity: the text is readable even if an animation never runs or never finishes. */
@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

.point-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: var(--electric-ice);
}

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

.point h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

/* --- the 360 Snapshot call to action (an in-page link to #snapshot; nothing is submitted) -------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.cta-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: clamp(22px, 4vh, 34px) auto 0;
  padding: 0 4px;
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px 15px 28px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.6);
  background: linear-gradient(120deg, #2563EB 0%, #3B82F6 45%, #0EA5E9 100%);
  color: #FFFFFF;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 12px 34px rgba(37, 99, 235, 0.45), 0 0 46px rgba(59, 130, 246, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.6), 0 16px 40px rgba(37, 99, 235, 0.55), 0 0 64px rgba(59, 130, 246, 0.55);
}

.cta:focus-visible { outline: 3px solid var(--electric-ice); outline-offset: 4px; }

.cta-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 24, 0.35);
  border: 1px solid rgba(234, 241, 255, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-arrow { width: 20px; height: 20px; flex: none; animation: nudge 2.2s ease-in-out infinite; }

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

.cta-sub {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --- the #snapshot teaser ---------------------------------------------------------------------------- */
.snapshot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: clamp(40px, 8vh, 72px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    rgba(11, 21, 48, 0.72);
  box-shadow: 0 26px 60px rgba(2, 6, 18, 0.5), inset 0 1px 0 rgba(147, 197, 253, 0.12);
  text-align: center;
  scroll-margin-top: 24px;
}

.eyebrow--section { margin-bottom: 14px; }

.snapshot-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.snapshot-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.snapshot-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  text-align: left;
}

.snapshot-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--card-line);
  background: rgba(16, 27, 54, 0.6);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.snapshot-steps strong { color: var(--ink); }

.step-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.4), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: var(--electric-ice);
}

.step-mark svg { width: 16px; height: 16px; }

.snapshot-note {
  margin: 20px 0 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* --- 404: one clear way home ------------------------------------------------------------------------- */
.home-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: clamp(22px, 4vh, 36px) auto 0;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.45), rgba(34, 211, 238, 0.18));
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-link:hover { box-shadow: 0 0 42px rgba(59, 130, 246, 0.6); transform: translateY(-1px); }
.home-link:focus-visible { outline: 3px solid var(--electric-ice); outline-offset: 3px; }
.home-link svg { width: 18px; height: 18px; }

.foot {
  margin-top: auto;
  padding-top: clamp(32px, 7vh, 64px);
  color: var(--ink-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* --- responsive --------------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .points { grid-template-columns: 1fr; max-width: 520px; }
  .snapshot { max-width: 520px; }
  .snapshot-steps { grid-template-columns: 1fr; }
  .point { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .point-icon { margin-bottom: 0; grid-row: span 2; }
}

@media (max-width: 420px) {
  .stage { height: clamp(230px, 36vh, 320px); }
  .cta { width: 100%; justify-content: center; padding: 14px 16px; gap: 10px; }
  .cta-badge { display: none; }   /* the subtitle right below says "Coming soon" */
  .eyebrow { letter-spacing: 0.18em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .stage { height: clamp(220px, 70vh, 360px); }
}

/* --- reduced motion: everything holds still ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .point { transform: none; }
}
