:root {
  --bg-main: #cec2e7;
  --bg-soft: #d9d0ec;
  --panel-fill: rgba(255, 255, 255, 0.24);
  --panel-strong: rgba(255, 255, 255, 0.34);
  --panel-border: rgba(255, 255, 255, 0.42);
  --text-dark: #2a2448;
  --text-muted: #5e5b7d;
  --navy: #2f2e64;
  --navy-soft: #5757a0;
  --pink: #ff38a7;
  --purple: #7e31ff;
  --teal: #3dd7cf;
  --orange: #ff8414;
  --yellow: #f5e71b;
  --shadow-lg: 0 34px 70px rgba(69, 42, 112, 0.24);
  --shadow-md: 0 18px 40px rgba(72, 53, 119, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at 12% 72%, rgba(255, 80, 177, 0.45), transparent 19%),
    radial-gradient(circle at 81% 18%, rgba(126, 49, 255, 0.26), transparent 19%),
    linear-gradient(135deg, #d8d0eb 0%, #c8b9e2 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: 20px 24px;
  overflow: hidden;
}

.bg-blob,
.bg-arc,
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}

.bg-blob {
  opacity: 0.95;
  animation: floatBlob 8s ease-in-out infinite;
}

.blob-left {
  width: 220px;
  height: 220px;
  left: -28px;
  bottom: 110px;
  background: radial-gradient(circle at 30% 30%, #ff4bb6, #ff005c 70%);
}

.blob-top {
  width: 176px;
  height: 176px;
  top: 38px;
  right: 170px;
  background: radial-gradient(circle at 35% 35%, #c238ff, #5a1fdc 70%);
  animation-delay: -2s;
}

.blob-right {
  width: 180px;
  height: 180px;
  top: 150px;
  right: 74px;
  background: radial-gradient(circle at 35% 35%, #49f6e8, #16bfab 75%);
  animation-delay: -1s;
}

.blob-bottom {
  width: 310px;
  height: 310px;
  right: 58px;
  bottom: 20px;
  background: radial-gradient(circle at 35% 35%, #ff9f2c, #ff7b00 63%, #fff621 100%);
  animation-delay: -4s;
}

.bg-arc {
  width: 610px;
  height: 610px;
  right: 175px;
  top: -85px;
  border: 72px solid rgba(255, 255, 255, 0.2);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(24deg);
}

.hero-window {
  position: relative;
  z-index: 2;
  width: min(100%, 1260px);
  margin: 80px auto 10px;
  padding-left: 88px;
}

.side-rail {
  position: absolute;
  left: 0;
  top: 78px;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 170, 212, 0.42));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.rail-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: #b3a9c9;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rail-btn svg {
  width: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn.active,
.rail-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 194, 230, 0.95));
  color: white;
  box-shadow: 0 10px 18px rgba(255, 74, 174, 0.35);
}

.rail-btn.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 84, 186, 0.36), transparent 60%);
  z-index: -1;
}

.glass-card {
  position: relative;
  min-height: 610px;
  padding: 18px 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.13)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.glass-card::before,
.glass-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glass-card::before {
  width: 310px;
  height: 310px;
  left: -80px;
  bottom: -84px;
  background: radial-gradient(circle, rgba(255, 74, 174, 0.92), rgba(255, 74, 174, 0));
  filter: blur(24px);
}

.glass-card::after {
  width: 260px;
  height: 260px;
  right: 140px;
  bottom: 18px;
  background: radial-gradient(circle, rgba(255, 195, 34, 0.85), rgba(255, 195, 34, 0));
  filter: blur(30px);
}

.primary-btn {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.animated-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.38) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  z-index: -1;
}

.animated-btn:hover::before {
  transform: translateX(120%);
}

.animated-btn:hover {
  transform: translateY(-2px);
}

.animated-btn:active {
  transform: translateY(1px) scale(0.99);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
  align-items: center;
}

.content {
  padding: 6px 8px 0 90px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(58, 53, 94, 0.78);
}

.content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #2e2850;
}

.lead {
  max-width: 470px;
  margin: 22px 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  font-size: 0.83rem;
  font-weight: 700;
  color: #5b5681;
}

.signup-form {
  max-width: 430px;
}

.field-wrap {
  display: block;
  margin-bottom: 14px;
}

.field-wrap input {
  width: 100%;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(130, 116, 178, 0.05);
  outline: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.field-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(147, 100, 245, 0.16);
  transform: translateY(-1px);
}

