/* ========================================
   PIMAXPRIME – Premium Design
   ======================================== */

/* --- Variables --- */
:root {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #161f30;
  --surface: #1c2333;
  --border: #2d3748;
  --border-hover: #4a5568;
  --text: #f0f4f8;
  --text-muted: #8899aa;
  --text-dim: #556070;
  --accent: #4f9eff;
  --accent-hover: #73b3ff;
  --accent-glow: rgba(79, 158, 255, 0.15);
  --green: #34d399;
  --soon: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --space: 1.5rem;
  --max-width: 1100px;
  --transition: 0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}
.container.narrow { max-width: 760px; }

/* --- Header --- */
.header {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }

/* --- Language switch --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}
.lang-switch a, .lang-switch span {
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--text); background: var(--border); }
.lang-switch .lang-active {
  color: var(--accent);
  background: var(--accent-glow);
}
.lang-switch .lang-sep { color: var(--border); padding: 0; background: none !important; }

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79,158,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #a8c8ff 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-subtitle {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 500px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-glow);
  border: 1px solid rgba(79,158,255,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

/* --- Apps section --- */
.apps {
  padding: 4rem 0;
  flex: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.section-header p {
  color: var(--text-muted);
  margin: 0;
}
.category-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- App Grid --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.app-card:hover {
  border-color: rgba(79, 158, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,158,255,0.1);
  background: var(--bg-card-hover);
}
.app-card-coming { opacity: 0.7; }
.app-card-coming:hover { opacity: 0.9; }

.app-card-inner {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.app-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.app-card-title { flex: 1; }
.app-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.app-card-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-card-footer a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.app-card-footer a:hover { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-store {
  background: var(--accent);
  color: #fff;
}
.btn-store:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,158,255,0.35);
}
.btn-soon {
  background: rgba(245,158,11,0.12);
  color: var(--soon);
  border: 1px solid rgba(245,158,11,0.3);
  cursor: default;
}

/* --- Contact section --- */
.contact {
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}
.contact h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.contact p { color: var(--text-muted); margin: 0; }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent), #6a5aff);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(79,158,255,0.25);
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,158,255,0.4);
  color: #fff;
  text-decoration: none;
}

/* --- Privacy page hero --- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(79,158,255,0.04) 0%, transparent 100%);
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-hero .last-updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Privacy content --- */
.page-content {
  flex: 1;
  padding: 3rem 0;
}
.page-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-content p, .page-content ul, .page-content ol {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.page-content ul, .page-content ol { padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content strong { color: var(--text); }

/* --- Info box --- */
.info-box {
  background: rgba(79,158,255,0.06);
  border: 1px solid rgba(79,158,255,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.info-box strong { color: var(--accent); }
.info-box a { color: var(--accent); text-decoration: none; }

/* --- Data table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
}
.data-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(45,55,72,0.5);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* --- Badges --- */
.badge-platform {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-android { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.25); }
.badge-ios { background: rgba(79,158,255,0.12); color: var(--accent); border: 1px solid rgba(79,158,255,0.25); }
.badge-both { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* --- Policy list --- */
.policy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}
.policy-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.policy-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.policy-name { font-weight: 700; font-size: 0.95rem; }
.policy-desc { font-size: 0.82rem; color: var(--text-muted); }

/* --- Footer --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer p { margin: 0.3rem 0; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .header .container { flex-wrap: wrap; }
  .nav { gap: 1.25rem; flex-wrap: wrap; }
  .hero { padding: 4rem 0 3rem; }
  .apps { padding: 2.5rem 0; }
  .app-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .data-table { display: block; overflow-x: auto; }
  .policy-list { grid-template-columns: 1fr; }
}
