/* ==========================================================================
   LegendPrix AI — Modern Shadcn Dark Design System & Visual Styles
   Color Tokens: Deep Space Zinc, Sky Cyan Glow (#38bdf8), Violet Accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-space: #030712;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-card-inner: rgba(2, 6, 23, 0.55);
  
  --brand-cyan: #38bdf8;
  --brand-cyan-dim: rgba(56, 189, 248, 0.12);
  --brand-cyan-border: rgba(56, 189, 248, 0.28);
  --brand-blue: #0284c7;
  --brand-violet: #818cf8;
  --brand-purple: #a855f7;
  --brand-glow: 0 0 40px rgba(56, 189, 248, 0.22);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(56, 189, 248, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 3D BACKGROUND CANVAS CONTAINER ─── */
#space-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Subtle atmospheric overlay */
.cosmic-radial-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(14, 116, 144, 0.14) 0%, rgba(3, 7, 18, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* ─── CONTENT WRAPPER ─── */
nav, main, footer, section, header {
  position: relative;
  z-index: 10;
}

/* ─── SHADCN GLASS NAVIGATION BAR ─── */
.studio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-emblem-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-ai-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-cyan);
  background: var(--brand-cyan-dim);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--brand-cyan-border);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--brand-cyan-border);
  color: var(--brand-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

/* ─── HERO SECTION ─── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  max-width: 660px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--brand-cyan-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.headline-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.globe-hint-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
}

.globe-hint-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--brand-cyan);
}

.globe-hint-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.globe-hint-text strong {
  color: var(--text-primary);
}

/* ─── BUTTONS (SHADCN VARIANTS) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #030712;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--border-light);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-cyan {
  background: var(--brand-cyan);
  color: #030712;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.btn-cyan:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* ─── STUDIO PILLARS STRIP ─── */
.pillars-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--brand-cyan-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.08);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 12px;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-subheading {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── 4 FLAGSHIP PRODUCTS GRID ─── */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 120px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ─── PRODUCT CARD (SHADCN CARD WITH CYBER HIGHLIGHT) ─── */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  border-color: var(--brand-cyan-border);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.12);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.app-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  background: #0b1120;
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.chip-macmint {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

.chip-topbump {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.08);
}

.chip-dotmesh {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.chip-tinyorbit {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.product-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 13.5px;
  color: var(--brand-cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.product-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  list-style: none;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

.feature-pill svg {
  width: 12px;
  height: 12px;
  color: var(--brand-cyan);
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.card-actions-row .btn {
  flex: 1;
}

/* ─── ABOUT / FOUNDER STRIP ─── */
.studio-about-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.about-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  backdrop-filter: blur(20px);
}

.about-logo-circle {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--brand-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.about-logo-circle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.about-details {
  flex: 1;
}

.about-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

/* ─── FOOTER ─── */
.studio-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.8);
  padding: 60px 40px 40px;
  backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-nav-links a:hover {
  color: var(--brand-cyan);
}

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

.footer-copy a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--brand-cyan);
}

/* ─── DEDICATED PRODUCT SUBPAGE STYLES ─── */
.subpage-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 130px 40px 100px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--brand-cyan);
}

.product-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(24px);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.subpage-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background: #0f172a;
  overflow: hidden;
}

.subpage-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-info {
  flex: 1;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
}

.subpage-tagline {
  font-size: 16px;
  color: var(--brand-cyan);
  font-weight: 500;
  margin-bottom: 18px;
}

.subpage-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Feature Matrix & Specs */
.subpage-section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.spec-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.spec-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}

.spec-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.spec-card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-detailed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.feature-detailed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(16px);
}

.feature-detailed-card:hover {
  border-color: var(--brand-cyan-border);
}

.feature-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--brand-cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Other products bar */
.other-products-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 60px;
}

.other-products-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.other-products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.other-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.2s;
}

.other-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--brand-cyan-border);
  transform: translateY(-2px);
}

.other-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.other-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.other-item-tag {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .globe-hint-box {
    margin: 30px auto 0;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .feature-detailed-grid {
    grid-template-columns: 1fr;
  }
  .other-products-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .studio-nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 120px 20px 60px;
  }
  .pillars-section, .products-section, .studio-about-strip, .subpage-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .product-card {
    padding: 24px;
  }
  .about-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .product-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .subpage-actions {
    justify-content: center;
  }
  .card-actions-row {
    flex-direction: column;
  }
  .card-actions-row .btn {
    width: 100%;
  }
}
