/* ============================================================
   BLACK CAT STUDIOS — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700&family=Maven+Pro:wght@400;500;600;700&display=swap');

/* === Variables ============================================== */
:root {
  --bg-0: #0a0a0d;
  --bg-1: #0f0f12;
  --bg-2: #111114;
  --bg-3: #16161b;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(143, 163, 184, 0.28);

  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --accent: #8fa3b8;
  --accent-light: #b8cdd9;
  --accent-dim: rgba(143, 163, 184, 0.18);
  --accent-pink: #ccdae5;

  --glow-purple: rgba(143, 163, 184, 0.14);
  --glow-spread: rgba(143, 163, 184, 0.06);

  --font-body: 'Maven Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Assistant', 'Maven Pro', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

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

  --container: 1080px;
  --container-narrow: 720px;
}

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

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

body {
  background-color: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: 7rem 0;
}

/* === Scroll Animation ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Background Image ======================================= */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

/* === Navigation ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-1);
  transition: color var(--transition);
  position: relative;
}

.nav__logo:hover { color: var(--accent-light); }

.nav__logo img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: -10px;
}

.nav__logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav__links a:hover { color: var(--text-1); }

/* === Buttons =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(143, 163, 184, 0.28);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 36px rgba(143, 163, 184, 0.42);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1.125rem;
  font-size: 0.825rem;
}

/* === Section Labels ======================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* === Section Heading ======================================= */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* === Divider =============================================== */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Radial ambient glow */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 14, 17, 0.85) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.hero__logo-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(14, 14, 17, 0.9) 0%, rgba(14, 14, 17, 0.3) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(16px);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero__logo {
  width: 340px;
  height: 340px;
  margin: 0 auto;
  position: relative;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.12); }
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 0.75rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__building-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color var(--transition), background var(--transition);
  margin-top: 0.25rem;
}

.hero__building-tag:hover {
  border-color: rgba(143, 163, 184, 0.5);
  background: rgba(143, 163, 184, 0.14);
}

.hero__building-label {
  color: var(--text-3);
}

.hero__building-name {
  color: var(--accent-light);
  font-weight: 600;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scroll-fade 2.4s ease-in-out infinite;
  padding-bottom: 2.5rem;
  flex-shrink: 0;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text-3));
}

.hero__scroll-arrow {
  animation: arrow-bounce 2.4s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.35; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(6px); opacity: 0.3; }
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-2);
  position: relative;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__text p {
  color: var(--text-2);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  line-height: 1.75;
}

.about__text p:last-child { margin-bottom: 0; }

.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.pillar:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.pillar__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.875rem;
  color: var(--accent-light);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.pillar__desc {
  font-size: 0.825rem;
  color: var(--text-3);
  line-height: 1.55;
}

.pillar--link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.pillar--link:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.pillar__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar__arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.pillar--link:hover .pillar__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(143, 163, 184, 0.1);
}

.project-card:hover::before { opacity: 1; }

.project-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(143, 163, 184, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  width: fit-content;
}

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

.project-card__badge svg {
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
}

.project-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================================================
   FOOTER / COMPANY DETAILS
   ============================================================ */
.footer {
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 3.5fr auto;
  gap: 2.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.footer__brand-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  align-self: center;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 1rem;
}

.footer__details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__detail svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer__detail a {
  color: var(--text-3);
  transition: color var(--transition);
}

.footer__detail a:hover { color: var(--accent-light); }

.footer__links-wrapper {
  display: flex;
  gap: 2.5rem;
  align-self: end;
  align-items: flex-start;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--accent-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--transition);
}

.footer__legal a:hover { color: var(--text-2); }

/* ============================================================
   SIMPLE PAGES (Privacy / Terms)
   ============================================================ */
.simple-page {
  padding: 10rem 0 6rem;
  min-height: 100vh;
}

.simple-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.simple-page__meta {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.simple-page__content h2 {
  font-family: var(--font-display);
  font-size: 1.175rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.simple-page__content p,
.simple-page__content li {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.simple-page__content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.simple-page__content a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.simple-page__content a:hover { color: var(--accent-pink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 5rem 0; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top > *:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav__links { display: none; }

  .hero__logo { width: 110px; height: 110px; }

  .projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .about__pillars { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__links-wrapper { flex-wrap: wrap; gap: 2rem; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
