/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-bg:         #0d0d0d;
  --color-surface:    #141414;
  --color-surface-2:  #1a1a1a;
  --color-surface-3:  #222222;
  --color-border:     #252525;
  --color-border-2:   #303030;

  --color-accent:     #e8c547;
  --color-accent-dim: rgba(232, 197, 71, 0.12);

  --color-text:       #f0f0f0;
  --color-text-2:     #aaaaaa;
  --color-text-3:     #666666;

  --color-ticketing:    #4a9eff;
  --color-narrowcast:   #a855f7;
  --color-easysocials:  #22c55e;

  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.5), 0 16px 40px rgba(0,0,0,0.4);

  --transition: 200ms ease;
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }

/* ============================================================
   Utilities
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--btn-color, var(--color-accent));
  color: #000;
  border: 1px solid transparent;
}
.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-2);
  border: 1px solid var(--color-border-2);
}
.btn--ghost:hover {
  border-color: var(--color-text-3);
  color: var(--color-text);
}

.btn__arrow {
  transition: transform var(--transition);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 0 40px;
}
.site-header__inner {
  height: 60px;
  display: flex;
  align-items: center;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.brand-divider {
  color: var(--color-border-2);
}
.brand-sub {
  font-size: 14px;
  color: var(--color-text-3);
  font-weight: 400;
}

/* ============================================================
   Page Layout
   ============================================================ */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page__main { flex: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding: 64px 40px 48px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 12px;
}
.hero__sub {
  font-size: 16px;
  color: var(--color-text-3);
  font-weight: 400;
}

/* ============================================================
   Folder Nav
   ============================================================ */
.folder-nav {
  padding: 0 40px 32px;
}
.folder-nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}
.folder-nav__label {
  font-size: 12px;
  color: var(--color-text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.folder-nav__item {
  font-size: 13px;
  color: var(--color-text-2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.folder-nav__item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.folder-nav__item--all {
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================================
   Products Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--product-color, var(--color-accent));
  box-shadow: var(--shadow-hover);
}

.product-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-2);
}
.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.product-card:hover .product-card__thumb img {
  transform: scale(1.03);
}
.product-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  align-self: flex-start;
}

.product-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.product-card__count {
  font-size: 13px;
  color: var(--color-text-3);
  margin-bottom: 6px;
}

/* ============================================================
   All CTA
   ============================================================ */
.all-cta {
  text-align: center;
  padding: 48px 40px 64px;
}

/* ============================================================
   Not Ready
   ============================================================ */
.not-ready {
  max-width: 480px;
  margin: 120px auto;
  text-align: center;
  padding: 0 40px;
}
.not-ready__icon { font-size: 48px; margin-bottom: 20px; }
.not-ready__title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.not-ready__text { color: var(--color-text-2); margin-bottom: 24px; }
.not-ready__cmd {
  display: inline-block;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  color: var(--color-accent);
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 40px;
  font-size: 13px;
  color: var(--color-text-3);
  text-align: center;
}

/* ============================================================
   Index page extras
   ============================================================ */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .hero { padding: 40px 20px 32px; }
  .products-grid { padding: 0 20px; gap: 16px; }
  .folder-nav { padding: 0 20px 24px; }
  .all-cta { padding: 32px 20px; }
  .site-footer { padding: 16px 20px; }
}
