/* ============================================================
   QUARDIAN — TRON ARES DESIGN SYSTEM
   Dark background, cyan (#00D4FF) primary, orange (#FF6B00) accent
   ============================================================ */

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

:root {
  --bg-deep:    #020408;
  --bg-surface: #060C18;
  --bg-card:    #0A1424;
  --bg-card-hover: #0E1A30;
  --cyan:       #00D4FF;
  --cyan-dim:   rgba(0, 212, 255, 0.15);
  --cyan-glow:  rgba(0, 212, 255, 0.4);
  --orange:     #FF6B00;
  --orange-dim: rgba(255, 107, 0, 0.15);
  --orange-glow:rgba(255, 107, 0, 0.4);
  --red:        #FF3B4E;
  --green:      #00E676;
  --purple:     #B388FF;
  --text:       #E0E8F0;
  --text-dim:   #6B7D95;
  --text-muted: #3A4A5E;
  --border:     rgba(0, 212, 255, 0.08);
  --radius:     12px;
  --radius-lg:  20px;
  --container:  1200px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--cyan-dim);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--cyan); color: var(--bg-deep);
  box-shadow: 0 0 20px var(--cyan-glow), 0 0 60px rgba(0,212,255,0.1);
}
.btn-primary:hover {
  background: #fff; color: var(--bg-deep);
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 80px rgba(0,212,255,0.2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
}
.btn-ghost:hover { background: var(--cyan-dim); color: #fff; }
.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-android {
  background: var(--green); color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(0,230,118,0.4), 0 0 60px rgba(0,230,118,0.1);
}
.btn-android:hover {
  background: #fff; color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(0,230,118,0.4), 0 0 80px rgba(0,230,118,0.2);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(2, 4, 8, 0.95); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-logo-icon {
  font-size: 1.5rem; color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.nav-logo-text {
  font-family: var(--font); font-weight: 300;
  font-size: 1.1rem; letter-spacing: 6px;
  color: var(--cyan);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim); font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  background: var(--cyan-dim) !important;
  color: var(--cyan) !important;
  padding: 8px 20px !important; border-radius: 8px !important;
}
.nav-cta:hover { background: var(--cyan) !important; color: var(--bg-deep) !important; }
.nav-cta-active {
  background: var(--cyan) !important; color: var(--bg-deep) !important;
  padding: 8px 20px !important; border-radius: 8px !important;
  font-weight: 700 !important;
}
.nav-cta-active:hover { background: #fff !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--cyan); margin: 5px 0;
  transition: all 0.3s;
}

/* --- Language Picker --- */
.lang-picker { position: relative; margin-left: 16px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim); padding: 6px 12px;
  border-radius: 8px; cursor: pointer;
  font-size: 0.8rem; font-family: var(--font);
  transition: all 0.2s;
}
.lang-btn:hover { border-color: rgba(0,212,255,0.2); color: var(--cyan); }
.lang-btn svg { opacity: 0.5; }
#langFlag { font-size: 1.1rem; line-height: 1; }
#langCode { font-weight: 600; letter-spacing: 1px; font-size: 0.7rem; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px;
  min-width: 180px; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  max-height: 360px; overflow-y: auto;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem;
  color: var(--text-dim); transition: all 0.15s;
  border: none; background: none; width: 100%;
  font-family: var(--font); text-align: left;
}
.lang-option:hover { background: var(--cyan-dim); color: var(--cyan); }
.lang-option.active { color: var(--cyan); background: var(--cyan-dim); }
.lang-option-flag { font-size: 1.2rem; width: 24px; text-align: center; }
.lang-option-name { flex: 1; }
.lang-option-code { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 1px; opacity: 0.5; }

