/*
 * Niyutam Hero — hero.css
 * Depends on Clash Display + Satoshi already loaded via nav.css @import.
 * If used standalone, add the Fontshare @import from nav.css here.
 */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --hero-bg:             #0a0a0f;
  --hero-accent:         #C8FF00;
  --hero-accent-hover:   #aee600;
  --hero-text:           #ffffff;
  --hero-text-sub:       rgba(255, 255, 255, 0.6);
  --hero-text-body:      rgba(255, 255, 255, 0.75);
  --hero-radius-btn:     6px;
  --hero-radius-pill:    99px;
  --hero-font-logo:      'Clash Display', system-ui, sans-serif;
  --hero-font-body:      'Satoshi', system-ui, sans-serif;
  --hero-nav-height:     var(--nav-height, 72px);  /* inherits from nav.css token */
}

/* ─── Scoped reset ──────────────────────────────────────────── */
.hero *, .hero *::before, .hero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Section shell ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh ;
  /* min-height: 100vh; */
  min-height: 100vh;   /* respects mobile browser chrome */
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle accent glow — upper-right ambient light */
.hero::before {
  content: '';
  position: absolute;
  top: 5%;
  right: -8%;
  width: 52%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(200, 255, 0, 0.065) 0%,
    rgba(200, 255, 0, 0.018) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Canvas ────────────────────────────────────────────────── */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ─── Layout container ──────────────────────────────────────── */
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* ─── Content column ────────────────────────────────────────── */
.hero__content {
  max-width: 700px;
  padding-top: calc(var(--hero-nav-height) + clamp(3.5rem, 9vh, 6rem));
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;                /* individual margins used below for precise control */
}

/* ─── Tag pill ──────────────────────────────────────────────── */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(200, 255, 0, 0.3);
  background: rgba(200, 255, 0, 0.08);
  border-radius: var(--hero-radius-pill);
  font-family: var(--hero-font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--hero-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.75rem;
}

/* Pulsing live-indicator dot */
.hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-accent);
  flex-shrink: 0;
  animation: hero-pulse-dot 2.4s ease-in-out infinite;
}

@keyframes hero-pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ─── H1 heading ────────────────────────────────────────────── */
.hero__heading {
  font-family: var(--hero-font-logo);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  margin-bottom: 1.5rem;
}

/* ─── Subtext ───────────────────────────────────────────────── */
.hero__sub {
  font-family: var(--hero-font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--hero-text-sub);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ─── CTA row ───────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.hero__btn {
  font-family: var(--hero-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--hero-radius-btn);
  padding-inline: 1.5rem;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background  0.25s ease,
    color       0.25s ease,
    border-color 0.25s ease,
    transform   0.2s  ease;
  cursor: pointer;
}

.hero__btn:active { transform: scale(0.97); }

/* Primary — filled accent */
.hero__btn--primary {
  background: var(--hero-accent);
  color: var(--hero-bg);
}

.hero__btn--primary:hover { background: var(--hero-accent-hover); }

.hero__btn-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero__btn--primary:hover .hero__btn-icon { transform: translateX(3px); }

/* Ghost — white border */
.hero__btn--ghost {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ─── Services pill strip ───────────────────────────────────── */
.hero__services {
  width: 100%;
}

/* Thin separator line above the strip */
.hero__services::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 1.25rem;
}

.hero__services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__service-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--hero-radius-pill);
  font-family: var(--hero-font-body);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* Accent dot prefix */
.hero__service-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.hero__service-pill:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Entrance animations ───────────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero__pill     { animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;  }
.hero__heading  { animation: hero-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) both 0.25s; }
.hero__sub      { animation: hero-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both 0.45s; }
.hero__ctas     { animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.6s;  }
.hero__services { animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.75s; }

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__pill,
  .hero__heading,
  .hero__sub,
  .hero__ctas,
  .hero__services        { animation: none; }
  .hero__pill-dot        { animation: none; }
  .hero__btn:active      { transform: none; }
  .hero__btn--primary:hover .hero__btn-icon { transform: none; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 599px) {
  /* Stack CTAs vertically on very narrow viewports */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn {
    justify-content: center;
    height: 52px;
  }

  /* Allow pills to scroll horizontally without wrapping */
  .hero__services-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .hero__services-list::-webkit-scrollbar { display: none; }
}

@media (min-width: 600px) and (max-width: 767px) {
  .hero__ctas {
    flex-direction: row;
  }
}
