/* ============================================
   DesktopDB Landing - Modern Design System
   ============================================ */

:root {
  --db-primary: #2563eb;
  --db-primary-dark: #1e40af;
  --db-accent: #0ea5e9;
  --db-dark: #0f172a;
  --db-slate: #1e2937;
  --db-text: #0f172a;
  --db-muted: #64748b;
  --db-light: #f8fafc;
  --db-card: #ffffff;
  --db-border: #e2e8f0;
  --db-success: #10b981;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--db-text);
  background-color: #ffffff;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--db-border);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--db-dark) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  font-weight: 800;
  color: var(--db-primary);
}

.nav-link {
  font-weight: 500;
  color: var(--db-slate) !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}

.nav-link:hover {
  color: var(--db-primary) !important;
}

/* General section spacing */
section {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--db-dark) 0%, #1e2937 100%);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.hero .btn {
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 0.6rem;
}

/* Feature Cards */
#features h2 {
  font-weight: 700;
  margin-bottom: 2.75rem;
}

.feature-card {
  background: var(--db-card);
  border: 1px solid var(--db-border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

.feature-icon {
  font-size: 2.25rem;
  color: var(--db-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #eff6ff;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--db-muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* Pricing Section */
#pricing {
  background-color: var(--db-light);
}

#pricing h2 {
  font-weight: 700;
}

.tier-card {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: 1rem;
  padding: 2rem 1.85rem 2.25rem;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

.tier-card.popular {
  border-color: var(--db-primary);
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.1);
  transform: scale(1.01);
}

.tier-card .badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--db-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.95rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-card h3 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.tier-price {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--db-dark);
  margin: 0.5rem 0 0.15rem;
}

.tier-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}

.tier-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--db-muted);
}

.tier-card .price-note {
  color: var(--db-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.tier-card ul li {
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.96rem;
}

.tier-card ul li::before {
  content: "✓";
  color: var(--db-success);
  font-weight: 700;
  flex-shrink: 0;
}

.tier-card .btn {
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  border-radius: 0.6rem;
}

/* Signup Section */
#signup {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--db-primary) 100%);
  color: white;
}

#signup h2 {
  font-weight: 700;
}

#signup .lead {
  color: #bfdbfe;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

#signup .form-control {
  height: 3.15rem;
  border-radius: 0.6rem 0 0 0.6rem;
  border: none;
  font-size: 1rem;
}

#signup .btn {
  border-radius: 0 0.6rem 0.6rem 0;
  font-weight: 600;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* Download / Final CTA */
#download {
  background: var(--db-dark);
  color: white;
  text-align: center;
}

#download h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#download .lead {
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

#download .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.65rem;
}

/* Utility & small polish */
.btn-primary {
  background-color: var(--db-primary);
  border-color: var(--db-primary);
}

.btn-primary:hover {
  background-color: var(--db-primary-dark);
  border-color: var(--db-primary-dark);
}

.btn-outline-primary {
  color: var(--db-primary);
  border-color: var(--db-primary);
}

.btn-outline-primary:hover {
  background-color: var(--db-primary);
  color: white;
}

.text-muted {
  color: var(--db-muted) !important;
}

/* Make the layout container play nice with full sections */
main {
  width: 100%;
}

/* Footer */
footer {
  background: #0f172a;
  color: #64748b;
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

footer a {
  color: #64748b;
  text-decoration: none;
}

footer a:hover {
  color: #94a3b8;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .hero h1 { font-size: 2.35rem; }
  .tier-price { font-size: 2.4rem; }
  .navbar-brand { font-size: 1.2rem; }
}