/* DevicePulse — Landing Page */
:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222633;
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --accent: #00d4aa;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --border: #2a2d3a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 12px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,17,23,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 20px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

.logo span { color: var(--primary); }

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none; text-decoration: none;
}

.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-primary {
  background: var(--primary); color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent); color: var(--bg); font-weight: 700;
}

.btn-accent:hover { background: #00b894; color: var(--bg); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-screenshot {
  margin-top: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}

.hero-screenshot img {
  width: 100%; display: block;
}

.hero-screenshot .placeholder {
  width: 100%; height: 400px;
  background: linear-gradient(135deg, var(--bg-card), #252838);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}

/* ===== STATS ===== */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}

.stat-item h3 {
  font-size: 36px; font-weight: 800; color: var(--accent);
}

.stat-item p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }

.section-header {
  text-align: center; margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px; font-weight: 700; margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 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 {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(108,99,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}

.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px; counter-reset: step;
}

.step {
  text-align: center; padding: 32px 24px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 20px;
}

.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; align-items: start;
}

.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(108,99,255,0.2);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}

.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.price-card .price { font-size: 40px; font-weight: 800; margin: 16px 0 4px; }
.price-card .price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-card .price-note { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

.price-features { list-style: none; margin-bottom: 24px; }
.price-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ===== SECURITY ===== */
.security-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.security-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}

.security-item .icon { font-size: 32px; margin-bottom: 8px; }
.security-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.security-item p { color: var(--text-muted); font-size: 12px; }

/* ===== CTA ===== */
.cta-section {
  text-align: center; padding: 80px 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(0,212,170,0.05));
  border-radius: var(--radius);
  margin: 40px 0;
}

.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }

/* ===== TRIAL FORM ===== */
.trial-form {
  max-width: 440px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}

.trial-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.trial-form .subtitle { color: var(--text-muted); font-size: 13px; text-align: center; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 4px;
}

.form-group input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--primary); }

.form-msg {
  text-align: center; font-size: 13px; margin-top: 12px; display: none;
}

.form-msg.success { color: var(--success); display: block; }
.form-msg.error { color: var(--danger); display: block; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}

.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 8px; max-width: 280px; }

.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
}

.lang-switch { display: flex; gap: 8px; }
.lang-switch button {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px;
}
.lang-switch button.active { border-color: var(--primary); color: var(--text); }

/* ===== MOBILE ===== */
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: block; }
  nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 12px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
