:root {
  --slate: #343E46;
  --teal: #75C4B4;
  --deep-teal: #3F736F;
  --mint: #57A396;
  --bg: #F7FAFC;
  --glass: rgba(255, 255, 255, 0.7);
  --border: rgba(52, 62, 70, 0.12);
  --shadow: 0 24px 60px rgba(52, 62, 70, 0.16);
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, #f1f6fb 45%, #eaf4f2 100%);
  color: var(--slate);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: 'Space Grotesk', sans-serif;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-nav {
  background: linear-gradient(120deg, #2f3941, #3f736f);
  box-shadow: 0 12px 40px rgba(52, 62, 70, 0.25);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.5rem;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #fff;
}

.logo-mark {
  height: 32px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(117, 196, 180, 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero .lead {
  color: rgba(52, 62, 70, 0.75);
}

.hero-card {
  padding: 2.5rem;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.modal-solid {
  background: #ffffff;
  backdrop-filter: none;
}

.hero-card-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  text-align: left;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(52, 62, 70, 0.5);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.qr-preview {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(52, 62, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-grid {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--slate), var(--teal));
  mask-image: radial-gradient(circle, #000 60%, transparent 61%);
  border-radius: 12px;
}

.feature-grid {
  padding: 4rem 0;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(52, 62, 70, 0.08);
  box-shadow: 0 16px 40px rgba(52, 62, 70, 0.08);
  height: 100%;
}

.cta-band {
  margin: 4rem auto 5rem;
  background: linear-gradient(135deg, rgba(63, 115, 111, 0.12), rgba(117, 196, 180, 0.2));
  border: 1px solid rgba(63, 115, 111, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--mint));
  border: none;
  box-shadow: 0 12px 30px rgba(87, 163, 150, 0.35);
  border-radius: 16px;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5ab8a8, #4a8f84);
}

.btn-outline-slate {
  border: 1px solid rgba(52, 62, 70, 0.35);
  color: var(--slate);
  border-radius: 14px;
  font-weight: 600;
}

.btn-outline-slate:hover {
  background: rgba(52, 62, 70, 0.08);
}

.btn-copy {
  border-radius: 999px;
  border: 1px solid rgba(63, 115, 111, 0.4);
  background: rgba(117, 196, 180, 0.18);
  color: var(--deep-teal);
  font-weight: 600;
}

.btn-copy.copied::after {
  content: 'Copied!';
  margin-left: 0.5rem;
  color: var(--deep-teal);
  font-size: 0.75rem;
}

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid rgba(52, 62, 70, 0.2);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(117, 196, 180, 0.25);
}

.auth-section {
  padding: 5rem 0;
}

.dashboard-hero {
  padding: 3rem 0 2rem;
}

.app-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(52, 62, 70, 0.6);
}

.app-table tbody tr {
  border-color: rgba(52, 62, 70, 0.06);
}

.app-table tbody tr:nth-child(even) {
  background: rgba(247, 250, 252, 0.7);
}

.status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.active {
  background: rgba(87, 163, 150, 0.2);
  color: var(--deep-teal);
}

.status-pill.paused {
  background: rgba(52, 62, 70, 0.15);
  color: var(--slate);
}

.badge.bg-soft {
  background: rgba(117, 196, 180, 0.2);
  color: var(--deep-teal);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.mini-chart {
  width: 100%;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.8);
}

.stacked-info {
  display: grid;
  gap: 1rem;
}

.stacked-info .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(52, 62, 70, 0.5);
}

.stacked-info .value {
  font-weight: 600;
}

.qr-image {
  max-width: 220px;
  margin: 0 auto;
}

.app-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(52, 62, 70, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  height: 28px;
  width: auto;
  border-radius: 6px;
}

.auth-logo {
  height: 46px;
  width: auto;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-proof .stat {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-proof .stat-label {
  font-size: 0.8rem;
  color: rgba(52, 62, 70, 0.55);
}

@media (max-width: 991px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-card {
    margin-top: 2rem;
  }

  .hero-proof {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .hero-proof {
    grid-template-columns: 1fr;
  }
}
