/* ─────────────────────────────────────────
   Primus Studios LLC — Site Styles
   Palette: near-black bg, warm white text,
            electric violet accent (#7c5cfc)
   ───────────────────────────────────────── */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0f;
  --bg-alt: #111114;
  --surface: #16161a;
  --border: #222226;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.18);
  --text: #f0eff4;
  --text-muted: #8a8997;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max-w: 1100px;
  --transition: 0.22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout ─── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.section {
  padding: 7rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ─── Section Title ─── */
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  color: var(--text);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:hover {
  background: #6a4ae8;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.link-arrow {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.link-arrow:hover {
  color: var(--text);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a:not(.btn) {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

/* subtle dot-grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

/* faint accent bloom */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 92, 252, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__headline {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* ─── SERVICES GRID ─── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
}

.card:hover {
  background: #1c1c22;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── ABOUT ─── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about__header .section__title {
  margin-bottom: 0;
}

.about__body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about__pillars {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__pillars li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.about__pillars li span {
  color: var(--text);
  font-weight: 500;
}

/* ─── CTA ─── */
.section--cta {
  text-align: center;
  padding: 7rem 0;
}

.cta__inner h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.cta__inner p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ─── Fade-in on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .nav__links a:not(.btn):not(:last-child) {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}