/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-dark: #5b21b6;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --slate: #475569;
  --slate-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ============================================================
   LOGO
============================================================ */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo--small {
  font-size: 1.15rem;
}

.logo-performr {
  color: var(--navy);
}

/* Silver/chrome to match the PerformrOS logo "OS" lettering */
.logo-os {
  background: linear-gradient(135deg, #c0c0c0 0%, #808080 40%, #d8d8d8 60%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Nav logo image */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary--large {
  font-size: 1.1rem;
  padding: 18px 44px;
  border-radius: 10px;
}

.btn-product {
  display: inline-block;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid var(--purple);
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.btn-product:hover {
  opacity: 0.7;
}

.btn-product--ghost {
  color: var(--slate);
  border-bottom-color: var(--border);
}

.btn-product--ghost:hover {
  color: var(--purple);
  border-bottom-color: var(--purple);
  opacity: 1;
}

/* ============================================================
   SECTION TYPOGRAPHY
============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--purple-light);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-heading--light {
  color: #fff;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(180deg, #faf9ff 0%, #f0ebff 60%, #e8deff 100%);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-top: 0;
}

/* ============================================================
   PRODUCTS
============================================================ */
.products {
  padding: 96px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--bg);
  transition: box-shadow 0.25s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.product-card--featured {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.07);
}

.product-card--coming {
  background: var(--bg-alt);
  border-style: dashed;
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.product-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.product-logo-placeholder {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  opacity: 0.4;
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.product-badge--soon {
  background: var(--slate-light);
}

.product-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.product-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features li {
  font-size: 0.875rem;
  color: var(--slate);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
}

/* ============================================================
   MISSION
============================================================ */
.mission {
  background: linear-gradient(135deg, var(--navy) 0%, #1a0a3d 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mission-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stat {
  border-left: 3px solid var(--purple);
  padding-left: 24px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  padding: 96px 0;
  background: var(--bg-alt);
  text-align: center;
}

.contact-inner {
  max-width: 560px;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.contact-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--purple);
}

.dot {
  color: var(--border);
  font-size: 1.2rem;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--navy);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-links {
    gap: 24px;
  }

  .hero {
    padding: 64px 0 0;
  }

  .hero-inner {
    padding-bottom: 56px;
  }

  .products {
    padding: 64px 0;
  }

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

  .mission {
    padding: 64px 0;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact {
    padding: 64px 0;
  }

  .contact-inner {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .product-card {
    padding: 28px 24px;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  .dot {
    display: none;
  }
}