.primary-btn {
  width: 100%;
  padding: 14px 22px;
  color: white;
  background: linear-gradient(180deg, #34306b, #282557);
  box-shadow: 0 18px 26px rgba(45, 40, 88, 0.24);
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(69, 63, 108, 0.82);
  user-select: none;
}

.remember input {
  width: 15px;
  height: 15px;
  accent-color: #f77ac6;
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #504b7c;
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-row a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(77, 68, 123, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-row a:nth-child(1) { color: #2761df; }
.social-row a:nth-child(2) { color: #ff4aa7; }
.social-row a:nth-child(3) { color: #48a5ff; }
.social-row a:nth-child(4) { color: #2f9de0; }

.social-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(77, 68, 123, 0.2);
}

.social-row svg {
  width: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin-top: 28px;
}

.metric-strip article {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.metric-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
  color: #2f2855;
}

.metric-strip span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(72, 66, 111, 0.78);
}

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

.speech-card {
  position: absolute;
  left: 18px;
  top: 186px;
  width: 330px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  z-index: 4;
}

.speech-card::after {
  content: "";
  position: absolute;
  left: 44px;
  bottom: -14px;
  width: 24px;
  height: 24px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 0 0 8px 0;
}

.speech-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.speech-card span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(72, 66, 111, 0.84);
}

.floating-card {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  animation: floatCard 6s ease-in-out infinite;
}

.cloud-card {
  top: 135px;
  left: 250px;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(70, 184, 255, 0.95), rgba(111, 88, 249, 0.92));
}

.cloud-shape {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb149, #ffe08b);
}

.cloud-shape::before,
.cloud-shape::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-shape::before {
  width: 22px;
  height: 22px;
  left: -8px;
  top: -8px;
}

.cloud-shape::after {
  width: 22px;
  height: 22px;
  right: -5px;
  top: -10px;
  background: linear-gradient(135deg, #ffaedf, #f7f1ff);
}

.media-card {
  top: 138px;
  right: 118px;
  width: 118px;
  height: 88px;
  padding: 12px;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  animation-delay: -1.6s;
}

.media-thumb {
  width: 42px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #d6d3ed);
  position: relative;
}

.image-thumb::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 10px;
  width: 24px;
  height: 14px;
  background: linear-gradient(135deg, #5966cb, #2c2a58);
  clip-path: polygon(0 100%, 38% 42%, 58% 70%, 100% 10%, 100% 100%);
}

.play-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 12px solid #45407e;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.analytics-card {
  right: 56px;
  top: 236px;
  width: 102px;
  height: 72px;
  gap: 8px;
  padding: 18px;
  animation-delay: -2.2s;
}

.analytics-card .line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  display: block;
  background: linear-gradient(90deg, #f463c5, #5f5be3);
}

.analytics-card .two {
  width: 82%;
  background: linear-gradient(90deg, #4ec7ff, #7e31ff);
}

.analytics-card .three {
  width: 66%;
  background: linear-gradient(90deg, #ffb63e, #ff6d4d);
}

.palette-card {
  right: 44px;
  bottom: 68px;
  width: 138px;
  height: 74px;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  animation-delay: -3s;
}

.palette-dots {
  display: flex;
  gap: 8px;
}

.palette-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.palette-dots span:nth-child(1) { background: #5966cb; }
.palette-dots span:nth-child(2) { background: #ff5d8f; }
.palette-dots span:nth-child(3) { background: #49baf8; }
.palette-dots span:nth-child(4) { background: #f5cc34; }

.brush {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #453e80, #c56ef6);
  transform: rotate(-28deg);
}

.plus {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: #6f6ae7;
  border-radius: 999px;
}

.plus::before {
  inset: 0 7px;
}

.plus::after {
  inset: 7px 0;
}

.plus-a {
  top: 206px;
  right: 242px;
}

.plus-b {
  top: 316px;
  left: 310px;
}

.plus-c {
  right: 146px;
  bottom: 110px;
}

.hero-glow {
  width: 250px;
  height: 250px;
  right: 110px;
  bottom: 72px;
  background: radial-gradient(circle, rgba(255, 178, 55, 0.95), rgba(255, 178, 55, 0));
  filter: blur(24px);
  z-index: 1;
}

.character {
  position: absolute;
  right: 82px;
  bottom: 0;
  width: 290px;
  height: 380px;
  z-index: 3;
  animation: avatarRise 5.2s ease-in-out infinite;
}

.head {
  position: absolute;
  top: 58px;
  left: 116px;
  width: 64px;
  height: 88px;
  border-radius: 38px 38px 28px 28px;
  background: linear-gradient(180deg, #f4c69a, #de9d68);
  box-shadow: inset -8px -10px 12px rgba(163, 95, 45, 0.16);
}

.visor {
  position: absolute;
  top: 18px;
  left: -14px;
  width: 92px;
  height: 42px;
  border-radius: 22px;
  background: linear-gradient(180deg, #6885ff, #3558ff);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.65), 0 10px 20px rgba(54, 81, 209, 0.26);
}

.visor::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 16px;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.neck {
  position: absolute;
  top: 136px;
  left: 136px;
  width: 24px;
  height: 28px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #d28a5b, #b96d3d);
}

.body {
  position: absolute;
  left: 72px;
  top: 154px;
  width: 156px;
  height: 188px;
  border-radius: 72px 72px 44px 44px;
  background: linear-gradient(180deg, #5962ff, #2b24c4 84%);
  box-shadow: inset -20px -26px 28px rgba(38, 24, 158, 0.34);
}

.body::before,
.body::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 36px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3e39de, #221fb5);
}

.body::before {
  left: 28px;
}

.body::after {
  right: 28px;
}

.arm,
.forearm {
  position: absolute;
  background: linear-gradient(180deg, #4e53f6, #2721c2);
  border-radius: 999px;
}

.arm-left {
  width: 38px;
  height: 116px;
  left: 34px;
  top: 174px;
  transform: rotate(28deg);
}

.arm-right {
  width: 38px;
  height: 116px;
  right: 26px;
  top: 178px;
  transform: rotate(-29deg);
}

.forearm-left {
  width: 34px;
  height: 108px;
  left: 16px;
  top: 240px;
  transform: rotate(-26deg);
}

.forearm-right {
  width: 34px;
  height: 108px;
  right: 10px;
  top: 244px;
  transform: rotate(26deg);
}

.hand {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4c69a, #ce8a58);
}

.hand-left {
  left: 8px;
  top: 328px;
}

.hand-right {
  right: 4px;
  top: 332px;
}

.mic {
  position: absolute;
  width: 22px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ff8f9d, #9e5fff);
}

.mic::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff86a2, #ffb562);
}

.mic-left {
  left: -2px;
  top: 286px;
  transform: rotate(16deg);
}

.mic-right {
  right: -2px;
  top: 290px;
  transform: rotate(-16deg);
  background: linear-gradient(180deg, #5caeff, #31d6d8);
}

.mic-right::before {
  background: linear-gradient(180deg, #53b6ff, #f8b64a);
}

.animated-btn .ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10);
  }
}

@keyframes floatBlob {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.02);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes avatarRise {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .hero-window {
    padding-left: 0;
    margin-top: 92px;
  }

  .side-rail {
    position: static;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 12px;
    margin-bottom: 16px;
  }

  .glass-card {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 12px 8px 0;
  }

  .visual {
    min-height: 480px;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  .scene {
    padding: 16px;
  }

  .glass-card {
    padding: 18px 16px 20px;
    border-radius: 22px;
  }

  .content h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 430px;
  }

  .speech-card {
    position: relative;
    left: 0;
    top: 0;
    width: min(100%, 320px);
    margin-bottom: 10px;
  }

  .cloud-card {
    top: 90px;
    left: 20px;
  }

  .media-card {
    top: 82px;
    right: 10px;
  }

  .analytics-card {
    right: 10px;
    top: 184px;
  }

  .palette-card {
    right: 20px;
    bottom: 40px;
  }

  .plus-a {
    right: 170px;
    top: 150px;
  }

  .plus-b {
    left: 74px;
    top: 288px;
  }

  .plus-c {
    right: 156px;
    bottom: 106px;
  }

  .character {
    left: 50%;
    right: auto;
    margin-left: -120px;
    width: 240px;
    height: 335px;
  }

  .head {
    left: 95px;
    top: 54px;
    width: 56px;
    height: 78px;
  }

  .visor {
    width: 82px;
    height: 38px;
  }

  .neck {
    left: 113px;
    top: 126px;
  }

  .body {
    left: 54px;
    top: 144px;
    width: 132px;
    height: 164px;
  }

  .arm-left {
    left: 20px;
    top: 162px;
  }

  .arm-right {
    right: 14px;
    top: 164px;
  }

  .forearm-left {
    left: 8px;
    top: 220px;
  }

  .forearm-right {
    right: 0;
    top: 224px;
  }

  .hand-left {
    left: 2px;
    top: 304px;
  }

  .hand-right {
    right: 0;
    top: 306px;
  }

  .mic-left {
    top: 264px;
  }

  .mic-right {
    top: 266px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
