/* ============================================================
   PAPADUSTREAM-APK.FR — Global Stylesheet
   Design: Dark app-hub, Android/mobile identity
   Font: Inter (UI) + Space Grotesk (display)
   Accent: #4FC3F7 (Android blue) + #A5D6A7 (safe green)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0c10;
  --bg-2:        #111318;
  --bg-3:        #181b22;
  --bg-card:     #13161d;
  --border:      #1e2230;
  --border-2:    #252938;
  --accent:      #4FC3F7;
  --accent-dim:  rgba(79,195,247,0.12);
  --accent-2:    #A5D6A7;
  --accent-2-dim:rgba(165,214,167,0.12);
  --warn:        #FFB74D;
  --warn-dim:    rgba(255,183,77,0.10);
  --danger:      #EF5350;
  --danger-dim:  rgba(239,83,80,0.10);
  --text:        #E8EAED;
  --text-2:      #9AA0B2;
  --text-3:      #5C6278;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --font-ui:     'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-2); }

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: 32px; width: auto; }
.logo-badge {
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(79,195,247,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--bg-3);
  text-decoration: none;
}
.btn-header {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #0a0c10 !important;
  padding: 7px 16px !important;
  border-radius: 7px;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-header:hover { opacity: 0.88; background: var(--accent); text-decoration: none !important; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb li + li::before { content: '/'; margin-right: 4px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #0a0c10;
}
.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn--green {
  background: var(--accent-2);
  color: #0a0c10;
}
.btn--lg {
  font-size: 16px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
}

/* ── Hero ── */
.hero {
  padding: 60px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 320px at 50% 0%, rgba(79,195,247,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 80% 100%, rgba(165,214,167,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79,195,247,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stat span { font-size: 12.5px; color: var(--text-3); }

/* ── Section ── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 8px; }
.section-sub { color: var(--text-2); margin-bottom: 32px; max-width: 560px; }

/* ── Cards ── */
.cards { display: grid; gap: 16px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.card--accent { border-color: rgba(79,195,247,0.25); }
.card--green  { border-color: rgba(165,214,167,0.25); }
.card--warn   { border-color: rgba(255,183,77,0.25); background: var(--warn-dim); }
.card--danger { border-color: rgba(239,83,80,0.25); background: var(--danger-dim); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: var(--bg-3);
}
.card-icon--blue  { background: var(--accent-dim); }
.card-icon--green { background: var(--accent-2-dim); }
.card-icon--warn  { background: var(--warn-dim); }

.card h3 { margin-bottom: 8px; }
.card p  { font-size: 14px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
}
.card-link:hover { text-decoration: underline; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  position: relative;
}
.step:not(:last-child) .step-line {
  position: absolute;
  left: 22px;
  top: 48px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}
.step-body { padding-bottom: 32px; padding-top: 10px; }
.step-body h3 { margin-bottom: 8px; }
.step-body p  { font-size: 14px; }

/* ── Code inline ── */
code {
  font-family: 'Fira Mono', 'Cascadia Code', monospace;
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent-2);
  white-space: nowrap;
}

/* ── Code block ── */
.code-block {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent-2);
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.6;
}

/* ── Alert / Callout ── */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid;
  margin: 20px 0;
}
.callout--warn  { background: var(--warn-dim);   border-color: var(--warn);   }
.callout--safe  { background: var(--accent-2-dim); border-color: var(--accent-2); }
.callout--info  { background: var(--accent-dim); border-color: var(--accent); }
.callout--danger{ background: var(--danger-dim); border-color: var(--danger); }
.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.callout-body p { font-size: 14px; margin-top: 4px; }
.callout-body strong { font-weight: 600; color: var(--text); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-q .chevron {
  font-size: 18px;
  color: var(--text-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.faq-a p + p { margin-top: 10px; }
.faq-item.open .faq-a { display: block; }

/* ── Table ── */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--bg-3); }
th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-2); }
.check { color: var(--accent-2); font-weight: 700; }
.cross  { color: var(--danger); }
.maybe  { color: var(--warn); }

/* ── CTA Block ── */
.cta-block {
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(79,195,247,0.06) 100%);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  margin: 48px 0 0;
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block p  { margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12.5px; color: var(--text-3); }
.footer-bottom a { color: var(--text-3); font-size: 12.5px; }
.footer-bottom a:hover { color: var(--text-2); }
.footer-links { display: flex; gap: 16px; }

/* ── Platform badge ── */
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid;
}
.platform-tag--android { color: #A5D6A7; border-color: rgba(165,214,167,0.3); background: rgba(165,214,167,0.08); }
.platform-tag--ios     { color: #90CAF9; border-color: rgba(144,202,249,0.3); background: rgba(144,202,249,0.08); }
.platform-tag--web     { color: #CE93D8; border-color: rgba(206,147,216,0.3); background: rgba(206,147,216,0.08); }

/* ── Risk meter ── */
.risk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.risk-label { font-size: 13px; color: var(--text-2); width: 100px; flex-shrink: 0; }
.risk-track {
  flex: 1;
  height: 6px;
  background: var(--border-2);
  border-radius: 3px;
  overflow: hidden;
}
.risk-fill {
  height: 100%;
  border-radius: 3px;
}
.risk-fill--low    { background: var(--accent-2); width: 20%; }
.risk-fill--medium { background: var(--warn);     width: 55%; }
.risk-fill--high   { background: var(--danger);   width: 90%; }
.risk-value { font-size: 12px; color: var(--text-3); width: 50px; text-align: right; }

/* ── Hamburger / mobile nav ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 22px;
  padding: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 12px; }
  .btn-header { display: none; }

  .hero { padding: 40px 0 32px; }
  .hero-stats { gap: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .container, .container--wide { padding: 0 16px; }
  .cta-block { padding: 32px 20px; }
  .step { grid-template-columns: 40px 1fr; }
  .step-num { width: 38px; height: 38px; font-size: 13px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .cards--3   { grid-template-columns: 1fr; }
}
