@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&display=swap');

html,
body.jarvis-site {
  min-height: 100%;
  height: 100%;
}

body.jarvis-site {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.10), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(45, 212, 191, 0.07), transparent 34%),
    linear-gradient(180deg, #01040a 0%, #030914 42%, #02060c 78%, #010309 100%);
  color: #f8fbff;
  overflow: hidden;
}

body.jarvis-site .header {
  display: none;
}

body.jarvis-site .content {
  flex: 1;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.10), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(45, 212, 191, 0.07), transparent 34%),
    linear-gradient(180deg, #01040a 0%, #030914 42%, #02060c 78%, #010309 100%);
  overflow: hidden;
}

body.jarvis-site::before,
body.jarvis-site::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.jarvis-site::before {
  background:
    radial-gradient(circle at 22% 24%, rgba(125, 211, 252, 0.10), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(129, 140, 248, 0.08), transparent 24%),
    radial-gradient(circle at 52% 78%, rgba(94, 234, 212, 0.06), transparent 34%);
  filter: blur(42px);
  opacity: 0.78;
  animation: jarvisAmbientShift 18s ease-in-out infinite alternate;
}

body.jarvis-site::after {
  background: radial-gradient(circle at center, rgba(0,0,0,0) 34%, rgba(0,0,0,0.52) 100%);
  opacity: 0.76;
}

.jarvis-landing {
  position: relative;
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
}

.jarvis-landing::before,
.jarvis-landing::after,
.jarvis-landing__particles::before,
.jarvis-landing__particles::after,
.jarvis-landing__glow::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jarvis-landing::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(240,248,255,0.04) 48%, rgba(255,255,255,0.10) 50%, rgba(240,248,255,0.04) 52%, transparent 100%),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08), transparent 44%);
  filter: blur(18px);
  opacity: 0.72;
  animation: jarvisBeamField 9s ease-in-out infinite;
}

.jarvis-landing::after {
  inset: auto -10% -2% -10%;
  height: 62%;
  background:
    linear-gradient(rgba(126, 236, 255, 0.74) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 236, 255, 0.74) 1px, transparent 1px);
  background-size: 100% 18px, 18px 100%;
  transform-origin: center bottom;
  transform: perspective(780px) rotateX(79deg) scaleY(1.92);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.12) 6%, rgba(255,255,255,0.62) 26%, rgba(255,255,255,1) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.12) 6%, rgba(255,255,255,0.62) 26%, rgba(255,255,255,1) 100%);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.26));
  opacity: 1;
  animation: jarvisGridFlow 1.7s linear infinite;
}

.jarvis-landing__sweep,
.jarvis-landing__veil,
.jarvis-landing__mist,
.jarvis-landing__particles,
.jarvis-landing__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jarvis-landing__sweep {
  top: -12%;
  bottom: -12%;
  left: -18vw;
  width: min(22vw, 260px);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(164,226,240,0.14) 26%, rgba(255,255,255,0.32) 50%, rgba(164,226,240,0.14) 74%, rgba(255,255,255,0) 100%);
  filter: blur(28px);
  opacity: 0.54;
  transform: rotate(10deg);
  animation: jarvisSweepTraverse 6.8s cubic-bezier(.45,.05,.55,.95) infinite;
}

.jarvis-landing__veil {
  inset: -14%;
  mix-blend-mode: screen;
}

.jarvis-landing__veil--one {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(56, 189, 248, 0.10), transparent 42%),
    radial-gradient(ellipse at 62% 56%, rgba(45, 212, 191, 0.06), transparent 36%);
  filter: blur(38px);
  opacity: 0.46;
  animation: jarvisAuroraOne 16s ease-in-out infinite alternate;
}

.jarvis-landing__veil--two {
  background:
    radial-gradient(ellipse at 82% 22%, rgba(129, 140, 248, 0.10), transparent 40%),
    radial-gradient(ellipse at 42% 80%, rgba(56, 189, 248, 0.04), transparent 34%);
  filter: blur(42px);
  opacity: 0.38;
  animation: jarvisAuroraTwo 18s ease-in-out infinite alternate;
}

