:root {
  /* Official Clipchi Brand Sheet Palette */
  --bg-obsidian: #0B0B10;
  --bg-twilight: #1A0F26;
  --bg-card: #140D1F;
  --bg-card-hover: #211333;

  --purple-main: #8B5CF6;
  --purple-bright: #A855F7;
  --lavender: #C084FC;
  --sakura: #E9D5FF;

  --border-soft: rgba(192, 132, 252, 0.18);
  --border-glow: rgba(192, 132, 252, 0.42);

  --text-main: #F8F5FF;
  --text-2: #BFAFD4;
  --text-3: #83729B;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 70% 45% at 78% 12%, rgba(139, 92, 246, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 15% 85%, rgba(192, 132, 252, 0.08) 0%, transparent 65%);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  height: 68px;
  background: rgba(11, 11, 16, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 720px) {
  .nav-center { display: none; }
}

.nav-center a {
  position: relative;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.15s;
}

.nav-center a:hover,
.nav-center a.active {
  color: #ffffff;
}

.nav-center a.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--lavender);
  box-shadow: 0 0 8px var(--lavender);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-btn.ghost {
  background: rgba(26, 15, 38, 0.75);
  border: 1px solid var(--border-soft);
  color: var(--sakura);
}

.nav-btn.ghost:hover {
  border-color: var(--border-glow);
  background: var(--bg-twilight);
  color: #ffffff;
}

.nav-btn.primary {
  background: linear-gradient(135deg, #9d6bff 0%, #7c3aed 100%);
  border: 1px solid rgba(233, 213, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.nav-btn.primary:hover {
  background: linear-gradient(135deg, #b388ff 0%, #8b5cf6 100%);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
  padding: 36px 0 48px;
}

.hero-stage {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(120deg, #130b1e 0%, #1A0F26 52%, #241238 100%);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 45px rgba(139, 92, 246, 0.14);
}

.hero-art-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  pointer-events: none;
}

.hero-art-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.hero-art-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #140c1f 0%, rgba(20, 12, 31, 0.92) 22%, rgba(26, 15, 38, 0.28) 58%, rgba(26, 15, 38, 0.06) 100%),
    linear-gradient(0deg, rgba(11, 11, 16, 0.55) 0%, transparent 28%);
}

@media (max-width: 860px) {
  .hero-art-bg {
    width: 100%;
    opacity: 0.35;
  }
  .hero-art-fade {
    background: linear-gradient(180deg, rgba(18, 10, 29, 0.72) 0%, rgba(18, 10, 29, 0.92) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 46px 50px;
  max-width: 600px;
}

@media (max-width: 600px) {
  .hero-content { padding: 30px 24px; }
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 11, 16, 0.65);
  border: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sakura);
  margin-bottom: 20px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 8px var(--lavender);
}

.hero-content h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin-bottom: 18px;
}

.accent-word {
  position: relative;
  display: inline-block;
  color: var(--lavender);
  text-shadow: 0 0 28px rgba(192, 132, 252, 0.45);
}

.accent-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: -8px;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-main), var(--sakura), transparent);
}

.hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 490px;
}

.hero-desc strong {
  color: var(--sakura);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9d6bff 0%, #8B5CF6 55%, #7c3aed 100%);
  border: 1px solid rgba(233, 213, 255, 0.4);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
}

.btn-arrow {
  font-size: 15px;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  background: rgba(11, 11, 16, 0.6);
  border: 1px solid var(--border-glow);
  color: var(--sakura);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-hero-secondary:hover {
  background: rgba(26, 15, 38, 0.9);
  color: #ffffff;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* 4-COLUMN FEATURE RIBBON */
.ribbon-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 920px) {
  .ribbon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .ribbon-grid { grid-template-columns: 1fr; }
}

.ribbon-card {
  padding: 20px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 15, 38, 0.85) 0%, rgba(16, 11, 26, 0.92) 100%);
  border: 1px solid var(--border-soft);
  transition: border-color 0.15s, transform 0.15s;
}

.ribbon-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.r-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.32);
  color: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ribbon-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ribbon-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* SHOWCASE & STEPS SECTION */
.showcase-section {
  padding: 24px 0 64px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-art-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: var(--bg-twilight);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.showcase-art-card > img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-art-overlay {
  padding: 16px 20px;
  background: linear-gradient(180deg, #160d23 0%, #0e0916 100%);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.showcase-lockup {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.showcase-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--lavender);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.sec-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--lavender);
  margin-bottom: 8px;
}

.showcase-steps h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 22px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.38);
  color: var(--sakura);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-row p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.step-row code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--sakura);
  background: rgba(139, 92, 246, 0.16);
  padding: 1px 6px;
  border-radius: 4px;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  background: #0d0914;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.footer-dl-link {
  color: var(--lavender);
  text-decoration: none;
  font-weight: 600;
}

.footer-dl-link:hover {
  color: var(--sakura);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(26, 15, 38, 0.8);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sakura);
}

.admin-pill {
  background: rgba(192, 132, 252, 0.16) !important;
  border: 1px solid rgba(192, 132, 252, 0.5) !important;
  color: #f3e8ff !important;
}