/* --- RTL Support --- */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-picker { margin-left: 0; margin-right: 16px; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-actions { justify-content: flex-end; }
[dir="rtl"] .hero-stats { justify-content: flex-end; }
[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .section-subtitle { margin-right: 0; margin-left: auto; }
[dir="rtl"] .hipaa-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .hipaa-list li::before { left: auto; right: 0; }
[dir="rtl"] .price-features li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .price-features li::before { left: auto; right: 0; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .news-card { text-align: right; }
[dir="rtl"] .step-card { text-align: right; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}
.hero-content {
  max-width: var(--container); margin: 0 auto;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); padding: 6px 16px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px; margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 24px;
}
.hero-highlight {
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0,212,255,0.15);
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 640px; line-height: 1.7;
  margin-bottom: 36px;
}
.hero-subtitle em { color: var(--orange); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  display: block;
  font-size: 2rem; font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-dim);
  line-height: 1.4;
}

.hero-visual {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 500px; height: 500px;
  opacity: 0.15;
}
.scope-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid var(--cyan);
}
.scope-ring-outer { inset: 0; }
.scope-ring-inner { inset: 30%; }
.scope-crosshair { position: absolute; background: var(--cyan); }
.scope-crosshair-h { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-0.5px); }
.scope-crosshair-v { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px); }
.scope-bug {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem; color: var(--orange);
  text-shadow: 0 0 30px var(--orange-glow);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Ticker --- */
.ticker {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 12px 0;
}
.ticker-track {
  display: flex; gap: 60px;
  animation: scroll 60s linear infinite;
  white-space: nowrap; width: max-content;
}
.ticker-item {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.5px;
  color: var(--text-dim);
}
.ticker-danger { color: var(--orange); font-weight: 600; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-dim);
  max-width: 640px; margin: 0 auto;
}

/* --- Features --- */
.features { padding: 120px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.15);
  box-shadow: 0 0 30px rgba(0,212,255,0.05);
  transform: translateY(-2px);
}
.feature-card-large { grid-column: span 2; }
.feature-card-ai {
  background: linear-gradient(135deg, var(--bg-card), rgba(179,136,255,0.06));
  border-color: rgba(179,136,255,0.15);
}
.feature-card-ai:hover {
  border-color: rgba(179,136,255,0.3);
  box-shadow: 0 0 30px rgba(179,136,255,0.08);
}
.feature-icon {
  font-size: 1.8rem; margin-bottom: 16px;
  filter: grayscale(0.2);
}
.feature-card h3 {
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.6;
}
.feature-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.feature-tags span {
  font-family: var(--mono); font-size: 0.65rem;
  padding: 3px 10px; border-radius: 100px;
  background: var(--cyan-dim); color: var(--cyan);
  letter-spacing: 0.5px;
}