.jarvis-landing__mist {
  background:
    linear-gradient(120deg, transparent 18%, rgba(186, 230, 253, 0.018) 36%, transparent 52%),
    linear-gradient(240deg, transparent 20%, rgba(199, 210, 254, 0.018) 46%, transparent 62%);
  filter: blur(30px);
  opacity: 0.20;
  animation: jarvisMistFlow 18s linear infinite;
}

.jarvis-landing__particles::before {
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,0.98) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 16% 30%, rgba(240,246,255,0.88) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 24% 58%, rgba(255,255,255,0.86) 0 0.9px, transparent 1.64px),
    radial-gradient(circle at 34% 18%, rgba(248,251,255,0.96) 0 1px, transparent 1.78px),
    radial-gradient(circle at 46% 24%, rgba(255,255,255,0.90) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 58% 14%, rgba(248,251,255,0.98) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 68% 34%, rgba(240,246,255,0.84) 0 0.9px, transparent 1.64px),
    radial-gradient(circle at 76% 18%, rgba(255,255,255,0.94) 0 1px, transparent 1.78px),
    radial-gradient(circle at 84% 42%, rgba(248,251,255,0.86) 0 0.9px, transparent 1.64px),
    radial-gradient(circle at 92% 20%, rgba(255,255,255,0.92) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 12% 76%, rgba(240,246,255,0.76) 0 0.84px, transparent 1.58px),
    radial-gradient(circle at 38% 84%, rgba(255,255,255,0.74) 0 0.82px, transparent 1.56px),
    radial-gradient(circle at 62% 78%, rgba(240,246,255,0.72) 0 0.8px, transparent 1.52px),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,0.76) 0 0.82px, transparent 1.56px);
  background-size:
    220px 220px,
    300px 300px,
    360px 360px,
    420px 420px,
    500px 500px,
    580px 580px,
    680px 680px,
    780px 780px,
    900px 900px,
    1020px 1020px,
    1140px 1140px,
    1260px 1260px,
    1400px 1400px,
    1560px 1560px;
  opacity: 0.9;
  animation: jarvisStarsDriftA 20s linear infinite, jarvisStarsTwinkleA 5.6s ease-in-out infinite alternate;
}

.jarvis-landing__particles::after {
  background-image:
    radial-gradient(circle at 10% 22%, rgba(255,255,255,1) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 32% 12%, rgba(244,248,255,0.98) 0 1.45px, transparent 2.2px),
    radial-gradient(circle at 52% 34%, rgba(255,255,255,1) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 72% 74%, rgba(244,248,255,0.94) 0 1.45px, transparent 2.2px),
    radial-gradient(circle at 88% 24%, rgba(255,255,255,0.98) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 20% 78%, rgba(244,248,255,0.92) 0 1.35px, transparent 2.15px);
  background-size: 380px 380px, 620px 620px, 860px 860px, 1080px 1080px, 1280px 1280px, 1480px 1480px;
  opacity: 0.22;
  animation: jarvisStarsDriftB 32s linear infinite reverse, jarvisStarGlints 7.2s steps(10, end) infinite;
}

.jarvis-landing__glow {
  inset: auto 50% 12%;
  width: min(86vw, 1080px);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.24) 0%, rgba(56, 189, 248, 0.08) 36%, rgba(56, 189, 248, 0) 74%);
  filter: blur(24px);
  opacity: 0.86;
  animation: jarvisFloorGlow 4.2s ease-in-out infinite;
}

.jarvis-landing__glow::before {
  inset: auto 0 8% 0;
  height: 16%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.24), rgba(255,255,255,0));
  filter: blur(14px);
  opacity: 0.88;
  animation: jarvisFloorGlow 3.4s ease-in-out infinite reverse;
}

.jarvis-landing__shell {
  position: relative;
  z-index: 3;
  width: min(88vw, 960px);
  min-height: clamp(180px, 24vh, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3.4vw, 30px) clamp(18px, 3.2vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(196, 226, 238, 0.22);
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.50), rgba(4, 10, 18, 0.34));
  box-shadow:
    0 26px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(120,174,196,0.05),
    0 0 32px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.jarvis-landing__shell::before,
.jarvis-landing__shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.jarvis-landing__shell::before {
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(196,226,238,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%, transparent 70%, rgba(255,255,255,0.018));
}

