:root {
  color-scheme: dark;
  --bg: #090812;
  --panel: rgba(25, 24, 42, 0.78);
  --panel-solid: #171625;
  --text: #f6f5ff;
  --muted: #aaa8bf;
  --cyan: #57fff2;
  --cyan-dark: #20b9cc;
  --purple: #a168ff;
  --yellow: #ffd94a;
  --border: rgba(147, 145, 186, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }

.aurora { position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); opacity: .16; pointer-events: none; }
.aurora-one { width: 620px; height: 620px; background: var(--purple); right: -280px; top: 120px; }
.aurora-two { width: 520px; height: 520px; background: var(--cyan-dark); left: -260px; top: 760px; }

.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(10, 9, 19, .78);
  box-shadow: 0 16px 50px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
nav { display: flex; gap: 30px; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 700; }
nav a:hover { color: var(--cyan); }
.mini-download { padding: 10px 16px; background: var(--text); color: #11101a; border-radius: 11px; text-decoration: none; font-weight: 850; font-size: .86rem; }

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px; padding: 90px 20px 70px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 900; }
.eyebrow span { display: inline-block; width: 26px; height: 2px; margin: 0 9px 3px 0; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.02; letter-spacing: -.045em; }
h1 { margin-bottom: 26px; font-size: clamp(3.8rem, 7.1vw, 7rem); max-width: 790px; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(105deg, var(--cyan), #7acbff 48%, var(--purple)); -webkit-background-clip: text; background-clip: text; }
.hero-description { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin: 34px 0 28px; flex-wrap: wrap; }
.download-stack { align-items: stretch; }
.primary-button { display: inline-flex; align-items: center; gap: 14px; min-width: 290px; padding: 15px 22px; border-radius: 15px; color: #071313; background: linear-gradient(120deg, var(--cyan), #8fe8ff); text-decoration: none; box-shadow: 0 12px 38px rgba(87,255,242,.18); transition: transform .2s ease, box-shadow .2s ease; }
.rune-button { color: white; background: linear-gradient(120deg, #6d42e8, var(--purple)); box-shadow: 0 12px 38px rgba(161,104,255,.2); }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(87,255,242,.28); }
.primary-button strong, .primary-button small { display: block; }
.primary-button strong { font-size: .98rem; }
.primary-button small { opacity: .7; font-weight: 700; }
.download-icon { font-size: 1.8rem; line-height: 1; font-weight: 900; }
.secondary-button { padding: 14px 20px; color: var(--text); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; font-weight: 800; }
.requirements { display: flex; flex-wrap: wrap; gap: 8px; }
.requirements span { padding: 6px 10px; color: #c9c7dc; background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: 8px; font-size: .75rem; font-weight: 700; }

.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art img { width: 72%; border-radius: 25%; filter: drop-shadow(0 0 42px rgba(87,255,242,.18)); animation: hover 5s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(87,255,242,.28); border-radius: 50%; }
.orbit-outer { inset: 4%; animation: spin 22s linear infinite; }
.orbit-outer::before, .orbit-outer::after { content: ""; position: absolute; width: 11px; height: 11px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 22px var(--cyan); }
.orbit-outer::before { top: 13%; left: 13%; }
.orbit-outer::after { bottom: 13%; right: 13%; }
.orbit-inner { inset: 15%; border-color: rgba(161,104,255,.4); animation: spin 15s linear reverse infinite; }
.spark { position: absolute; width: 7px; height: 7px; transform: rotate(45deg); background: var(--yellow); box-shadow: 0 0 22px var(--yellow); }
.spark-one { top: 16%; right: 18%; }.spark-two { bottom: 22%; left: 8%; }.spark-three { top: 48%; right: 3%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 50% { transform: translateY(-12px) rotate(1deg); } }

.ticker { margin: 0 -50vw; padding: 16px 50vw; display: flex; align-items: center; justify-content: center; gap: 24px; white-space: nowrap; overflow: hidden; color: #d9d7e8; border-block: 1px solid var(--border); background: rgba(255,255,255,.025); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.ticker span { color: var(--purple); }

.rune-split { margin: 100px 0 0; padding: 58px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; border: 1px solid var(--border); border-radius: 30px; background: radial-gradient(circle at 90% 50%, rgba(161,104,255,.17), transparent 35%), var(--panel); }
.rune-split h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.split-cards { display: grid; gap: 14px; }
.split-cards article { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(9,8,18,.72); }
.split-cards article.rune-card { border-color: rgba(161,104,255,.55); }
.split-cards b { color: var(--cyan); font-size: 1.15rem; }
.split-cards .rune-card b { color: #c6a7ff; }
.split-cards p { margin: 8px 0 0; color: var(--muted); }

.section { padding: 130px 0; }
.section-heading { max-width: 830px; margin-bottom: 58px; }
h2 { margin-bottom: 22px; font-size: clamp(2.6rem, 5vw, 5rem); }
.gadget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gadget-card { min-height: 300px; padding: 34px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 28px; background: linear-gradient(140deg, rgba(30,29,49,.92), rgba(17,16,28,.92)); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.gadget-card:hover { transform: translateY(-5px); border-color: rgba(87,255,242,.42); }
.featured-card { grid-column: span 2; grid-template-columns: 180px 1fr; min-height: 330px; background: radial-gradient(circle at 10% 50%, rgba(87,255,242,.13), transparent 34%), linear-gradient(140deg, rgba(30,29,49,.96), rgba(17,16,28,.92)); }
.gadget-icon { aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; background: #11101a; border: 1px solid var(--border); }
.gadget-icon img { width: 72%; image-rendering: pixelated; }
.card-number { margin: 0 0 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 900; }
.gadget-card h3 { margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 3rem); }
.gadget-card p:last-child { margin: 0; color: var(--muted); }
.mine-tears-card { background: radial-gradient(circle at 10% 50%, rgba(161,104,255,.18), transparent 34%), linear-gradient(140deg, rgba(30,29,49,.96), rgba(17,16,28,.92)); }

.world-section { padding: 110px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; border: 1px solid var(--border); border-radius: 34px; background: linear-gradient(145deg, rgba(21,31,48,.95), rgba(19,16,36,.95)); overflow: hidden; }
.world-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.world-copy ul { padding: 0; margin: 28px 0 0; list-style: none; }
.world-copy li { padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.world-copy b { color: var(--text); }
.world-visual { min-height: 500px; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(87,255,242,.11), transparent 65%); }
.world-visual img { position: absolute; image-rendering: pixelated; z-index: 3; }
.slate { width: 170px; left: 8%; top: 14%; transform: rotate(-8deg); filter: drop-shadow(0 18px 30px #000); }
.tower { height: 370px; right: 8%; bottom: 3%; filter: drop-shadow(0 18px 30px #000); }
.map-grid { position: absolute; inset: 10%; opacity: .25; background-image: linear-gradient(rgba(87,255,242,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(87,255,242,.28) 1px, transparent 1px); background-size: 38px 38px; transform: perspective(400px) rotateX(62deg) rotateZ(-18deg); }
.scan-line { position: absolute; z-index: 2; left: 20%; right: 22%; height: 2px; background: var(--cyan); box-shadow: 0 0 25px var(--cyan); animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 24%; opacity: .2; } 50% { top: 76%; opacity: 1; } }

.recipe-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.recipe-heading > p { max-width: 380px; color: var(--muted); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe-page { padding: 0; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--panel-solid); cursor: zoom-in; }
.recipe-page img { width: 100%; height: 240px; display: block; object-fit: cover; transition: transform .35s ease; }
.recipe-page:hover img { transform: scale(1.04); }
.recipe-page span { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; color: white; background: rgba(9,8,18,.84); font-weight: 850; font-size: .78rem; backdrop-filter: blur(8px); }

.install-section { padding: 100px 80px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; border-radius: 32px; background: #f2efff; color: #171423; }
.install-intro > p:not(.eyebrow) { color: #625d73; }
.primary-button.compact { min-width: 250px; margin-top: 18px; background: #171423; color: white; box-shadow: none; }
.install-steps { padding: 0; margin: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #d6d1e3; }
.install-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #071313; background: var(--cyan); font-weight: 950; }
.install-steps h3 { margin: 0 0 5px; font-size: 1.2rem; }
.install-steps p { margin: 0; color: #625d73; }

.final-cta { margin: 110px 0; padding: 58px; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(circle at 12% 50%, rgba(87,255,242,.14), transparent 30%), var(--panel); }
.final-cta img { border-radius: 20px; }
.final-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.final-cta .eyebrow { margin-bottom: 12px; }

footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 45px; display: flex; justify-content: space-between; gap: 20px; color: #77758a; border-top: 1px solid var(--border); font-size: .75rem; }

dialog { width: min(1300px, calc(100% - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: #11101a; box-shadow: 0 30px 100px #000; }
dialog::backdrop { background: rgba(3,2,8,.88); backdrop-filter: blur(8px); }
dialog img { width: 100%; display: block; border-radius: 18px; }
.dialog-close { position: fixed; top: 20px; right: 22px; z-index: 5; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: #151322; color: white; font-size: 1.8rem; cursor: pointer; }

@media (max-width: 920px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-art { width: min(520px, 100%); margin: 0 auto; }
  .gadget-grid, .world-section, .install-section, .rune-split { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .world-section, .install-section, .rune-split { padding: 65px 36px; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-heading { display: block; }
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta .primary-button { grid-column: span 2; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 20px); }
  .brand span { display: none; }
  .mini-download { font-size: .75rem; }
  main { width: min(100% - 24px, 1180px); }
  .hero { min-height: 0; padding: 80px 6px 50px; }
  h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .primary-button { min-width: 100%; }
  .ticker { justify-content: flex-start; }
  .section { padding: 90px 0; }
  .gadget-grid, .recipe-grid { grid-template-columns: 1fr; }
  .gadget-card, .featured-card { grid-template-columns: 86px 1fr; padding: 22px; min-height: 230px; }
  .gadget-card h3 { font-size: 1.5rem; }
  .world-section, .install-section, .rune-split { padding: 50px 22px; gap: 45px; }
  .world-visual { min-height: 380px; }
  .tower { height: 290px; }
  .slate { width: 120px; }
  .recipe-page img { height: 220px; }
  .final-cta { padding: 34px 24px; grid-template-columns: 1fr; text-align: center; }
  .final-cta img { margin: 0 auto; }
  .final-cta .primary-button { grid-column: auto; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