/* --- HIPAA --- */
.hipaa {
  padding: 120px 0;
  background:
    linear-gradient(135deg, rgba(0,100,255,0.03), transparent),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hipaa-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hipaa-content p {
  color: var(--text-dim); margin: 16px 0 24px;
  line-height: 1.7;
}
.hipaa-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.hipaa-list li {
  font-size: 0.9rem; color: var(--text-dim);
  padding-left: 24px; position: relative; line-height: 1.5;
}
.hipaa-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: #4488FF; font-weight: 700;
}
.hipaa-list strong { color: #fff; }
.hipaa-visual {
  display: flex; justify-content: center; align-items: center;
}
.hipaa-badge {
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px solid #4488FF;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(68,136,255,0.15), 0 0 80px rgba(68,136,255,0.05);
}
.hipaa-badge-icon {
  font-size: 3rem; color: #4488FF;
  margin-bottom: 8px;
}
.hipaa-badge-text {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 600; letter-spacing: 3px;
  color: #4488FF; text-align: center;
  line-height: 1.4;
}

/* --- Patent --- */
.patent {
  padding: 120px 0;
  background:
    linear-gradient(135deg, rgba(0,212,255,0.03), transparent),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.patent-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.patent-content p {
  color: var(--text-dim); margin: 16px 0 24px;
  line-height: 1.7;
}
.patent-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.patent-list li {
  font-size: 0.9rem; color: var(--text-dim);
  padding-left: 24px; position: relative; line-height: 1.5;
}
.patent-list li::before {
  content: '⬡'; position: absolute; left: 0;
  color: var(--cyan); font-weight: 700;
}
.patent-list strong { color: #fff; }
.patent-subtitle {
  font-size: 1rem; font-weight: 700;
  color: var(--cyan); margin: 28px 0 8px;
  letter-spacing: 0.5px;
}
.patent-meta {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.patent-meta-row {
  display: flex; justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.patent-meta-row:last-child { border-bottom: none; }
.patent-meta-row span:first-child {
  color: var(--text-dim); font-weight: 500;
}
.patent-meta-row span:last-child {
  color: #fff; font-family: var(--mono);
  font-size: 0.8rem; text-align: right;
}
.patent-visual {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 24px;
}
.patent-visual-caption {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim); text-align: center;
  line-height: 1.6; letter-spacing: 0.5px;
}
.patent-badge {
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0,212,255,0.05);
}
.patent-badge-icon {
  font-size: 3rem; color: var(--cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--cyan-glow);
}
.patent-badge-text {
  font-family: var(--mono); font-size: 1rem;
  font-weight: 600; letter-spacing: 3px;
  color: var(--cyan); text-align: center;
  line-height: 1.4;
}
.patent-badge-number {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--text-dim); margin-top: 8px;
  letter-spacing: 1px;
}
.hero-patent-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--cyan); margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  background: rgba(0,212,255,0.06);
}
[dir="rtl"] .patent-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .patent-list li::before { left: auto; right: 0; }
@media (max-width: 768px) {
  .patent-grid { grid-template-columns: 1fr; text-align: center; }
  .patent-list { align-items: center; }
  .patent-list li { text-align: left; }
}

