:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff7f5;
  --muted: rgba(255, 247, 245, 0.64);
  --dim: rgba(255, 247, 245, 0.42);
  --red: #ff4d45;
  --red-strong: #ff2d25;
  --orange: #ff8b54;
  --shadow: rgba(0, 0, 0, 0.52);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 65, 56, 0.34), transparent 34rem),
    radial-gradient(circle at 18% 18%, rgba(255, 139, 84, 0.16), transparent 30rem),
    linear-gradient(180deg, #120607 0%, #060506 34%, #020203 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
}

.site-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}

.site-glow--left {
  left: -16rem;
  top: 16rem;
  background: #ff2d25;
}

.site-glow--right {
  right: -18rem;
  top: 42rem;
  background: #ff8b54;
}

.home-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  width: min(1204px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(14, 14, 15, 0.74);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  animation: navDrop 520ms ease both;
}

.home-brand,
.home-nav nav,
.nav-actions,
.nav-download {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.home-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.home-nav nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  min-height: 40px;
  padding: 0;
}

.home-nav nav a {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 14px;
  font-weight: 760;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.home-nav nav a:hover {
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 16px;
  color: #1a1a1d;
  background: linear-gradient(180deg, #f4f4f5, #d7d7da);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.nav-download span {
  color: #121214;
  font-size: 12px;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 40px;
  padding: 0;
}

.nav-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.home-announcement {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  animation: heroRise 620ms 80ms ease both;
}

.home-announcement a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.home-announcement span {
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 77, 69, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.home-announcement b {
  color: #ffaaa4;
}

.hero-section {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(104px, 11vw, 154px) 0 82px;
  text-align: center;
  overflow: hidden;
  animation: heroRise 720ms 120ms ease both;
}

.hero-section > :not(.hero-keyboard) {
  position: relative;
  z-index: 2;
}

.hero-keyboard {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 28px;
  display: grid;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  gap: 10px;
  width: min(1320px, 118vw);
  transform: translateX(-50%) perspective(1150px) rotateX(22deg);
  transform-origin: center top;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 44%, transparent 78%);
  pointer-events: none;
}

.hero-keyboard::after {
  content: "";
  position: absolute;
  left: 32%;
  right: 18%;
  bottom: -8px;
  height: 116px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 85, 78, 0.52), transparent 68%);
  filter: blur(22px);
}

.hero-keyboard span {
  display: grid;
  place-items: center;
  min-height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 16px 30px rgba(0, 0, 0, 0.4);
  font-size: 28px;
  font-weight: 880;
}

.hero-keyboard span:nth-last-child(4),
.hero-keyboard .space {
  border-color: rgba(255, 92, 85, 0.32);
  color: rgba(255, 202, 198, 0.72);
  text-shadow: 0 0 26px rgba(255, 90, 82, 0.56);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 61, 54, 0.09));
}

.hero-keyboard .space {
  grid-column: span 4;
}

.hero-kicker {
  margin: 0 0 18px;
  color: #ffb3ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-section h1,
.final-section h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
}

.primary-action {
  background: linear-gradient(180deg, #ff6158, #e12a24);
  box-shadow: 0 22px 80px rgba(255, 45, 37, 0.32);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 13px;
  font-weight: 650;
}

.command-stage {
  position: relative;
  min-height: 520px;
  margin-top: 68px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.command-stage::before {
  content: "";
  position: absolute;
  inset: 40px 2% 0;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 50% 8%, rgba(255, 77, 69, 0.34), transparent 36rem);
  filter: blur(4px);
  opacity: 0.85;
}

.launcher-window {
  position: relative;
  z-index: 2;
  width: min(760px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(36, 31, 32, 0.92), rgba(10, 9, 10, 0.92));
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotateX(7deg);
  animation: launcherFloat 5.8s ease-in-out infinite;
}

.launcher-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 34%, rgba(255, 77, 69, 0.5) 48%, transparent 66%);
  opacity: 0.68;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 4.8s linear infinite;
}

