/* ============================================================
   AWARD-LEVEL STATIC PORTFOLIO
   Refined dark theme • Perfect spacing • Meaningful motion
   ============================================================ */

:root {
  /* Premium deep palette */
  --bg-primary: #09090b;
  --bg-secondary: #0f0f12;
  --bg-card: #141418;
  --bg-elevated: #1a1a20;
  --bg-hover: #1f1f27;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent: #6366f1;          /* slightly refined indigo */
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-hover: #818cf8;

  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.45);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
}

/* Light mode */
html.light {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f4f4f5;
  --bg-hover: #f4f4f5;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --accent-soft: rgba(99, 102, 241, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

/* ---------- Typography (refined scale) ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 62ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

html.light .site-header {
  background: rgba(255, 255, 255, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.theme-toggle.visible {
  display: flex;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1.25rem;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 0.85rem 0;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a.active {
  color: var(--accent);
}

/* ---------- Hero + Presence ---------- */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.presence-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem 0.65rem 0.85rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.presence-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  position: relative;
}
.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.status-dot.idle {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
.status-dot.dnd {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.status-dot.offline {
  background: var(--text-muted);
}

.presence-text {
  text-align: left;
}
.presence-text .name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.presence-text .activity {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.hero h1 {
  margin-bottom: 0.6rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.hero-about {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 560;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.server-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.25);
}
.server-card:hover::before {
  opacity: 1;
}

.server-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.server-info h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.rank-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.rank-badge.owner {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.server-desc {
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.server-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
}

.server-card .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-strong);
}
.testimonial-quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 560;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.01em;
}
.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  display: none;
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Contact / Socials ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
  color: var(--text-primary);
}
.social-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}
.social-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: block;
  opacity: 0.9;
}

/* ---------- Coming Soon ---------- */
.coming-soon-banner {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), transparent);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 1rem 0;
}
.coming-soon-banner h2 {
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.feature-disabled-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .presence-card {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
  }
  .presence-text { text-align: center; }
  h1 { font-size: 2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .server-card:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========== Professional Presence Card ========== */
.presence-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.2rem 0.55rem 0.55rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.presence-card.is-online {
  border-color: rgba(34, 197, 94, 0.25);
}
.presence-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.presence-avatar.hidden {
  display: none;
}
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  position: relative;
}
.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-online 2.2s ease-in-out infinite;
}
.status-dot.idle {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}
.status-dot.dnd {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.status-dot.offline {
  background: var(--text-muted);
}

@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12); }
}

/* ========== Back to top ========== */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== Page progress ========== */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Design Work nav helper */
.nav-design-work.hidden {
  display: none !important;
}

/* Hero centering refinements */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-about {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero .btn {
  margin: 0.25rem;
}
.spotify-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.spotify-link:hover {
  color: var(--accent-hover);
}

/* Force perfect hero centering on all devices */
.hero {
  text-align: center !important;
}
.hero .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.hero h1,
.hero .tagline,
.hero-about {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.presence-text {
  text-align: left; /* keep internal text left for readability inside the pill */
}
.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  width: 100%;
}

/* Reviews carousel */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-slide {
  min-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.review-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.review-quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.65;
  font-size: 1.02rem;
}
.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}
.review-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Professional social cards */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.social-card .social-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.social-card strong {
  font-size: 0.95rem;
}

/* Member count badge on cards */
.member-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Coming soon status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.status-badge.hidden {
  display: none !important;
}

/* Design work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.25);
}
.work-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}
.work-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.work-body h3 {
  margin-bottom: 0.5rem;
}
.work-body p {
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1.15rem;
}
.work-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ========== Design categories + multi-image gallery ========== */
.design-category {
  margin-bottom: 3.5rem;
}
.design-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.design-category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Multi-image gallery */
.work-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}
.work-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-gallery-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.work-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.75);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
}
.work-card:hover .work-gallery-btn,
.work-gallery-btn:focus {
  opacity: 1;
}
.work-gallery-btn.prev { left: 0.6rem; }
.work-gallery-btn.next { right: 0.6rem; }
.work-gallery-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.work-gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}
.work-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.work-gallery-dot.active {
  background: white;
  transform: scale(1.15);
}

.work-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.work-body h3 {
  margin-bottom: 0.5rem;
}
.work-body p {
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1.15rem;
}
.work-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Footer – ensure centered copyright on all devices */
.site-footer {
  text-align: center;
}
.site-footer p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}
.footer-links {
  justify-content: center;
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-gallery-btn {
    opacity: 0.85;
  }
}

/* ========== Stats strip ========== */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 1rem;
  margin: 0 auto 1rem;
  text-align: center;
}
.stat-item {
  min-width: 100px;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========== Process steps ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 900px;
  text-align: center;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
}
.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}
.process-step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.process-step p {
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 28ch;
}

/* ========== Pricing note ========== */
.pricing-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: inline-block;
  max-width: 100%;
}

/* ========== Design CTA bar ========== */
.design-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  text-align: center;
}
.design-cta-bar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ========== Before / After toggle ========== */
.ba-toggle {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.ba-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.ba-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.35);
}
.ba-images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.ba-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.ba-images img.active {
  opacity: 1;
}

/* ========== Copy Discord button ========== */
.copy-discord-btn {
  cursor: pointer;
}
.copy-discord-btn.copied {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .stats-strip {
    gap: 1.25rem 1.5rem;
  }
  .stat-value {
    font-size: 1.45rem;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .design-cta-bar {
    flex-direction: column;
  }
}

/* ========== Policy purchase modal ========== */
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.policy-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.policy-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 0.25s;
}
.policy-modal-overlay.open .policy-modal {
  transform: translateY(0);
}
.policy-modal h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
.policy-modal p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  text-align: center;
  max-width: none;
}
.policy-modal label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.policy-modal input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.policy-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.policy-modal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