/* --- Threat Stats --- */
.threats { padding: 120px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-2px);
}
.stat-card-accent {
  background: linear-gradient(135deg, var(--bg-card), rgba(0,212,255,0.05));
  border-color: rgba(0,212,255,0.12);
}
.stat-number {
  font-size: 3rem; font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-card-accent .stat-number { color: var(--orange); text-shadow: 0 0 30px var(--orange-glow); }
.stat-label { font-size: 0.9rem; color: var(--text-dim); line-height: 1.4; }
.stat-source { font-family: var(--mono); font-size: 0.65rem; color: var(--text-muted); margin-top: 12px; }

/* --- News --- */
.news {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.news-filters {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 48px; flex-wrap: wrap;
}
.news-filter {
  font-family: var(--mono); font-size: 0.75rem;
  padding: 8px 20px; border-radius: 100px;
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.5px;
}
.news-filter:hover { color: var(--cyan); border-color: rgba(0,212,255,0.2); }
.news-filter.active {
  background: var(--cyan-dim); color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.news-card.hidden { display: none; }
.news-card:hover {
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-2px);
}
.news-card-tag {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 1.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 12px;
  width: fit-content;
}
.news-tag-red { background: rgba(255,59,78,0.12); color: var(--red); }
.news-tag-orange { background: var(--orange-dim); color: var(--orange); }
.news-tag-cyan { background: var(--cyan-dim); color: var(--cyan); }
.news-tag-purple { background: rgba(179,136,255,0.12); color: var(--purple); }

.news-card time {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-muted); margin-bottom: 10px;
  display: block;
}
.news-card h3 {
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  line-height: 1.4;
}
.news-card p {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.6; flex: 1;
  margin-bottom: 16px;
}
.news-link {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--cyan); font-weight: 500;
}
.news-link:hover { color: #fff; }
.news-load-more { text-align: center; margin-top: 40px; }

/* News loading skeleton */
.news-loading {
  display: contents;
}
.news-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.news-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.03) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* News last-updated label */
.news-last-updated {
  text-align: center;
  margin-top: 16px;
}
.news-updated-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* --- How It Works --- */
.how-it-works {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: flex; align-items: flex-start;
  gap: 0; justify-content: center;
}
.step-card {
  flex: 1; max-width: 260px;
  text-align: center; padding: 24px;
}
.step-number {
  font-family: var(--mono); font-size: 2.5rem;
  font-weight: 800; color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.step-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.step-connector {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin-top: 50px; flex-shrink: 0;
}

/* --- Pricing --- */
.pricing {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative; text-align: center;
  transition: all 0.3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card-featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,212,255,0.08);
  transform: scale(1.03);
}
.price-card-featured:hover { transform: scale(1.03) translateY(-4px); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--bg-deep);
  font-family: var(--mono); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 2px;
  padding: 4px 16px; border-radius: 100px;
}
.price-tier {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 3px; color: var(--text-dim);
  margin-bottom: 8px;
}
.price-amount {
  font-size: 3rem; font-weight: 900; color: #fff;
  line-height: 1;
}
.price-card-featured .price-amount { color: var(--cyan); }
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; }
.price-features {
  list-style: none; text-align: left;
  margin-bottom: 28px;
}
.price-features li {
  font-size: 0.85rem; color: var(--text-dim);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  padding-left: 20px; position: relative;
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--cyan); font-weight: 700; font-size: 0.8rem;
}
.price-features li strong { color: #fff; }
.price-features li:last-child { border-bottom: none; }

/* --- Download CTA --- */
.download {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06), transparent 60%),
    var(--bg-deep);
}
.download h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: #fff;
  margin-bottom: 16px;
}
.download-content > p {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 560px; margin: 0 auto 36px;
}
.download-buttons { margin-bottom: 20px; }
.download-note { font-size: 0.75rem; color: var(--text-muted); }

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .nav-logo-icon { font-size: 1.2rem; }
.footer-brand .nav-logo-text { font-size: 0.9rem; letter-spacing: 4px; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 2px; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 4px;
}
.footer-col a { color: var(--text-dim); font-size: 0.85rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px; text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.feature-card, .stat-card, .news-card, .step-card, .price-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.visible, .stat-card.visible, .news-card.visible,
.step-card.visible, .price-card.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-card-large { grid-column: span 1; }
  .hipaa-grid { grid-template-columns: 1fr; }
  .hipaa-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card-featured { transform: none; }
  .price-card-featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   QR GENERATOR PAGE
   ============================================================ */
.qrg-hero {
  padding: 120px 0 40px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06), transparent 60%),
    var(--bg-deep);
}
.qrg-main { padding: 0 0 80px; }
.qrg-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.qrg-controls {
  display: flex; flex-direction: column; gap: 24px;
}
.qrg-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.qrg-label {
  display: block; font-weight: 600; font-size: 0.85rem;
  color: var(--cyan); margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.qrg-label-sm {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 6px;
}
.qrg-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
  margin-bottom: 12px;
}
.qrg-input:focus { border-color: var(--cyan); }
.qrg-input::placeholder { color: var(--text-muted); }
.qrg-textarea { resize: vertical; line-height: 1.5; }
.qrg-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='%236B7D95' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.qrg-select-sm { font-size: 0.8rem; padding: 8px 32px 8px 10px; }
.qrg-checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-dim);
  cursor: pointer; margin-top: 4px;
}
.qrg-checkbox-row input[type="checkbox"] {
  accent-color: var(--cyan); width: 16px; height: 16px;
}
.qrg-row { display: flex; gap: 12px; }
.qrg-col { flex: 1; }
.hidden { display: none !important; }

/* Type buttons */
.qrg-type-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.qrg-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; border-radius: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  font-family: var(--font); font-size: 0.75rem; font-weight: 500;
  transition: all 0.2s;
}
.qrg-type-btn:hover { border-color: rgba(0,212,255,0.2); color: var(--cyan); }
.qrg-type-btn.active {
  background: var(--cyan-dim); border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}