.window-dots {
  display: flex;
  gap: 7px;
  padding: 4px 4px 12px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-dots i:first-child { background: #ff5f56; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #27c93f; }

.launcher-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
}

.launcher-search span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffb3ad;
}

.launcher-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 18px;
}

.launcher-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.launcher-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border-radius: 18px;
  padding: 10px 14px;
  color: var(--muted);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.launcher-item.is-active,
.launcher-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.launcher-item i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a61, #c51612);
  font-style: normal;
  font-weight: 900;
}

.launcher-item strong,
.launcher-item small {
  display: block;
}

.launcher-item strong {
  font-size: 15px;
}

.launcher-item small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
}

.launcher-item kbd {
  min-width: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 5px 8px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 12px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  background: rgba(20, 18, 18, 0.78);
  box-shadow: 0 28px 90px var(--shadow);
  backdrop-filter: blur(22px);
}

.floating-card span {
  color: #ffaaa4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  margin-top: 8px;
  font-size: 19px;
}

.floating-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.floating-card--one {
  left: 4%;
  top: 18%;
  animation: cardFloat 4.8s ease-in-out infinite;
}

.floating-card--two {
  right: 2%;
  bottom: 12%;
  animation: cardFloat 5.4s 300ms ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.hero-orbit--one {
  left: 15%;
  bottom: 10%;
  animation: orbitOne 7s ease-in-out infinite;
}

.hero-orbit--two {
  right: 18%;
  top: 8%;
  animation: orbitTwo 6.5s ease-in-out infinite;
}

.command-orbit {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: rgba(255, 218, 214, 0.78);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 900;
}

.command-orbit--top {
  top: 26px;
  left: 50%;
  animation: orbitTop 7.2s ease-in-out infinite;
}

.command-orbit--right {
  right: 7%;
  top: 42%;
  animation: orbitRight 6.8s ease-in-out infinite;
}

.command-orbit--bottom {
  left: 26%;
  bottom: 28px;
  animation: orbitBottom 7.6s ease-in-out infinite;
}

.keyboard-section,
.shortcut-section,
.ai-section,
.extension-section,
.automation-section,
.final-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.ai-section {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ai-section__copy h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.ai-section__copy p:not(.hero-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.ai-prompts button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.ai-prompts button.is-active {
  color: #fff;
  background: rgba(255, 77, 69, 0.26);
  box-shadow: 0 14px 38px rgba(255, 45, 37, 0.2);
}

.ai-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
}

.ai-stage__glow {
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 77, 69, 0.5), transparent 42%),
    radial-gradient(circle at 66% 68%, rgba(255, 139, 84, 0.2), transparent 38%);
  filter: blur(36px);
  opacity: 0.8;
}

.ai-window {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 31, 32, 0.94), rgba(8, 7, 8, 0.94));
  box-shadow: 0 56px 160px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: launcherFloat 6.4s ease-in-out infinite;
}

.ai-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), rgba(255, 77, 69, 0.52), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 5.6s linear infinite;
}

.ai-window__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: 12px;
}

.ai-command-list,
.ai-preview,
.ai-response {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-command-list {
  grid-row: span 2;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  max-height: 100%;
  overflow: auto;
}

.ai-command-list span,
.ai-response span,
.ai-preview__meta span {
  color: #ffb3ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-command-list button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.ai-command-list button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ai-preview {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.ai-preview__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 44% 38%, rgba(255, 77, 69, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
}

.ai-preview__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 520ms ease, transform 720ms ease;
}

.ai-preview__media img.is-active {
  opacity: 0.88;
  transform: scale(1);
}

.ai-preview__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
}

.ai-fallback-card {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  color: rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle at 50% 28%, rgba(255, 77, 69, 0.34), rgba(255, 255, 255, 0.08));
  font-size: 72px;
  font-weight: 900;
}

.ai-response strong,
.ai-response p,
.ai-response small {
  display: block;
}

