:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #06b6d4;
  --dark: #1e293b;
  --gray: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.28);
  --border-radius: 18px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #fef3c7 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.top-nav {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-brand {
  font-size: 1.85rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2.2rem;
}

.nav-center a, .nav-right a, .mobile-nav-menu a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color .25s;
}

.nav-center a:hover, .nav-right a:hover, .mobile-nav-menu a:hover { color: var(--primary); }

.nav-right a {
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
}

.nav-right a:hover { background: rgba(37,99,235,0.1); }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--primary); }

.mobile-nav-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  padding: 1.5rem 2rem; flex-direction: column; gap: 1.2rem; text-align: center;
}

/* Hero + Form (index) */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 3rem; /* reduced bottom padding */
  gap: 2rem;
}

.hero h1 {
  font-size: 4.5rem; font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.35rem; color: var(--gray); max-width: 720px; opacity: 0.92; }

.form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3.5rem 5rem;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  transition: transform .25s, border-color .25s;
}

.form-container:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.3);
}

.form-label { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; display: block; }
.form-hint { font-size: 0.95rem; color: var(--gray); margin: 0.5rem 0 2rem; opacity: 0.8; font-weight: 500; }

input[type="text"] {
  width: 100%; padding: 1.35rem 1.6rem; font-size: 1.1rem;
  border: 1px solid var(--glass-border); border-radius: 14px;
  background: rgba(255,255,255,0.75);
  transition: all .3s;
}

input[type="text"]:focus {
  outline: none; border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.checkbox-container {
  margin: 2.8rem 0 2.5rem; display: flex; align-items: flex-start; gap: 1rem;
  font-size: 0.95rem; color: var(--gray);
}

.checkbox-container input { accent-color: var(--primary); margin-top: 0.3rem; }

button[type="submit"] {
  width: 100%; padding: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-weight: 700; font-size: 1.15rem;
  border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
  transition: all .3s;
}

button[type="submit"]:hover { box-shadow: 0 8px 20px rgba(37,99,235,0.3); }

/* Snippets & Results */
.snippet-wrapper {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--border-radius);
  padding: 1.8rem; margin-top: 2rem;
}

.snippet-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.common-badge, .recommended-badge {
  font-size: 0.7rem; padding: 0.3rem 0.8rem; border-radius: 8px; font-weight: 700; color: white;
}

.common-badge { background: var(--primary); }
.recommended-badge { background: var(--secondary); }

textarea {
  width: 100%; padding: 1.3rem 1.5rem; background: rgba(255,255,255,0.85);
  border: 1px solid var(--glass-border); border-radius: 12px;
  font-family: 'Courier New', monospace; font-size: 0.95rem; line-height: 1.5;
  resize: none; color: #1e293b;
}

.copy-under { margin-top: 1rem; text-align: right; }
.copy-under button {
  background: none; border: 1px solid #cbd5e1; color: #64748b;
  padding: 0.5rem 1.2rem; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}

.copy-under button:hover { color: var(--primary); border-color: var(--primary); }
.copy-under button.copied { background: #10b981; border-color: #10b981; color: white; }

.implementation-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.implementation-option.recommended { border: 2px solid var(--primary); }

.success-message, .error-message, .linked-notice {
  padding: 1.3rem; border-radius: 14px; background: rgba(255,255,255,0.6);
  margin-bottom: 2rem; font-weight: 600;
}

.success-message { border-left: 4px solid #10b981; color: #059669; }
.error-message { border-left: 4px solid #ef4444; color: #dc2626; text-align: center; }
.linked-notice { font-size: 0.95rem; color: #059669; margin: -0.5rem 0 1.5rem; }

/* Demo & Public Pages */
.demo-hero, .public-hero { padding: 6rem 2rem; text-align: center; }
.counter-number, .number { font-size: 5.8rem; font-weight: 900; font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.live-counter, .card {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--border-radius);
  padding: 3rem 4rem; display: inline-block;
}

.cards { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin: 3rem 0; }
.card .label { font-size: 1.1rem; color: var(--gray); margin-bottom: 0.5rem; }

/* Footer */
.qubee-footer, footer {
  padding: 3rem 2rem 2rem; text-align: center; color: #64748b; margin-top: auto;
}

.footer-content {
  max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
}

.footer-left p { margin: 0; font-size: 0.98rem; font-weight: 600; color: #475569; }
.footer-right a { color: #64748b; text-decoration: none; font-weight: 600; transition: color .25s; }
.footer-right a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 868px) {
  .nav-center, .nav-right { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav-menu.active { display: flex; }
  .implementation-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3.6rem; }
  .counter-number, .number { font-size: 4.6rem; }
  .form-container { padding: 3rem 2.5rem; }
  .hero { padding: 4rem 2rem 2rem; gap: 1.5rem; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}
/* FINAL FOOTER – EXACTLY AS REQUESTED */
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .25s;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    order: 2;
    gap: 2rem;
  }
}

/* Legal / About / Privacy / Terms pages – matching Tally design */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3.5rem 4rem;
  margin: 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); /* super subtle shadow – no heavy elevation */
}

.page-card h1 {
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); /* exact gradient as homepage hero */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
}

.content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 2.8rem 0 1.2rem;
  color: var(--primary);
}

.content ul {
  padding-left: 1.4rem;
  margin: 1.2rem 0;
}

.content ul li {
  margin-bottom: 0.75rem;
}

.content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.content a:hover {
  color: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-card {
    padding: 2.5rem 2rem;
    margin: 1rem auto;
  }
  .page-card h1 {
    font-size: 2.6rem;
  }
  .container {
    padding: 1rem;
  }
}

/* Public domain stats page - /d/example.com */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin: 3.5rem auto;
  max-width: 800px;
}

.stat-card {
  background: center;
}

.stat-label {
  font-size: 1.15rem;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Make numbers even bigger on larger screens */
@media (min-width: 768px) {
  .stat-number {
    font-size: 6rem !important;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 4rem !important;
  }
  .stats-grid {
    gap: 2rem;
  }
}


/* Live Public Stats Page – /d/domain.com */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 3.5rem auto;
    max-width: 820px;
}

.stat-card {
    text-align: center;
}

.stat-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
}

.stat-number {
    font-size: 5.8rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*#total-count {*/
/*    background: linear-gradient(135deg, #a855f7, #ec4899) !important;*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*}*/

/* Pulse animation when count increases */
.pulse {
    animation: pulseGlow 0.7s ease-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number { font-size: 4.8rem !important; }
    .stats-grid { gap: 2.5rem; }
}

@media (max-width: 480px) {
    .stat-number { font-size: 4.2rem !important; }
}