:root {
  --bg: #1a1b29;
  --bg-soft: #11121c;
  --card: #202132;
  --card-2: #242538;
  --border: rgba(244, 215, 189, 0.16);
  --text: #f8f5f0;
  --muted: #cfc8be;
  --muted-2: #a59d94;
  --violet: #765cfa;
  --terracotta: #d97745;
  --orange: #e8895b;
  --beige: #f4d7bd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(118, 92, 250, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(217, 119, 69, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--bg), #141520 38%, var(--bg-soft));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 215, 189, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 215, 189, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 74%);
}

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

a:hover {
  color: var(--beige);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(244, 215, 189, 0.08);
  background: rgba(17, 18, 28, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(132px, 16vw, 178px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(118, 92, 250, 0.2));
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(244, 215, 189, 0.08);
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(244, 215, 189, 0.06);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.warning-section {
  width: min(var(--max), calc(100% - 32px));
  margin: -18px auto 0;
  padding: 0 0 34px;
}

.warning-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 119, 69, 0.35);
  border-radius: 28px;
  background: rgba(217, 119, 69, 0.1);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.warning-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 119, 69, 0.42);
  border-radius: 16px;
  color: var(--beige);
  background: rgba(217, 119, 69, 0.16);
  font-weight: 850;
}

.warning-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.warning-content p {
  max-width: 960px;
  color: var(--muted);
}

.warning-content strong {
  color: var(--text);
}

.warning-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 119, 69, 0.24);
}

.warning-cta span {
  color: var(--beige);
  font-weight: 720;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
  min-height: auto;
  padding-top: 64px;
  padding-bottom: 56px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--beige);
  background: rgba(244, 215, 189, 0.06);
  font-size: 0.84rem;
  font-weight: 680;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5.4vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  background: linear-gradient(105deg, var(--violet) 8%, var(--beige) 45%, var(--terracotta) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.copy-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 720;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn {
  padding: 0 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--terracotta));
  color: white;
  box-shadow: 0 18px 50px rgba(118, 92, 250, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(244, 215, 189, 0.06);
}

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

.micro-copy {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.visual-shell {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(244, 215, 189, 0.09), transparent 36%),
    rgba(32, 33, 50, 0.82);
  box-shadow: var(--shadow);
}

.skill-cloud {
  position: absolute;
  inset: 30px 30px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skill-cloud span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 215, 189, 0.13);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(17, 18, 28, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  animation: softFloat 6s ease-in-out infinite;
}

.skill-cloud span:nth-child(3n) {
  color: var(--beige);
  border-color: rgba(217, 119, 69, 0.34);
}

.skill-cloud span:nth-child(4n) {
  border-color: rgba(118, 92, 250, 0.4);
}

.visual-core,
.visual-output {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(244, 215, 189, 0.2);
  background: rgba(17, 18, 28, 0.86);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.visual-core {
  top: 236px;
  width: 186px;
  height: 126px;
  border-radius: 30px;
}

.visual-output {
  bottom: 32px;
  width: min(82%, 280px);
  min-height: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(118, 92, 250, 0.24), rgba(217, 119, 69, 0.18)), rgba(17, 18, 28, 0.86);
}

.visual-core small,
.visual-output small {
  color: var(--muted-2);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.visual-core strong,
.visual-output strong {
  font-size: 1.05rem;
}

.visual-line {
  position: absolute;
  left: 50%;
  top: 362px;
  bottom: 118px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--violet), var(--terracotta));
  opacity: 0.75;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading .install-note {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(118, 92, 250, 0.24);
  border-radius: 18px;
  background: rgba(118, 92, 250, 0.08);
  color: var(--beige);
  font-size: 1rem;
}

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

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

.feature-card,
.source-card,
.skill-card,
.method-card,
.prompt-block,
.final-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(244, 215, 189, 0.045), transparent), rgba(32, 33, 50, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.feature-card,
.source-card,
.skill-card,
.method-card {
  padding: 24px;
}

.feature-card h3,
.source-card h3,
.method-card h3,
.skill-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.15;
}

.feature-card p,
.source-card p,
.skill-card p,
.method-card p {
  color: var(--muted);
}

.icon-dot {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), var(--terracotta));
}

.source-card a,
.repo-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--beige);
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.source-note,
.security-note {
  margin: 20px 0 0;
  color: var(--muted-2);
}

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

.skill-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.skill-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.skill-top span {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 215, 189, 0.14);
  border-radius: 14px;
  color: var(--beige);
  background: rgba(118, 92, 250, 0.14);
  font-weight: 780;
}

.tech-name {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(118, 92, 250, 0.34);
  border-radius: 999px;
  color: var(--beige) !important;
  background: rgba(118, 92, 250, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.slash-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.slash-label span {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.slash-label code {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(118, 92, 250, 0.35);
  border-radius: 999px;
  color: #f8f5f0;
  background: rgba(118, 92, 250, 0.14);
  font-size: 0.84rem;
}

.usage-note {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 69, 0.22);
  border-radius: 14px;
  color: var(--beige) !important;
  background: rgba(217, 119, 69, 0.08);
  font-size: 0.9rem;
}

.skill-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.skill-card > code {
  display: block;
  margin: auto 0 18px;
  padding: 12px;
  border: 1px solid rgba(244, 215, 189, 0.12);
  border-radius: 14px;
  color: var(--beige);
  background: rgba(17, 18, 28, 0.72);
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.copy-btn {
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(118, 92, 250, 0.92), rgba(217, 119, 69, 0.88));
}

.copy-btn.ghost {
  border-color: rgba(244, 215, 189, 0.16);
  color: var(--text);
  background: rgba(244, 215, 189, 0.07);
}

.copy-btn.compact {
  min-height: 38px;
  margin: 0 0 16px;
  font-size: 0.9rem;
}

pre {
  max-width: 100%;
  overflow: auto;
  margin: 12px 0 14px;
  padding: 16px;
  border: 1px solid rgba(244, 215, 189, 0.12);
  border-radius: 16px;
  color: var(--beige);
  background: rgba(17, 18, 28, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(32, 33, 50, 0.62);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 10px;
  color: var(--text);
  background: rgba(118, 92, 250, 0.24);
  font-weight: 760;
}

.prompt-block {
  padding: 24px;
}

.prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prompt-head h3 {
  margin-bottom: 18px;
}

.prompt-block pre {
  max-height: 560px;
  margin-bottom: 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 58px);
}

.final-cta div {
  max-width: 760px;
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted-2);
  border-top: 1px solid rgba(244, 215, 189, 0.1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  padding: 12px 18px;
  border: 1px solid rgba(244, 215, 189, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(17, 18, 28, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-shell {
    min-height: 520px;
  }

  .source-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 64px 0;
  }

  .warning-section {
    width: min(100% - 24px, var(--max));
    margin-top: -8px;
    padding-bottom: 18px;
  }

  .warning-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .warning-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-actions,
  .card-actions,
  .final-cta,
  .prompt-head {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .copy-btn {
    width: 100%;
  }

  .visual-shell {
    min-height: 440px;
    border-radius: 28px;
  }

  .skill-cloud {
    inset: 22px 18px auto;
    gap: 8px;
  }

  .skill-cloud span {
    min-height: 34px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .visual-core {
    top: 220px;
    width: 164px;
    height: 104px;
  }

  .visual-line {
    top: 324px;
    bottom: 104px;
  }

  .visual-output {
    bottom: 24px;
  }

  .source-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .source-card,
  .skill-card,
  .method-card,
  .prompt-block {
    padding: 20px;
    border-radius: 20px;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .footer {
    width: min(100% - 24px, var(--max));
  }
}
