/* ============================================
   SJP Apps — Premium App Portfolio
   ============================================ */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --border: #1a1a1a;
  --border-light: #222222;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #FFD700;
  --accent-glow: rgba(255, 215, 0, 0.15);
  --accent-hover: #ffe44d;
  --blue: #2196F3;
  --green: #4CAF50;
  --orange: #FF9800;
  --purple: #9C27B0;
  --red: #f44336;
  --pink: #E91E63;
  --cyan: #00BCD4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1200px;
  --max-text: 700px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: 0.5px;
}

.nav-brand:hover { color: var(--accent) !important; }

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent) !important; }

/* ============================================
   Hero — Main Landing
   ============================================ */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

/* ============================================
   Hero — App Pages
   ============================================ */
.app-hero {
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--hero-glow, var(--accent-glow)) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.app-hero .icon {
  font-size: 72px;
  display: block;
  margin-bottom: 20px;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
}

.app-hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
}

.app-hero .tagline {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}

.platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

/* ============================================
   Platform Badges
   ============================================ */
.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.2s;
}

.badge.ios { color: var(--blue); border-color: rgba(33, 150, 243, 0.3); background: rgba(33, 150, 243, 0.08); }
.badge.android { color: var(--green); border-color: rgba(76, 175, 80, 0.3); background: rgba(76, 175, 80, 0.08); }
.badge.web { color: var(--orange); border-color: rgba(255, 152, 0, 0.3); background: rgba(255, 152, 0, 0.08); }
.badge.desktop { color: var(--purple); border-color: rgba(156, 39, 176, 0.3); background: rgba(156, 39, 176, 0.08); }
.badge.hardware { color: var(--red); border-color: rgba(244, 67, 54, 0.3); background: rgba(244, 67, 54, 0.08); }

/* ============================================
   Section Label Pills
   ============================================ */
.section-label {
  display: inline-block;
  padding: 5px 18px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(255, 215, 0, 0.06);
  margin-bottom: 16px;
}

/* ============================================
   App Card Grid — Main Landing
   ============================================ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  padding: 0 0 100px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 30px;
  color: var(--text) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.app-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.app-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.06);
}

.app-card:hover::before { opacity: 1; }
.app-card:hover::after { opacity: 0.3; }

.app-card .icon {
  font-size: 44px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.2));
  position: relative;
  z-index: 1;
}

.app-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.app-card .tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.app-card .platforms {
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
  padding: 70px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section > p {
  color: var(--text-muted);
  max-width: var(--max-text);
  line-height: 1.7;
  font-size: 16px;
}

.section-alt {
  background: var(--bg-alt);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
  border-radius: 0 0 3px 0;
}

.feature-card:hover {
  border-color: rgba(255, 215, 0, 0.12);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card .feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Spec Lists
   ============================================ */
.spec-list {
  list-style: none;
  margin-top: 24px;
}

.spec-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  transition: padding-left 0.2s;
}

.spec-list li:hover {
  padding-left: 8px;
}

.spec-list li:last-child { border-bottom: none; }

.spec-list li strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================
   Steps (numbered)
   ============================================ */
.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 32px;
  max-width: 650px;
}

.steps li {
  counter-increment: step;
  padding: 20px 0 20px 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

/* ============================================
   CTA Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000 !important;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.06);
}

.price-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.price-card .price {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--text);
}

.price-card .price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}

.price-card .price-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-card ul li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.price-card ul li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   Privacy / Legal Pages
   ============================================ */
.legal {
  max-width: 750px;
  padding: 60px 0 100px;
}

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

/* ============================================
   Animations
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.6s ease-out forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 80px 0 50px; }
  .app-hero { padding: 60px 0 40px; }
  .section { padding: 48px 0; }
  .app-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 28px; font-size: 14px; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .app-card { padding: 28px 22px; }
  .feature-card { padding: 22px 18px; }
  .app-hero .icon { font-size: 56px; }
}