.jarvis-landing__shell::after {
  inset: auto 10% -50% 10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(28, 162, 180, 0.16), rgba(28, 162, 180, 0) 72%);
  filter: blur(24px);
  opacity: 0.46;
}

.jarvis-landing__center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
}

.jarvis-landing__center::before,
.jarvis-landing__center::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(78vw, 720px);
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.jarvis-landing__center::before {
  content: 'SYSTEM ONLINE  •  OPENCLAW / JARVIS WEB TECH';
  top: -20px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(210, 235, 245, 0.58);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.jarvis-landing__center::after {
  content: 'INTERFACE READY';
  bottom: -22px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.52em;
  color: rgba(210, 235, 245, 0.34);
}

.jarvis-landing__title {
  margin: 0;
  font-family: 'Sora', 'Roboto', 'DM Sans', sans-serif;
  font-size: clamp(40px, 7.0vw, 108px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #f8fbff;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(240,248,255,0.16),
    0 0 42px rgba(56,189,248,0.22),
    0 0 110px rgba(56,189,248,0.12);
  animation: jarvisTitleFloat 3.4s ease-in-out infinite;
}

.jarvis-landing__title span {
  display: block;
  margin-top: 0.12em;
}

@keyframes jarvisAmbientShift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(1%, -1%, 0); }
}

@keyframes jarvisBeamField {
  0%, 100% { opacity: 0.74; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes jarvisSweepTraverse {
  0% { transform: translate3d(0, 0, 0) rotate(10deg); opacity: 0.24; }
  14% { opacity: 0.56; }
  50% { transform: translate3d(74vw, 0, 0) rotate(10deg); opacity: 0.72; }
  86% { opacity: 0.42; }
  100% { transform: translate3d(144vw, 0, 0) rotate(10deg); opacity: 0.18; }
}

@keyframes jarvisAuroraOne {
  0% { transform: translate3d(-3%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

@keyframes jarvisAuroraTwo {
  0% { transform: translate3d(3%, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 2%, 0) scale(1.05); }
}

@keyframes jarvisMistFlow {
  0% { transform: translate3d(-5%, 0, 0) scale(1.01); }
  50% { transform: translate3d(3%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(6%, 0, 0) scale(1.01); }
}

@keyframes jarvisStarsDriftA {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-18px, 20px, 0); }
}

@keyframes jarvisStarsDriftB {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(14px, -16px, 0); }
}

@keyframes jarvisStarsTwinkleA {
  0%, 100% { opacity: 0.74; }
  50% { opacity: 1; }
}

@keyframes jarvisStarGlints {
  0%, 100% { opacity: 0.10; }
  10% { opacity: 0.28; }
  18% { opacity: 0.08; }
  34% { opacity: 0.24; }
  42% { opacity: 0.06; }
  60% { opacity: 0.30; }
  68% { opacity: 0.09; }
}

@keyframes jarvisGridFlow {
  0% { background-position: center 0, center 0; }
  100% { background-position: center 18px, 18px 0; }
}

@keyframes jarvisFloorGlow {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.72; }
  50% { transform: translateX(-50%) scaleX(1.16); opacity: 1; }
}

@keyframes jarvisTitleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.018); }
}

@media (orientation: landscape) and (max-height: 760px) {
  .jarvis-landing__shell {
    min-height: 160px;
  }

  .jarvis-landing__title {
    font-size: clamp(38px, 6.0vw, 82px);
  }

  .jarvis-landing::after {
    height: 42%;
    background-size: 100% 14px, 14px 100%;
  }
}

@media (max-width: 640px) {
  .jarvis-landing {
    padding: 18px;
  }

  .jarvis-landing__shell {
    width: min(90vw, 560px);
    min-height: 166px;
    padding: 18px 16px 20px;
  }

  .jarvis-landing::after {
    height: 38%;
    background-size: 100% 12px, 12px 100%;
  }

  .jarvis-landing__title {
    font-size: clamp(32px, 8.8vw, 54px);
    letter-spacing: 0.045em;
  }

  .jarvis-landing__center::before,
  .jarvis-landing__center::after {
    width: 92vw;
    letter-spacing: 0.28em;
    font-size: 9px;
  }
}