.qrg-type-icon { font-size: 1.3rem; }

/* Customization */
.qrg-custom-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.qrg-custom-item { display: flex; flex-direction: column; }
.qrg-color-wrap {
  display: flex; align-items: center; gap: 8px;
}
.qrg-color-input {
  width: 36px; height: 36px; border: none; cursor: pointer;
  background: none; border-radius: 6px;
  padding: 0;
}
.qrg-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.qrg-color-input::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 6px; }
.qrg-color-hex {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
}

/* Presets */
.qrg-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.qrg-preset {
  display: flex; gap: 3px; padding: 6px 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.qrg-preset:hover { border-color: rgba(0,212,255,0.2); }
.qrg-preset-swatch {
  width: 18px; height: 18px; border-radius: 4px;
}

/* Preview */
.qrg-preview {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 88px;
}
.qrg-preview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.qrg-preview-empty {
  text-align: center; color: var(--text-muted);
}
.qrg-preview-icon {
  font-size: 3rem; color: var(--cyan); opacity: 0.2;
  display: block; margin-bottom: 12px;
}
.qrg-preview-empty p { font-size: 0.9rem; }
.qrg-canvas {
  max-width: 100%; height: auto;
  border-radius: 8px; image-rendering: pixelated;
}
.qrg-download-row {
  display: flex; gap: 12px;
}
.qrg-download-row .btn { flex: 1; justify-content: center; }

/* Security tip */
.qrg-tip {
  display: flex; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.qrg-tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.qrg-tip strong {
  display: block; font-size: 0.85rem; color: var(--cyan);
  margin-bottom: 4px;
}
.qrg-tip p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* Blocked state */
.qrg-blocked {
  text-align: center; padding: 20px 0;
}
.qrg-blocked-icon {
  font-size: 3rem; color: var(--red);
  text-shadow: 0 0 30px rgba(255,59,78,0.4);
  margin-bottom: 12px;
}
.qrg-blocked h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--red); margin-bottom: 8px;
}
.qrg-blocked-reason {
  font-size: 0.9rem; color: var(--text-dim);
  margin-bottom: 16px;
}
.qrg-blocked-warnings {
  list-style: none; text-align: left;
  background: rgba(255,59,78,0.06);
  border: 1px solid rgba(255,59,78,0.15);
  border-radius: 8px; padding: 16px 16px 16px 20px;
  margin-bottom: 16px;
}
.qrg-blocked-warnings li {
  font-size: 0.8rem; color: var(--text-dim);
  padding: 4px 0 4px 16px; position: relative;
  line-height: 1.5;
}
.qrg-blocked-warnings li::before {
  content: '\2716'; position: absolute; left: 0;
  color: var(--red); font-size: 0.7rem;
}
.qrg-blocked-footer {
  font-size: 0.75rem; color: var(--text-muted);
  font-style: italic;
}

/* CTA */
.qrg-cta {
  padding: 80px 0; text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,212,255,0.04), transparent 60%),
    var(--bg-surface);
}
.qrg-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.qrg-cta em { color: var(--orange); font-style: normal; }
.qrg-cta p {
  font-size: 1rem; color: var(--text-dim);
  max-width: 540px; margin: 0 auto 28px;
}

@media (max-width: 768px) {
  .qrg-layout { grid-template-columns: 1fr; }
  .qrg-preview { position: static; }
  .qrg-type-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
  .qrg-custom-grid { grid-template-columns: 1fr; }
  .qrg-download-row { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(2,4,8,0.98);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .lang-picker { margin-left: 8px; }
  [dir="rtl"] .lang-picker { margin-left: 0; margin-right: 8px; }

  .hero { padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stat { flex: 1; min-width: 100px; }

  .features, .threats, .news, .hipaa, .how-it-works, .pricing, .download { padding: 80px 0; }

  .features-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--cyan), transparent); margin: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
