:root {
  --ink: #092133;
  --muted: #5a7180;
  --cyan: #09d6cf;
  --teal: #00a9b8;
  --blue: #1b9dff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 18%, rgba(9, 214, 207, 0.34), transparent 27%),
    radial-gradient(circle at 20% 76%, rgba(27, 157, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #f8fffe 0%, #eefcff 48%, #ffffff 100%);
}

.landing-shell {
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 54px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100dvh - clamp(36px, 8vw, 108px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(30px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 30px 90px rgba(15, 111, 138, 0.16);
  backdrop-filter: blur(28px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 950;
}

.brand-mark span {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 15px;
  background: conic-gradient(from 180deg, var(--cyan), var(--blue), #8ff8ec, var(--cyan));
  box-shadow: 0 16px 42px rgba(9, 214, 207, 0.34);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
}

p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.75;
}

.start-button {
  margin-top: 34px;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  padding: 18px 30px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 46px rgba(6, 177, 198, 0.3);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
}

.buy-hint {
  display: block;
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.visual-stage {
  position: relative;
  min-height: 560px;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(0, 169, 184, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}

.orbit-a {
  width: 520px;
  height: 520px;
}

.orbit-b {
  width: 380px;
  height: 380px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.glass-card {
  position: absolute;
  width: 245px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 70px rgba(20, 110, 140, 0.2);
  backdrop-filter: blur(22px);
  will-change: left, right, top, bottom, width, transform, opacity, filter;
}

.glass-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.before-card {
  z-index: 2;
  left: 4%;
  top: 18%;
  transform: rotate(-8deg);
  animation: beforeCompare 8s ease-in-out infinite;
}

.after-card {
  z-index: 4;
  left: calc(100% - 360px);
  top: 30%;
  width: 330px;
  transform: rotate(6deg);
  animation: afterCompare 8s ease-in-out infinite;
}

.poster {
  min-height: 250px;
  overflow: hidden;
  border-radius: 20px;
  background: #eefcff;
}

.poster-before {
  min-height: 265px;
}

.poster-after {
  min-height: 360px;
  box-shadow: inset 0 0 0 1px rgba(9, 214, 207, 0.08);
}

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.beam {
  position: absolute;
  left: 31%;
  top: 42%;
  width: 42%;
  height: 90px;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(9, 214, 207, 0.34), rgba(27, 157, 255, 0.22), transparent);
  filter: blur(10px);
  animation: compareBeam 8s ease-in-out infinite;
}

.ai-core {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(206, 255, 251, .72));
  box-shadow: 0 26px 80px rgba(4, 163, 185, 0.28);
  animation: coreGlow 3.5s ease-in-out infinite;
}

.ai-core span {
  position: absolute;
  border: 2px solid rgba(7, 183, 194, 0.26);
  border-radius: 30px;
}

.ai-core span:nth-child(1) { inset: 18px; }
.ai-core span:nth-child(2) { inset: 38px; transform: rotate(45deg); }
.ai-core span:nth-child(3) {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 32px var(--cyan);
}

.floating-chip {
  position: absolute;
  z-index: 7;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f5364;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(13, 107, 139, 0.14);
  animation: floatA 5s ease-in-out infinite;
}

.chip-one { left: 2%; top: 58%; }
.chip-two { right: 2%; top: 8%; animation-delay: -1.5s; }
.chip-three { left: 46%; top: 2%; animation-delay: -2.4s; }

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatA {
  50% { transform: translateY(-14px) rotate(-4deg); }
}

@keyframes floatB {
  50% { transform: translateY(16px) rotate(3deg); }
}

@keyframes pulse {
  50% { opacity: .55; transform: rotate(-8deg) scaleX(1.08); }
}

@keyframes coreGlow {
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes beforeCompare {
  0%,
  38% {
    z-index: 2;
    left: 4%;
    top: 10%;
    width: 245px;
    opacity: .78;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
  50%,
  88% {
    z-index: 4;
    left: calc(100% - 360px);
    top: 20%;
    width: 330px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
  100% {
    z-index: 2;
    left: 4%;
    top: 10%;
    width: 245px;
    opacity: .78;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
}

@keyframes afterCompare {
  0%,
  38% {
    z-index: 4;
    left: calc(100% - 360px);
    top: 20%;
    width: 330px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
  50%,
  88% {
    z-index: 2;
    left: 4%;
    top: 10%;
    width: 245px;
    opacity: .78;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
  100% {
    z-index: 4;
    left: calc(100% - 360px);
    top: 20%;
    width: 330px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
}

@keyframes compareBeam {
  0%,
  38%,
  100% {
    opacity: .95;
    transform: rotate(-8deg) scaleX(1);
  }
  50%,
  88% {
    opacity: .68;
    transform: rotate(8deg) scaleX(1.1);
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .landing-shell {
    min-height: 100svh;
    padding: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: calc(100svh - 20px);
    min-height: 0;
    padding: 18px 18px 14px;
  }

  .brand-mark {
    gap: 9px;
    margin-bottom: 12px;
    font-size: 19px;
  }

  .brand-mark span {
    width: 34px;
    border-radius: 12px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.02;
  }

  p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  .start-button {
    min-width: 168px;
    margin-top: 14px;
    padding: 13px 22px;
    font-size: 16px;
  }

  .buy-hint {
    min-height: 0;
    margin-top: 8px;
    font-size: 12px;
  }

  .visual-stage {
    min-height: 0;
    height: clamp(360px, 52svh, 460px);
  }

  .before-card {
    left: 0;
    animation-name: beforeCompareMobile;
  }

  .after-card {
    left: auto;
    width: 220px;
    animation-name: afterCompareMobile;
  }

  .orbit-a {
    width: 340px;
    height: 340px;
  }

  .orbit-b {
    width: 260px;
    height: 260px;
  }

  .glass-card {
    padding: 9px;
    border-radius: 20px;
  }

  .glass-card > span {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .poster {
    border-radius: 16px;
    min-height: 174px;
  }

  .poster-before {
    min-height: 184px;
  }

  .poster-after {
    min-height: 220px;
  }

  .floating-chip {
    padding: 7px 10px;
    font-size: 12px;
  }

  .chip-one { left: 0; top: 54%; }
  .chip-two { right: 0; top: 5%; }
  .chip-three { left: 34%; top: 0; }
}

@keyframes beforeCompareMobile {
  0%,
  38% {
    z-index: 2;
    left: 20px;
    top: 8%;
    width: 164px;
    opacity: .76;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
  50%,
  88% {
    z-index: 4;
    left: calc(100% - 244px);
    top: 16%;
    width: 220px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
  100% {
    z-index: 2;
    left: 20px;
    top: 8%;
    width: 164px;
    opacity: .76;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
}

@keyframes afterCompareMobile {
  0%,
  38% {
    z-index: 4;
    left: calc(100% - 244px);
    top: 16%;
    width: 220px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
  50%,
  88% {
    z-index: 2;
    left: 20px;
    top: 8%;
    width: 164px;
    opacity: .76;
    filter: saturate(.82) brightness(.95);
    transform: rotate(-8deg) translateY(0) scale(.98);
  }
  100% {
    z-index: 4;
    left: calc(100% - 244px);
    top: 16%;
    width: 220px;
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: rotate(6deg) translateY(-8px) scale(1);
  }
}
