/* ===================================================================
   iPipe Platform - Homepage & Landing Page Design System
   =================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --primary-accent: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --cyan-accent: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green-glow: #10b981;
}

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

body.landing-page {
  display: block !important;
  width: 100% !important;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Brand & Button Primitives */
.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header & Nav */
.site-nav {
  width: 100% !important;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-glass);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

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

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link-item:hover {
  color: #fff;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 auto 24px auto;
  max-width: 920px;
}

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

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-hero-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(99, 102, 241, 0.55);
}

.btn-hero-secondary {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Interactive Hero Preview Sandbox Widget */
.hero-sandbox-container {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(20px);
}

.sandbox-header {
  padding: 14px 20px;
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sandbox-window-dots {
  display: flex;
  gap: 8px;
}

.sandbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #090d1a;
}

.sandbox-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sandbox-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sandbox-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.sandbox-telemetry {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(11, 17, 32, 0.8);
  border-left: 1px solid var(--border-glass);
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* 6 Commercial Solutions Showcase */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.solution-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
}

.solution-card-header {
  padding: 24px 24px 16px 24px;
}

.solution-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.solution-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.solution-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.solution-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.solution-chip {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  color: #cbd5e1;
}

.solution-footer {
  margin-top: auto;
  padding: 14px 24px;
  background: rgba(2, 6, 23, 0.5);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
}

/* Code Switcher */
.code-section {
  background: rgba(11, 17, 32, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  margin: 60px 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.code-tabs {
  display: flex;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 12px;
}

.code-tab {
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.code-tab.active {
  color: #fff;
  border-bottom-color: var(--primary-accent);
}

.code-block {
  padding: 24px;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  background: #080c18;
  overflow-x: auto;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--primary-accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.8));
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.pricing-rate {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin: 12px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px 0;
  background: #050811;
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-title { font-size: 40px; }
  .features-grid, .solutions-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .sandbox-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .features-grid, .solutions-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links-menu { display: none; }
}
