/* ===========================
   KV-2 PRO — Shared Styles
   icrackz.com
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css');

/* ---- Variables ---- */
:root {
  --bg: #f2f2f7;
  --blue: #007aff;
  --blue-light: rgba(0,122,255,0.12);
  --blue-mid: rgba(0,122,255,0.22);
  --text-primary: #1c1c1e;
  --text-secondary: #48484a;
  --text-tertiary: #8e8e93;
  --divider: rgba(60,60,67,0.12);
  --card-bg: rgba(255,255,255,0.72);
  --card-border: rgba(255,255,255,0.85);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,122,255,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(90,200,250,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(175,82,222,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: rgba(242,242,247,0.82);
  backdrop-filter: blur(30px) saturate(2);
  -webkit-backdrop-filter: blur(30px) saturate(2);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #007aff 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.header-icon img { width: 100%; height: 100%; object-fit: cover; }
.header-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.header-btn {
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.header-btn:active { opacity: 0.82; transform: scale(0.97); }
.header-btn i { font-size: 14px; }

/* ---- Main ---- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  position: relative;
  z-index: 1;
}

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s ease both;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }
.card:nth-child(6) { animation-delay: 0.40s; }
.card:nth-child(7) { animation-delay: 0.47s; }

.card-hero {
  background: linear-gradient(135deg, rgba(0,30,60,0.88) 0%, rgba(0,80,160,0.80) 100%);
  border-color: rgba(0,122,255,0.3);
  color: #fff;
  padding: 28px 24px;
}
.card-hero .card-label { color: rgba(255,255,255,0.65); }
.card-hero h1, .card-hero h2 { color: #fff; }
.card-hero p { color: rgba(255,255,255,0.82); }

/* ---- Typography ---- */
.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-label i { font-size: 13px; }

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Section title inside cards ---- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 18px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}
.section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ---- Feature row ---- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}
.feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.feature-row:first-child { padding-top: 0; }
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 17px;
}
.feature-body { flex: 1; min-width: 0; }
.feature-body strong { font-size: 13.5px; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 2px; }
.feature-body span { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ---- Info row ---- */
.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row i { color: var(--blue); font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.info-row span { color: var(--text-secondary); flex: 1; }

/* ---- Badge pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 3px 3px 3px 0;
}
.badge i { font-size: 13px; }
.badge-green { background: rgba(52,199,89,0.12); color: #1a7a37; }
.badge-orange { background: rgba(255,149,0,0.12); color: #bf6200; }

/* ---- Contact Form ---- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,122,255,0.12);
}
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.form-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 4px;
}
.form-btn:active { opacity: 0.82; transform: scale(0.98); }
.form-btn i { font-size: 17px; }

/* ---- Alert box ---- */
.alert {
  background: rgba(0,122,255,0.08);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}
.alert i { color: var(--blue); font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-warn { background: rgba(255,149,0,0.08); border-color: rgba(255,149,0,0.25); }
.alert-warn i { color: #bf6200; }

/* ---- Prose text (legal pages) ---- */
.prose p { margin-bottom: 12px; font-size: 13.5px; line-height: 1.68; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 18px; margin-bottom: 12px; }
.prose ul li { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 4px; }

/* ---- Page hero strip ---- */
.page-hero {
  padding: 28px 24px 24px;
}
.page-hero .hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0,122,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 26px;
  margin-bottom: 16px;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--divider);
  margin: 16px 0;
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 16px 36px;
  max-width: 640px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 2px 5px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--blue); text-decoration: none; }
.footer-links span { font-size: 12px; color: var(--divider); line-height: 1.8; }
.footer-copy {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 400px) {
  h1 { font-size: 22px; }
  .card { padding: 16px; }
  .page-hero { padding: 22px 18px 18px; }
}
