
:root {
  --accent: #7257ff;
  --accent-glow: rgba(114, 87, 255, .25);
  --background: #09090d;
  --surface: rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09);
  --text: #f5f5fa;
  --muted: #9999a9;
  --wallpaper: radial-gradient(ellipse at 50% 0%, #20153f, #09090d 65%);
  --font: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 30px 20px;
  color: var(--text);
  background: var(--wallpaper);
  background-color: var(--background);
  font-family: var(--font);
  transition: background .35s, color .35s;
}

body.light-mode {
  --background: #f3f4fa;
  --surface: rgba(0,0,0,.035);
  --surface-hover: rgba(0,0,0,.07);
  --border: rgba(0,0,0,.1);
  --text: #171725;
  --muted: #666678;
}

button, input, select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.ambient {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .14;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  background: var(--accent);
  top: -150px;
  left: -100px;
}

.ambient-two {
  background: #2589ff;
  bottom: -180px;
  right: -100px;
}

.setup-container {
  width: min(760px, 100%);
  margin: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
}

.brand-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}

.brand-highlight,
.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, var(--accent), #a78bfa, #53b7ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.version, .eyebrow, .footer {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.progress-track {
  height: 3px;
  border-radius: 10px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 55px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  transition: width .4s ease;
}

.setup-screen {
  display: none;
  animation: screenIn .4s ease both;
}

.setup-screen.active {
  display: block;
}

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

h1 {
  font-size: clamp(43px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -3px;
  margin: 20px 0;
}

h2 {
  font-size: clamp(35px, 6vw, 49px);
  letter-spacing: -2px;
  margin: 15px 0;
}

h3 {
  font-size: 15px;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 500px;
}

.eyebrow {
  color: var(--accent);
  margin-bottom: 14px;
}

.status-dot {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #48d8a0;
  margin-right: 7px;
}

.welcome-content {
  text-align: center;
}

.welcome-content .subtitle,
.complete-content .subtitle {
  margin: auto;
}

.welcome-preview {
  max-width: 500px;
  margin: 40px auto;
  perspective: 900px;
}

.preview-window {
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  background: #101017;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  transform: rotateX(5deg);
}

.preview-top {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #191923;
  color: #aaa;
  font-size: 10px;
}

.preview-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777;
}

.preview-top > div {
  margin-left: 12px;
}

.preview-content {
  display: flex;
  min-height: 150px;
}

.preview-sidebar {
  width: 65px;
  background: #14141e;
  padding: 20px 15px;
}

.preview-sidebar div {
  height: 12px;
  margin-bottom: 15px;
  border-radius: 4px;
  background: #333342;
}

.preview-sidebar .preview-active {
  background: var(--accent);
}

.preview-main {
  flex: 1;
  padding: 25px;
}

.preview-heading {
  width: 45%;
  height: 12px;
  border-radius: 5px;
  background: #55556a;
  margin-bottom: 22px;
}

.preview-cards {
  display: flex;
  gap: 12px;
}

