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

:root {
  --blue: #185FA5;
  --blue-dark: #0C447C;
  --blue-light: #E6F1FB;
  --green: #1D9E75;
  --red: #E24B4A;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-hint: #9ca3af;
  --border: rgba(0,0,0,0.1);
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --radius: 8px;
  --radius-lg: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-secondary);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS */
.btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: var(--bg-secondary);
}

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

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

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 640px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* FEATURES */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.feat-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.step {
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* PRICING */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.plan.featured {
  border: 2px solid var(--blue);
}

.plan-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: inline-block;
  margin-bottom: 12px;
}

.plan h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  font-size: 36px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: var(--text);
}

.price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

.price small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--green);
  margin-top: 2px;
}

.plan ul {
  list-style: none;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan li .check { color: var(--green); }
.plan li .cross { color: var(--red); }

.roi-note {
  background: #EAF3DE;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: #3B6D11;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA BOTTOM */
.cta-section {
  text-align: center;
  padding: 64px 24px;
  background: var(--blue);
  color: #fff;
}

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

.cta-section p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 32px;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
  font-weight: 600;
}

.btn-white:hover {
  background: #f0f4ff;
  color: var(--blue-dark);
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* DASHBOARD */
.dash-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  gap: 0;
}

.dash-tab {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.dash-tab:hover { color: var(--text); }
.dash-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.dash-body {
  padding: 32px;
  max-width: 1000px;
}

.plan-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 28px;
}

.plan-bar {
  width: 160px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.plan-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.qr-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-card-name {
  font-size: 15px;
  font-weight: 600;
}

.qr-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-card-actions {
  display: flex;
  gap: 8px;
}

.qr-card-actions button {
  flex: 1;
  font-size: 13px;
  padding: 7px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s;
}

.qr-card-actions button:hover { background: var(--bg-secondary); }

.new-qr-btn {
  border: 1.5px dashed var(--border);
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  min-height: 240px;
  transition: background 0.15s;
  width: 100%;
  font-family: inherit;
}

.new-qr-btn:hover { background: var(--bg-secondary); }

.new-qr-btn .icon { font-size: 32px; color: var(--text-hint); }
.new-qr-btn span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 380px;
  max-width: 90vw;
}

.modal h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

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

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

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

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .plans { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 14px 16px; }
  .dash-body { padding: 16px; }
}
