/**
 * DQR4 Modern site theme
 * Clean SaaS aesthetic with dark mode support
 */

:root {
  --dqr-navy: #0f172a;
  --dqr-navy-light: #1e293b;
  --dqr-slate: #334155;
  --dqr-muted: #64748b;
  --dqr-border: #e2e8f0;
  --dqr-surface: #ffffff;
  --dqr-surface-alt: #f8fafc;
  --dqr-accent: #3b82f6;
  --dqr-accent-hover: #2563eb;
  --dqr-accent-soft: rgba(59, 130, 246, 0.1);
  --dqr-text: #0f172a;
  --dqr-text-muted: #64748b;
  --dqr-radius: 12px;
  --dqr-radius-lg: 16px;
  --dqr-nav-height: 72px;
  --dqr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dqr-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #3b82f6 100%);
  --dqr-gradient-soft: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

[data-theme="dark"] {
  --dqr-surface: #0f172a;
  --dqr-surface-alt: #1e293b;
  --dqr-border: #334155;
  --dqr-text: #f1f5f9;
  --dqr-text-muted: #94a3b8;
  --dqr-accent-soft: rgba(59, 130, 246, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--dqr-font);
  background-color: var(--dqr-surface);
  color: var(--dqr-text);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
.dqr-display {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dqr-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--dqr-text-muted);
  line-height: 1.7;
}

.dqr-gradient-text {
  background: linear-gradient(135deg, var(--dqr-accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.dqr-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dqr-border);
}

[data-theme="dark"] .dqr-nav {
  background: rgba(15, 23, 42, 0.9);
}

.dqr-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--dqr-nav-height);
  gap: 1rem;
}

.dqr-nav-logo img {
  max-height: 36px;
  width: auto;
}

.dqr-nav-logo h1 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--dqr-text);
}

.dqr-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .dqr-nav-links {
    display: flex;
  }
}

.dqr-nav-links a {
  color: var(--dqr-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.dqr-nav-links a:hover {
  color: var(--dqr-text);
  background: var(--dqr-accent-soft);
}

.dqr-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dqr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dqr-btn-primary {
  background: var(--dqr-accent);
  color: #fff;
  border-color: var(--dqr-accent);
}

.dqr-btn-primary:hover {
  background: var(--dqr-accent-hover);
  border-color: var(--dqr-accent-hover);
  color: #fff;
}

.dqr-btn-outline {
  background: transparent;
  color: var(--dqr-text);
  border-color: var(--dqr-border);
}

.dqr-btn-outline:hover {
  background: var(--dqr-surface-alt);
  color: var(--dqr-text);
}

.dqr-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Mobile menu */
.dqr-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--dqr-border);
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .dqr-nav-toggle {
    display: none;
  }
}

.dqr-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dqr-text);
  border-radius: 1px;
  transition: transform 0.2s;
}

.dqr-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.5);
}

.dqr-nav-drawer.is-open {
  display: block;
}

.dqr-nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--dqr-surface);
  border-left: 1px solid var(--dqr-border);
  padding: 1.5rem;
  overflow-y: auto;
}

.dqr-nav-drawer-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.dqr-nav-drawer-links li {
  border-bottom: 1px solid var(--dqr-border);
}

.dqr-nav-drawer-links a {
  display: block;
  padding: 0.875rem 0;
  color: var(--dqr-text);
  text-decoration: none;
  font-weight: 500;
}

/* Cards */
.dqr-card {
  background: var(--dqr-surface);
  border: 1px solid var(--dqr-border);
  border-radius: var(--dqr-radius-lg);
  padding: 1.5rem;
}

[data-theme="dark"] .dqr-card {
  background: var(--dqr-surface-alt);
}

/* Hero */
.dqr-hero {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.dqr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dqr-gradient-soft);
  pointer-events: none;
}

.dqr-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .dqr-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dqr-shorten-form {
  background: var(--dqr-surface);
  border: 1px solid var(--dqr-border);
  border-radius: var(--dqr-radius-lg);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dqr-shorten-form input {
  flex: 1;
  min-width: 200px;
  border: none;
  background: transparent;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--dqr-text);
  outline: none;
}

.dqr-shorten-form input::placeholder {
  color: var(--dqr-text-muted);
}

/* Feature grid */
.dqr-features {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.dqr-features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dqr-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dqr-feature-card {
  padding: 2rem;
  border: 1px solid var(--dqr-border);
  border-radius: var(--dqr-radius-lg);
  background: var(--dqr-surface-alt);
  transition: border-color 0.2s;
}

.dqr-feature-card:hover {
  border-color: var(--dqr-accent);
}

.dqr-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dqr-accent-soft);
  color: var(--dqr-accent);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.dqr-feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dqr-feature-card p {
  color: var(--dqr-text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* Stats strip */
.dqr-stats {
  padding: 3rem 0;
  background: var(--dqr-navy);
  color: #fff;
}

.dqr-stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 768px) {
  .dqr-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dqr-stat-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.dqr-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* CTA */
.dqr-cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.dqr-cta-box {
  background: var(--dqr-gradient);
  border-radius: var(--dqr-radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: #fff;
}

.dqr-cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dqr-cta-box p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.dqr-cta-box .dqr-btn {
  background: #fff;
  color: var(--dqr-navy);
  border-color: #fff;
}

.dqr-cta-box .dqr-btn:hover {
  background: #f1f5f9;
  color: var(--dqr-navy);
}

/* Footer */
.dqr-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dqr-border);
  background: var(--dqr-surface-alt);
}

.dqr-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dqr-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.dqr-footer h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dqr-text-muted);
  margin-bottom: 1rem;
}

.dqr-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dqr-footer ul li {
  margin-bottom: 0.5rem;
}

.dqr-footer a {
  color: var(--dqr-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.dqr-footer a:hover {
  color: var(--dqr-accent);
}

.dqr-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dqr-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--dqr-text-muted);
}

.dqr-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dqr-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dqr-border);
  border-radius: 8px;
  color: var(--dqr-text-muted);
}

.dqr-footer-social a:hover {
  border-color: var(--dqr-accent);
  color: var(--dqr-accent);
}

/* Utilities */
.dqr-section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dqr-accent);
  margin-bottom: 0.75rem;
}

.dqr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--dqr-accent-soft);
  color: var(--dqr-accent);
  border-radius: 100px;
}

.zindex-200 {
  z-index: 200;
}

/* Bootstrap overrides for minimal flat look */
#dqr4-modern .shadow,
#dqr4-modern .shadow-sm,
#dqr4-modern .shadow-lg {
  box-shadow: none !important;
}

#dqr4-modern .card {
  border: 1px solid var(--dqr-border);
  box-shadow: none;
}
