@font-face {
  font-family: 'StudioThrill';
  src: url('/fonts/StudioThrill.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f7fc;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #0284c7;
  --radius-xl: 1.75rem;
  --radius-pill: 9999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 12% 8%, rgba(56, 189, 248, 0.22) 0px, transparent 46%),
    radial-gradient(at 88% 12%, rgba(99, 102, 241, 0.16) 0px, transparent 48%),
    radial-gradient(at 78% 78%, rgba(45, 212, 191, 0.18) 0px, transparent 50%),
    radial-gradient(at 18% 85%, rgba(168, 85, 247, 0.11) 0px, transparent 48%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Custom Brand Font — prevents faux-bold and protects slanted glyph overhang */
.font-brand {
  font-family: 'StudioThrill', 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0.03em;
}

.brand-accent {
  display: inline-block;
  padding-right: 0.32em;
  margin-right: -0.32em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-accent-studio {
  background-image: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
}

.brand-accent-mapper {
  background-image: linear-gradient(135deg, #0ea5e9 0%, #0891b2 55%, #0d9488 100%);
}

.brand-accent-panel {
  background-image: linear-gradient(135deg, #d97706 0%, #ea580c 58%, #dc2626 100%);
}

.brand-accent-sims {
  background-image: linear-gradient(135deg, #0284c7 0%, #2563eb 52%, #4f46e5 100%);
}

.inline-brand {
  font-size: 0.96em;
  color: #0f172a;
  padding-right: 0.18em;
}

/* Ambient Light Orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb-sky {
  top: -8rem;
  left: -6rem;
  width: 32rem;
  height: 32rem;
  background: rgba(56, 189, 248, 0.28);
  animation: float-slow 14s ease-in-out infinite alternate;
}

.orb-indigo {
  top: 18%;
  right: -7rem;
  width: 30rem;
  height: 30rem;
  background: rgba(99, 102, 241, 0.2);
  animation: float-slow 18s ease-in-out infinite alternate-reverse;
}

.orb-teal {
  bottom: -9rem;
  left: 34%;
  width: 28rem;
  height: 28rem;
  background: rgba(45, 212, 191, 0.22);
}

@keyframes float-slow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(24px, 18px, 0) scale(1.05);
  }
}

/* Light Liquid Glass Surfaces */
.liquid-glass {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 32px -10px rgba(15, 23, 42, 0.09),
    0 2px 8px -2px rgba(15, 23, 42, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
    inset 0 -1px 1px rgba(148, 163, 184, 0.16);
}

.liquid-glass-strong {
  background-color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 40px -12px rgba(15, 23, 42, 0.12),
    0 4px 12px -4px rgba(15, 23, 42, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(148, 163, 184, 0.18);
}

.liquid-glass-interactive {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    background-color 240ms ease;
}

.liquid-glass-interactive:hover,
.liquid-glass-interactive:focus-visible {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 24px 48px -14px rgba(14, 116, 144, 0.18),
    0 6px 16px -4px rgba(15, 23, 42, 0.07),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 1);
}

/* Page Shell */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

/* Header */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem 0 0.25rem;
}

.site-header {
  max-width: 72rem;
  margin: 0 auto;
  height: 3.6rem;
  padding: 0 0.75rem 0 1.35rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 1.35rem;
  line-height: 1;
  padding-right: 0.28em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.nav-pill {
  text-decoration: none;
  color: #334155;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  line-height: 1.1;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: #0284c7;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.1);
  outline: none;
}

.nav-brand {
  display: inline-block;
  padding-right: 0.16em;
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem 0 3.25rem;
}

/* Hero */
.hero {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.9rem, 6.4vw, 4.75rem);
  line-height: 1.04;
  color: #0f172a;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 37rem;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.62;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  outline: none;
}

.product-card:focus-visible {
  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.45),
    0 24px 48px -14px rgba(14, 116, 144, 0.18);
}

/* Subtle top ambient sheen per product */
.card-glow {
  position: absolute;
  top: -4.5rem;
  right: -4.5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.35;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.product-card:hover .card-glow {
  opacity: 0.62;
  transform: scale(1.12);
}

.card-mapper .card-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.48), rgba(20, 184, 166, 0.12));
}

.card-panel .card-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.48), rgba(245, 158, 11, 0.08));
}

.card-sims .card-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.48), rgba(99, 102, 241, 0.1));
}

/* Card Heading */
.card-heading {
  margin-bottom: 1rem;
  position: relative;
}

.card-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.8rem, 2.3vw, 2.15rem);
  line-height: 1.1;
  color: #0f172a;
  padding-right: 0.28em;
}

.card-domain {
  display: inline-block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0284c7;
  letter-spacing: 0.01em;
}

.card-mapper .card-domain {
  color: #0891b2;
}

.card-panel .card-domain {
  color: #c2410c;
}

.card-sims .card-domain {
  color: #2563eb;
}

/* Description */
.card-description {
  margin: 0 0 1.75rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
  position: relative;
}

/* Card Footer CTA */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
}

.card-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.cta-brand {
  font-size: 0.98rem;
  padding-right: 0.22em;
}

.card-arrow {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.card-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}

.card-mapper .card-arrow {
  background: linear-gradient(135deg, #0ea5e9 0%, #0891b2 55%, #0d9488 100%);
  box-shadow: 0 8px 16px -6px rgba(8, 145, 178, 0.5);
}

.card-panel .card-arrow {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 8px 16px -6px rgba(234, 88, 12, 0.5);
}

.card-sims .card-arrow {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.5);
}

.product-card:hover .card-arrow,
.product-card:focus-visible .card-arrow {
  transform: translate(2px, -2px) scale(1.06);
}

/* Footer */
.footer-wrap {
  padding: 0 0 1.4rem;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 1.4rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.footer-wordmark {
  font-size: 1.08rem;
  color: #0f172a;
  padding-right: 0.25em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #0284c7;
}

.footer-dot {
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
    margin: 0 auto;
  }

  .main-content {
    padding: 2rem 0 2.5rem;
  }

  .hero {
    margin-bottom: 2.2rem;
  }
}

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

  .site-header {
    justify-content: center;
    padding: 0 1.25rem;
  }

  .product-card {
    padding: 1.55rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
  .liquid-glass-interactive,
  .card-arrow,
  .card-glow {
    transition: none;
  }
}
