/* =========================================================
   ItsAsh — clean minimal dark theme
   Edit the variables below to re-theme the whole site.
   ========================================================= */
:root {
  /* Surfaces */
  --bg:        #0a0b0e;
  --bg-2:      #0d0f13;
  --surface:   #121419;
  --surface-2: #171a21;
  --border:    #23262e;
  --border-2:  #2d313b;

  /* Text */
  --text:   #e8eaf0;
  --muted:  #99a0ad;
  --faint:  #6b7280;

  /* Accent (change these two to recolor the brand) */
  --accent:    #22d3ee;
  --accent-2:  #0ea5e9;
  --accent-ink:#06121a;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.35);

  /* Live indicator */
  --live: #ff4d4d;

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.accent { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent-line);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent-line); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--accent-line); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-badge { width: 38px; height: 38px; display: block; }
.brand-badge svg, .brand-badge img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-word { font-size: 1.18rem; letter-spacing: -0.02em; }
/* Cyan "live" pip — ties the wordmark to the live indicator. Scales with font-size. */
.brand-word::after {
  content: "";
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin-left: 0.16em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.42em;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: 12px;
}
.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.live-pill[data-state="live"] { color: var(--text); border-color: rgba(255,77,77,.5); background: rgba(255,77,77,.1); }
.live-pill[data-state="live"] .live-dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,77,77,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,77,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 600px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.hero-tags li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-cta { margin-top: 36px; }

/* ===== Feature cards ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ===== Video grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,.15));
  opacity: 0;
  transition: opacity .2s;
}
.video-card:hover .video-thumb::after { opacity: 1; }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(10,11,14,.7);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: transform .2s var(--ease), background .2s;
}
.video-card:hover .video-play { transform: scale(1.08); background: var(--accent); }
.video-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; transition: fill .2s; }
.video-card:hover .video-play svg { fill: var(--accent-ink); }
.video-meta { padding: 16px 18px 20px; }
.video-meta h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.video-meta .video-channel { margin: 6px 0 0; font-size: 0.84rem; color: var(--faint); }

/* ===== Link hub ===== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.link-card:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--surface-2); }
.link-ic {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.link-ic svg { width: 24px; height: 24px; fill: var(--text); transition: fill .2s; }
.link-card:hover .link-ic svg { fill: var(--accent); }
.link-body { min-width: 0; flex: 1; }
.link-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; }
.link-handle { color: var(--faint); font-weight: 400; font-size: 0.85rem; }
.link-desc { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; }
.link-arrow { flex: none; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.link-card:hover .link-arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ===== Work band ===== */
.work-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--border-2);
}
.work-copy { max-width: 620px; }
.work-copy h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; }
.work-copy p { margin: 0; color: var(--muted); }
.work-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.work-note { font-size: 0.82rem; color: var(--faint); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand-word { font-size: 1.3rem; font-weight: 800; }
.footer-tag { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.footer-social a:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.footer-social svg { width: 20px; height: 20px; fill: var(--muted); transition: fill .2s; }
.footer-social a:hover svg { fill: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: var(--faint);
  font-size: 0.88rem;
}
.heart { color: var(--accent); }
.to-top { color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cards-3, .video-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    margin: 0;
    transform: translateY(-120%);
    transition: transform .28s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 540px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .work-band { padding: 30px 24px; }
  .live-pill .live-text { display: none; }
  .live-pill { padding: 9px; }
}