.ai-response strong {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.ai-response p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-response small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.ai-response {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.ai-response__bars {
  display: grid;
  gap: 8px;
}

.ai-response__bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6158, rgba(255, 255, 255, 0.18));
  animation: aiBar 2.4s ease-in-out infinite;
}

.ai-response__bars i:nth-child(2) { width: 74%; animation-delay: 180ms; }
.ai-response__bars i:nth-child(3) { width: 52%; animation-delay: 360ms; }

.ai-dots {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
}

.ai-dots button {
  position: relative;
  width: 48px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  overflow: visible;
  background: rgba(255, 91, 91, 0.24);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, background 180ms ease;
}

.ai-dots button::before {
  content: "";
  position: absolute;
  inset: -10px -2px;
}

.ai-dots button span {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 122, 114, 0.88), rgba(255, 216, 206, 0.98));
  box-shadow: 0 0 13px rgba(255, 100, 94, 0.78);
  transform-origin: left center;
}

.ai-dots button span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 229, 223, 0.98);
  box-shadow: 0 0 18px rgba(255, 99, 92, 0.95), 0 0 32px rgba(255, 48, 42, 0.58);
  transform: translateY(-50%) scale(0);
  opacity: 0;
}

.ai-dots button.is-active {
  opacity: 1;
  background: rgba(255, 122, 114, 0.32);
}

.ai-dots button.is-active span {
  animation: raycastSlideProgress 4.2s linear both;
}

.ai-dots button.is-active span::after {
  animation: raycastSlideGlow 4.2s linear both;
}

.ai-dots.is-paused button.is-active span,
.ai-dots.is-paused button.is-active span::after {
  animation-play-state: paused;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shortcut-grid a {
  position: relative;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 95, 86, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.052);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.shortcut-grid a:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 95, 86, 0.42);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 95, 86, 0.3), transparent 34%),
    rgba(255, 255, 255, 0.076);
}

.shortcut-grid a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.shortcut-grid a:hover::after {
  transform: translateX(120%);
}

.shortcut-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 97, 88, 0.9), rgba(202, 28, 23, 0.9));
  box-shadow: 0 18px 42px rgba(255, 45, 37, 0.22);
  font-weight: 900;
}

.shortcut-grid strong,
.shortcut-grid small {
  display: block;
}

.shortcut-grid strong {
  margin-top: 26px;
  font-size: 21px;
}

.shortcut-grid small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 12px;
  color: #ffaaa4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.automation-panel h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  transform: perspective(1000px) rotateX(12deg);
  transform-origin: center top;
}

.keyboard-grid span {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 750;
}

.keyboard-grid span:nth-child(17),
.keyboard-grid span:nth-child(30),
.keyboard-grid span:nth-child(43) {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 84, 75, 0.82), rgba(167, 24, 20, 0.82));
  animation: keyGlow 2.8s ease-in-out infinite;
}

.keyboard-notes,
.extension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.keyboard-notes article,
.extension-grid a,
.automation-panel,
.automation-stack div {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.keyboard-notes article {
  padding: 22px;
}

.keyboard-notes strong,
.keyboard-notes span,
.extension-grid b,
.extension-grid span {
  display: block;
}

.keyboard-notes span,
.extension-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.extension-grid a {
  min-height: 164px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.extension-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 69, 0.44);
  background: rgba(255, 77, 69, 0.08);
}

.extension-grid b {
  font-size: 21px;
}

.extension-section {
  width: min(100%, 100vw);
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: 0;
  overflow: hidden;
}

.extension-section .section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(300px, 1fr);
  align-items: end;
  gap: 24px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 70px;
  text-align: left;
}

.extension-section .section-heading p {
  margin-bottom: 8px;
}

.extension-section .section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.025em;
}