.preview-cards div {
  flex: 1;
  height: 65px;
  border-radius: 8px;
  background: linear-gradient(135deg, #29213f, #171725);
  border: 1px solid #38304e;
}

.primary-btn, .secondary-btn {
  border: 0;
  padding: 14px 23px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}

.primary-btn {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 25px var(--accent-glow);
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.primary-btn span {
  margin-left: 15px;
}

.secondary-btn {
  background: var(--surface);
  border: 1px solid var(--border);
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  gap: 15px;
}

.os-grid, .mode-grid, .wallpaper-grid,
.preset-grid, .app-grid {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}

.os-grid {
  grid-template-columns: repeat(3, 1fr);
}

.os-card, .mode-card, .preset-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 15px;
  padding: 20px;
  transition: .2s;
}

.os-card:hover, .mode-card:hover,
.preset-card:hover, .wallpaper:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.os-card.selected, .mode-card.selected,
.wallpaper.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.os-symbol {
  font-size: 34px;
  height: 65px;
  display: flex;
  align-items: center;
}

.chrome-symbol { color: #52a5ff; }
.windows-symbol { color: #398dff; }
.mac-symbol { color: var(--text); }

.os-card h3 { margin: 5px 0; }

.os-card p {
  color: var(--muted);
  font-size: 11px;
}

.selection-mark {
  display: none;
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--accent);
}

.os-card.selected .selection-mark {
  display: block;
}

.setting-group {
  margin-top: 30px;
}

.setting-group h3 {
  margin-bottom: 15px;
}

.mode-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mode-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.mode-preview {
  height: 75px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.dark-preview {
  background: linear-gradient(135deg, #171727, #09090d);
}

.light-preview {
  background: linear-gradient(135deg, #fff, #dce0f0);
}

.color-row {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.color-swatch, .custom-color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--swatch);
  display: grid;
  place-items: center;
}

.color-swatch.selected {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.custom-color {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 22px;
}

.custom-color input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.wallpaper-grid {
  grid-template-columns: repeat(4, 1fr);
}

.wallpaper {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  font-size: 11px;
  overflow: hidden;
}

.wallpaper-art {
  height: 75px;
  border-radius: 7px;
  margin-bottom: 7px;
}

.nebula {
  background: radial-gradient(at 30% 30%, #9b56ff, #261442, #080811);
}

.midnight {
  background: linear-gradient(135deg, #05070f, #152a50, #08090f);
}

.aurora {
  background: radial-gradient(at 70% 20%, #28c9a0, #123c55, #08090f);
}

.sunset {
  background: linear-gradient(140deg, #ff9a70, #8549b8, #19152e);
}

.upload-button {
  display: block;
  padding: 14px;
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}

.upload-button input {
  display: none;
}

.helper-text {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}

.preset-grid {
  grid-template-columns: repeat(2, 1fr);
}

.preset-card {
  display: grid;
  gap: 7px;
}

.preset-icon {
  font-size: 25px;
  color: var(--accent);
}

.preset-card small {
  color: var(--muted);
  font-size: 10px;
}

.styled-select, .form-group input {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}

.styled-select option {
  background: #171720;
  color: white;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  border-radius: 25px;
  margin: 35px auto;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  box-shadow: 0 10px 40px var(--accent-glow);
}

.form-group {
  margin-top: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--muted);
}

.input-prefix input {
  padding-left: 32px;
}

.security-note {
  display: flex;
  gap: 13px;
  padding: 17px;
  margin-top: 25px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  font-size: 12px;
}

.security-note > span {
  color: var(--accent);
}

.security-note p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.error-message {
  color: #ff7185;
  font-size: 12px;
}

.complete-content {
  text-align: center;
}

.complete-icon {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 34px;
  margin: 20px auto;
  box-shadow: 0 0 50px var(--accent-glow);
}

.desktop-preview {
  margin: 35px auto;
  max-width: 450px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #10101b;
  text-align: left;
}

.desktop-preview-top {
  display: flex;
  justify-content: space-between;
  padding: 13px;
  color: white;
  background: #191925;
  font-size: 11px;
}

.desktop-preview-body {
  min-height: 125px;
  padding: 20px;
  background: var(--wallpaper);
}

.desktop-preview-icons {
  display: flex;
  gap: 20px;
  font-size: 22px;
}

.desktop-preview-welcome {
  text-align: center;
  margin-top: 25px;
  color: white;
  font-size: 15px;
}

.desktop-preview-dock {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 12px;
  background: #191925;
  color: white;
}

.app-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 35px;
}

.app-card {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.app-card > span {
  font-size: 27px;
}

.app-card strong {
  font-size: 13px;
}

.app-card small {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 75px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 9px;
}

@media (max-width: 550px) {
  body { padding: 20px 15px; }
  .progress-track { margin-bottom: 40px; }
  .os-grid { grid-template-columns: 1fr; }
  .os-card {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .os-symbol { height: auto; }
  .os-card p { margin-left: auto; }
  .wallpaper-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; }
}
