
:root {
  color-scheme: dark;
  --bg: #171120;
  --panel: #251c32;
  --panel-soft: #30243f;
  --text: #fbf7ff;
  --muted: #cbbdd9;
  --purple: #bd9aff;
  --lavender: #e2caff;
  --line: #4b385d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 75% 5%, #4d2b6b66, transparent 42%),
    radial-gradient(ellipse at 5% 45%, #42275b44, transparent 35%),
    var(--bg);
  font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--purple); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

header, main, footer {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 150px;
  height: 65px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
  transition: color .2s ease;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--lavender);
}

main { padding-block: 45px 90px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }

h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  margin: 0 0 24px;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); margin: 0 0 18px; }
h3 { font-size: 1.25rem; margin: 0 0 12px; }

p, li { color: var(--muted); }

.lead { font-size: 1.15rem; }

strong { color: var(--text); }

.eyebrow, .tag {
  display: inline-block;
  color: var(--lavender);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(100deg, #fff0ff, #d4adff, #a994ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px 125px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: min(600px, 100%);
  height: 400px;
  background: radial-gradient(ellipse, #a76cf02b, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero-description {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0baff, #ae8bfa);
  color: #21142f;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #a67aff35;
}

.button-outline {
  background: #ffffff0b;
  border: 1px solid #aa8dcb;
  color: var(--text);
}

.hero-note {
  margin-top: 28px;
  font-size: .85rem;
  color: #b6a4c9;
}

.section { margin-block: 50px 100px; }

.section-heading {
  max-width: 690px;
  text-align: center;
  margin: 0 auto 38px;
}

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

.feature-card, .step-card, .card {
  background: linear-gradient(145deg, #30233f, #231b2f);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 27px;
  box-shadow: 0 12px 40px #08040e20;
}

.feature-card, .step-card {
  transition: transform .2s, border-color .2s;
}

.feature-card:hover, .step-card:hover {
  transform: translateY(-4px);
  border-color: #ad83d6;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #ad82e322;
  color: var(--lavender);
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.step-number {
  display: block;
  color: var(--lavender);
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.cta-panel {
  text-align: center;
  border: 1px solid #7d5d9e;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, #a677e033, transparent 65%),
    #2b203a;
  padding: 65px 30px;
}

.cta-panel p { margin-bottom: 28px; }

.card { margin: 22px 0; }

.notice {
  border-left: 3px solid var(--purple);
  padding: 12px 18px;
  background: #332641;
  border-radius: 10px;
}

code {
  color: #ead5ff;
  background: #b992ed20;
  padding: 2px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

footer {
  padding-block: 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-block: 18px;
}

.footer-links a { text-decoration: none; }
.footer-note { font-size: .8rem; }

@media (max-width: 850px) {
  .feature-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  header { flex-direction: column; }
  nav { justify-content: center; }
}

@media (max-width: 600px) {
  header, main, footer { width: min(100% - 28px, 1120px); }
  .brand-logo { width: 130px; height: 58px; }
  nav { gap: 10px 16px; }
  nav a { font-size: .85rem; }
  .hero { padding: 65px 0 80px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-card, .step-card, .card { padding: 22px; }
  .cta-panel { padding: 42px 20px; }
}

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

/* CREW ME — CUTE GUIDE REDESIGN */

.guide-main {
  max-width: 1050px;
}

.guide-main > .tag,
.guide-main > h1,
.guide-main > .lead {
  display: block;
  text-align: center;
}

.guide-main > .lead {
  max-width: 720px;
  margin: 0 auto 30px;
}

.guide-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin: 30px 0 38px;
  border: 1px solid #805da1;
  border-radius: 22px;
  background: linear-gradient(120deg, #49305d, #2b203b);
}

.guide-intro-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #caa5ff25;
  color: #f2d9ff;
  font-size: 2rem;
}

.guide-intro strong {
  font-size: 1.1rem;
}

.guide-intro p {
  margin: 3px 0 0;
}

.guide-main > h2 {
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 4px solid #c9a2ff;
}

.guide-main > ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.guide-main > ul > li {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #2b203a;
}

.guide-main .card {
  border-radius: 22px;
}

.setup-step-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.setup-step-badge {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e5c5ff, #aa8afb);
  color: #251331;
  font-size: 1.05rem;
  font-weight: 900;
}

.command-tools {
  background: #2c213c;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 20px;
  margin: 30px 0 18px;
}

.command-tools label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: #e6d2ff;
}

#command-search {
  width: 100%;
  border: 1px solid #74568f;
  border-radius: 13px;
  padding: 15px 17px;
  background: #191323;
  color: white;
  font: inherit;
  outline: none;
}

#command-search:focus {
  border-color: #d3adff;
  box-shadow: 0 0 0 3px #b994ff30;
}

#command-count {
  margin: 9px 0 0;
  font-size: .85rem;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 36px;
}

.category-nav a {
  padding: 8px 13px;
  border: 1px solid #624877;
  border-radius: 30px;
  background: #342542;
  color: #ead5ff;
  font-size: .82rem;
  text-decoration: none;
}

.category-nav a:hover {
  background: #503461;
}

.command-item code {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
  color: #f0d6ff;
}

.command-item[hidden] {
  display: none !important;
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checklist-item input {
  width: 18px;
  height: 18px;
  accent-color: #bc97ff;
  margin-top: 5px;
}

.checklist-item input:checked + span {
  text-decoration: line-through;
  opacity: .65;
}

@media (max-width: 600px) {
  .guide-intro {
    padding: 18px;
    gap: 12px;
  }

  .guide-intro-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .setup-step-heading {
    align-items: flex-start;
    font-size: 1.35rem;
  }

  .category-nav {
    gap: 7px;
  }
}

/* Crew Me — Search Results */

#search-results {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #72518f;
  border-radius: 13px;
  background: #3a294c;
  color: #e9d5ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.search-result:hover,
.search-result:focus-visible {
  background: #503663;
  border-color: #d4aeff;
}

.search-result span {
  font-size: .83rem;
  color: #d4c5df;
}

.command-item {
  scroll-margin-top: 25px;
}

.command-highlight {
  border-color: #d8b4fe !important;
  background: #513568 !important;
  box-shadow: 0 0 0 2px #b98aff55;
}

/* Crew Me — Polished Search Results */

#search-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

#search-results .search-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 17px;
  background: #21182e;
  border: 1px solid #644a80;
  border-radius: 15px;
  color: #e9d5ff;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

#search-results .search-result strong {
  color: #e6c6ff;
  font-size: 1rem;
  text-decoration: none;
}

#search-results .search-result span {
  color: #cbbbd8;
  font-size: .88rem;
  line-height: 1.5;
  text-decoration: none;
}

#search-results .search-result:hover,
#search-results .search-result:focus-visible {
  background: #38264d;
  border-color: #c59af8;
}

@media (max-width: 600px) {
  #search-results .search-result {
    padding: 14px;
  }
}