.music-tabs {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 7px;
  background: rgba(18, 18, 20, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.music-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.music-tabs button.is-active {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.08);
}

.music-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  gap: 56px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 max(16px, calc((100vw - 1180px) / 2)) 12px 0;
  animation: cardRail 780ms 180ms ease both;
}

.music-card-row::-webkit-scrollbar {
  display: none;
}

.music-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 536px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, filter 220ms ease;
  scroll-snap-align: start;
}

.music-card:hover,
.music-card.is-focused {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.22);
  filter: saturate(1.08);
}

.music-card.is-focused {
  box-shadow: 0 34px 110px rgba(255, 45, 37, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.music-card::before {
  content: "";
  position: absolute;
  inset: 48% -12% -22%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 54%);
  filter: blur(10px);
}

.music-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 174px;
  height: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.music-card--green {
  background:
    radial-gradient(circle at 50% 88%, rgba(95, 255, 135, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(18, 88, 39, 0.95), rgba(14, 56, 29, 0.94));
}

.music-card--red {
  background:
    radial-gradient(circle at 50% 88%, rgba(255, 83, 74, 0.3), transparent 48%),
    linear-gradient(180deg, rgba(114, 20, 18, 0.96), rgba(42, 9, 10, 0.96));
}

.music-card--purple {
  background:
    radial-gradient(circle at 44% 72%, rgba(255, 68, 139, 0.34), transparent 44%),
    linear-gradient(180deg, rgba(30, 37, 112, 0.95), rgba(40, 22, 89, 0.94));
}

.music-card--teal {
  background:
    radial-gradient(circle at 60% 68%, rgba(45, 255, 215, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(8, 76, 72, 0.95), rgba(6, 48, 48, 0.95));
}

.music-card--blue {
  background:
    radial-gradient(circle at 45% 70%, rgba(33, 158, 255, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(7, 28, 51, 0.95), rgba(5, 14, 28, 0.95));
}

.music-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.16), 0 16px 42px rgba(0, 0, 0, 0.32);
  font-style: normal;
  font-weight: 900;
}

.music-card b,
.music-card em {
  position: relative;
  z-index: 1;
  display: block;
}

.music-card b {
  margin-top: -40px;
  padding-left: 64px;
  font-size: 18px;
  line-height: 1.2;
}

.music-card em {
  min-height: 74px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.55;
}

.album-art,
.wave-line,
.compress-ui,
.equalizer,
.playlist-mini,
.player-controls,
.release-card,
.gallery-stack,
.license-rings {
  position: relative;
  z-index: 1;
}

.release-card {
  display: grid;
  gap: 12px;
  width: 250px;
  margin: 92px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.release-card strong {
  color: #fff;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.release-card span,
.release-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-stack {
  width: 238px;
  height: 240px;
  margin: 68px auto 0;
}

.gallery-stack i {
  position: absolute;
  display: block;
  width: 176px;
  height: 214px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.76) 0 15px, transparent 16px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.gallery-stack i:nth-child(1) { left: 0; top: 22px; transform: rotate(-10deg); }
.gallery-stack i:nth-child(2) { left: 32px; top: 8px; transform: rotate(3deg); }
.gallery-stack i:nth-child(3) { left: 62px; top: 28px; transform: rotate(12deg); animation: cardFloat 4.4s ease-in-out infinite; }

.license-rings {
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 70px auto 0;
}

.license-rings i {
  position: absolute;
  border: 1px solid rgba(120, 190, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(56, 167, 255, 0.22), inset 0 0 24px rgba(56, 167, 255, 0.14);
  animation: ringPulse 3.4s ease-in-out infinite;
}

.license-rings i:nth-child(1) { width: 86px; height: 86px; }
.license-rings i:nth-child(2) { width: 148px; height: 148px; animation-delay: 180ms; }
.license-rings i:nth-child(3) { width: 214px; height: 214px; animation-delay: 360ms; }

.album-art {
  width: 210px;
  height: 210px;
  margin: 68px auto 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.88) 0 13%, rgba(255, 255, 255, 0.1) 14% 18%, transparent 19%),
    conic-gradient(from 120deg, #141414, #d9d9d9, #353535, #f0f0f0, #141414);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  transform: rotate(-3deg);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.player-controls i,
.player-controls strong {
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.92);
}

.player-controls strong {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.wave-line {
  height: 230px;
  margin-top: 56px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 40%, transparent 0 39px, #4635ff 41px 45px, transparent 47px),
    radial-gradient(circle at 54% 26%, transparent 0 66px, #ff4d74 68px 72px, transparent 74px),
    radial-gradient(circle at 78% 42%, transparent 0 46px, #ffb0b5 48px 52px, transparent 54px);
  filter: drop-shadow(0 0 16px rgba(255, 69, 116, 0.34));
}

.playlist-mini {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 208px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 0 0 0;
  padding: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(27, 9, 37, 0.76);
  backdrop-filter: blur(16px);
}

.playlist-mini span {
  display: block;
  margin-top: 12px;
}

.compress-ui {
  display: grid;
  gap: 16px;
  width: 260px;
  margin: 106px auto 0;
}

.compress-ui strong,
.compress-ui span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.compress-ui strong {
  width: 210px;
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 28px;
  font-weight: 500;
}

.compress-ui span {
  justify-self: end;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 760;
}

.equalizer {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  height: 220px;
  margin-top: 80px;
  border: 1px solid rgba(83, 178, 255, 0.42);
  border-radius: 18px;
  padding: 44px 28px;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 36px rgba(35, 143, 255, 0.14);
}

.equalizer i {
  width: 16px;
  border-radius: 999px;
  background: #38a7ff;
  box-shadow: 0 0 18px rgba(56, 167, 255, 0.76);
  animation: eqPulse 1.8s ease-in-out infinite;
}

.equalizer i:nth-child(1) { height: 56px; }
.equalizer i:nth-child(2) { height: 92px; animation-delay: 120ms; }
.equalizer i:nth-child(3) { height: 128px; animation-delay: 240ms; }
.equalizer i:nth-child(4) { height: 82px; animation-delay: 360ms; }
.equalizer i:nth-child(5) { height: 42px; animation-delay: 480ms; }

.automation-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: clamp(24px, 5vw, 54px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 77, 69, 0.28), transparent 30rem),
    rgba(255, 255, 255, 0.055);
}

.automation-panel p:not(.hero-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.automation-stack {
  display: grid;
  gap: 12px;
}

.automation-stack div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  padding: 18px;
}

.automation-stack span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff625a, #d8201b);
  font-weight: 900;
}

.automation-stack small {
  margin-top: 6px;
  color: var(--muted);
}

.final-section {
  padding-bottom: 74px;
  text-align: center;
}

.final-section .primary-action {
  margin-top: 30px;
}

.nsy-mark {
  position: relative;
  width: 100%;
  height: clamp(176px, 24vw, 330px);
  margin: -8px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.nsy-mark span {
  position: absolute;
  left: 50%;
  bottom: clamp(-86px, -5vw, -42px);
  transform: translateX(-50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
  text-stroke: 1px rgba(255, 255, 255, 0.32);
  font-size: clamp(220px, 36vw, 620px);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  opacity: 0.86;
  filter: drop-shadow(0 0 34px rgba(255, 77, 69, 0.12));
  user-select: none;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes launcherFloat {
  0%, 100% { transform: rotateX(7deg) translateY(0); }
  50% { transform: rotateX(7deg) translateY(-12px); }
}

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

@keyframes orbitOne {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(18px, -20px, 0) rotate(5deg); }
}

@keyframes orbitTwo {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg); }
  50% { transform: translate3d(-14px, 18px, 0) rotate(-4deg); }
}

@keyframes keyGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.24); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 44px rgba(255, 45, 37, 0.28); }
}

@keyframes cardRail {
  from { opacity: 0; transform: translateX(44px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

@keyframes borderSweep {
  0% { transform: translateX(-40%) rotate(0deg); opacity: 0.26; }
  50% { opacity: 0.75; }
  100% { transform: translateX(40%) rotate(360deg); opacity: 0.26; }
}

@keyframes orbitTop {
  0%, 100% { transform: translate3d(-50%, 0, 0) rotate(4deg); }
  50% { transform: translate3d(calc(-50% + 22px), -16px, 0) rotate(-6deg); }
}

@keyframes orbitRight {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(-18px, 18px, 0) rotate(7deg); }
}

@keyframes orbitBottom {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
  50% { transform: translate3d(18px, -14px, 0) rotate(-4deg); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.52; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes aiBar {
  0%, 100% { transform: scaleX(0.72); opacity: 0.58; transform-origin: left; }
  50% { transform: scaleX(1); opacity: 1; transform-origin: left; }
}

@keyframes raycastSlideProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes raycastSlideGlow {
  0% { opacity: 0; transform: translateY(-50%) scale(0.4); }
  8%, 92% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(0.4); }
}

@media (max-width: 860px) {
  .home-nav {
    grid-template-columns: 1fr auto;
    top: 10px;
    min-height: 62px;
    padding: 10px 14px;
  }

  .home-nav nav {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .hero-section {
    padding-top: 54px;
  }

  .hero-keyboard {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    top: 10px;
    opacity: 0.28;
  }

  .hero-keyboard span {
    min-height: 72px;
    font-size: 20px;
  }

  .command-stage {
    min-height: 430px;
  }

  .floating-card {
    display: none;
  }

  .hero-orbit,
  .command-orbit {
    display: none;
  }

  .keyboard-grid {
    gap: 5px;
  }

  .keyboard-grid span {
    min-height: 36px;
    border-radius: 8px;
    font-size: 11px;
  }

  .keyboard-notes,
  .extension-grid,
  .shortcut-grid,
  .ai-section,
  .automation-panel {
    grid-template-columns: 1fr;
  }

  .ai-stage {
    min-height: auto;
  }

  .ai-window__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ai-command-list {
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-command-list span {
    grid-column: 1 / -1;
  }

  .extension-section {
    padding-left: 16px;
  }

  .extension-section .section-heading {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .music-tabs {
    justify-self: start;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }

  .music-card-row {
    grid-auto-columns: minmax(286px, 78vw);
    gap: 16px;
    padding-right: 16px;
  }

  .music-card {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .home-brand {
    padding-right: 10px;
  }

  .nav-download {
    padding-inline: 14px;
  }

  .nav-actions {
    gap: 0;
  }

  .hero-section h1,
  .final-section h2 {
    font-size: 48px;
  }

  .launcher-window {
    border-radius: 22px;
    transform: none;
    animation: none;
  }

  .launcher-item {
    grid-template-columns: 38px 1fr;
  }

  .launcher-item kbd {
    display: none;
  }

  .keyboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    transform: none;
  }

  .music-tabs button {
    padding-inline: 14px;
  }

  .music-card b {
    font-size: 16px;
  }

  .music-card em {
    font-size: 15px;
  }

  .ai-section__copy h2 {
    font-size: 44px;
  }

  .ai-window {
    border-radius: 24px;
    padding: 10px;
  }

  .ai-preview {
    min-height: 360px;
  }

  .ai-response {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-nav,
  .home-announcement,
  .hero-section,
  .launcher-window,
  .floating-card,
  .hero-orbit,
  .music-card-row,
  .equalizer i,
  .command-orbit,
  .ai-window,
  .ai-window::before,
  .ai-response__bars i,
  .launcher-window::before,
  .ai-dots button.is-active span,
  .ai-dots button.is-active span::after,
  .gallery-stack i:nth-child(3),
  .license-rings i,
  .keyboard-grid span:nth-child(17),
  .keyboard-grid span:nth-child(30),
  .keyboard-grid span:nth-child(43) {
    animation: none;
  }
}
