/* ================= GLOBAL STYLES ================= */
body {
  min-height: 100vh;
  scroll-padding-top: 72px;
  background-image: linear-gradient(
    180deg,
    rgba(255,255,255,0.025),
    rgba(0,0,0,0)
  );
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}


/* ================= Brand, logo, inline header, etc ================= */
.site-header {
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  padding: 10px;
  top: 0;
  z-index: 1000;
}

.site-header {
  background: linear-gradient(
    180deg,
    rgba(8, 16, 18, 0.95),
    rgba(8, 16, 18, 0.88)
  );
  backdrop-filter: blur(10px);
}



.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  gap: 32px;
}


nav {
      display: flex;
      gap: 40px;
    }
  
/* nav a {
      padding: 10px 20px;
      border-radius: 6px;
      color: #cbd5e1;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.2s;
    } */



.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
}


.brand img {
  height: 70px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(96,165,250,0.45));
}


.brand:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}


.icon-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}
    
.icon-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}


.site-nav a {
  position: relative;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* underline reveal on hover */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--text-strong);
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .logo-img {
    height: 38px;
    width: 38px;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* ================= HERO Section (with header padding fix) ================= */

  .hero {
  padding: 100px 0 60px;
  width: 100%;
  margin-top: 0;
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--hero-grad-start) 0%,
    var(--hero-grad-mid) 30%,
    var(--hero-grad-end) 100%
  );
    position: relative;
    overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.8rem;

}


.hero-inner p {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

.hero:before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      right: -50%;
      bottom: -50%;
      background: 
        radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
      z-index: 0;
    }

    .hero h1 {
      font-size: 3.2rem;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin: 0 0 20px 0;
      color: white;
      background: linear-gradient(135deg, #f8fafc, #94a3b8);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
   
    .hero h1 span {
      display: block;
      font-weight: 800;
      opacity: 1;
    }

    .hero p {
      color: #cbd5e1;
      font-size: 1.2rem;
      line-height: 1.6;
      margin: 0 auto 32px auto;
      max-width: 800px;
      padding-bottom: 20px;
    }

    .hero-actions {
      margin-top: 36px;
      display: flex;
      justify-content: center;
      gap: 1rem;
    }

/* ---------- hero buttons ---------- */
/* primary */
.btn-primary {
  background: linear-gradient(180deg, #dc9a0c, #f2e182);
  color: var(--btn-text);
  border: 1px solid var(--btn-tertiary-border);
  text-decoration: none;
}

/* secondary */
.btn-secondary {
  background: linear-gradient(180deg, #0c4adc, #7595dc);
  color: var(--btn-text);
  border: 1px solid var(--btn-tertiary-border);
  text-decoration: none;
}

/* tertiary / pricing */
.btn-tertiary {
  background: linear-gradient(180deg, #767a7a, #8fa0a3);
  color: var(--btn-text);
  border: 1px solid var(--btn-tertiary-border);
  box-shadow: 0 2px 12px rgba(5, 138, 199, 0.4);

}

.hero-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.hero-actions a:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}


/* ================= TRUST STRIP (no white space) ================= */
    .trust-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
      gap: 16px;
      padding: 30px 24px;
      background: rgba(170, 226, 236, 0.02);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

     .trust-grid > div {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: #e2e8f0;
      font-weight: 500;
      font-size: 0.95rem;
      padding: 12px;
    }
  
    
/* ================= Feature cards – modern style ================= */

.section-title {
      text-align: center;
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 20px 0 40px 0;
    }

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.feature-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: var(--landing-card);
  border-radius: 14px;
  padding: 1.75rem;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}


.feature-card:hover {
      transform: translateY(-3px);
      border-color: rgba(96, 165, 250, 0.3);
      background: rgba(255, 255, 255, 0.05);
    }

/* Soft glow on hover */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* Card heading */
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f8fafc;
}

/* Card body text */
.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5f5;
  margin: 0;
}

/* feature card accent dot - temp delete*/

.use-case-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.use-case {
  padding: 22px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}


/* ================= Metrices Section ================= */
    .metrics {
      padding: 50px 0;
      background: rgba(0, 0, 0, 0.2);
    }

    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .metric-card {
      text-align: center;
      padding: 20px;
    }

    .metric-value {
      font-size: 2.5rem;
      font-weight: 800;
      color: white;
      margin-bottom: 4px;
      background: linear-gradient(135deg, #60a5fa, #8b5cf6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .metric-label {
      color: #94a3b8;
      font-size: 0.9rem;
      font-weight: 500;
    }
   
/* ================= use Cases ================= */
  
.use-cases {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 1.7rem 1.8rem;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.use-cases h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.8rem;
}


.use-cases h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;

  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.use-cases p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .team-cards {
    grid-template-columns: 1fr;
  }
}


.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

.site-footer {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
  border-top: 1px solid rgba(255,255,255,0.06);
}


.footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

.mobile-menu-toggle {
  display: none;
}


@media (max-width: 768px) {
  .nav-right {
    display: none; /* hide desktop nav */
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;

    flex-direction: column;
    gap: 16px;

    background: var(--surface);
    border-radius: 16px;
    padding: 20px;

    box-shadow:
      0 20px 40px rgba(0,0,0,0.45);

    z-index: 1000;
  }

  .nav-right.open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .mobile-menu-toggle {
    display: block;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
  }
}





.shorten-form {
  max-width: 520px;
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
}

.shorten-form input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal.hidden {
  display: none;
}

.auth-box {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  width: 320px;
}

.auth-box input {
  width: 100%;
  margin: 0.75rem 0;
  padding: 0.5rem;
}

.auth-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-toast.show {
  opacity: 1;
}

#undoBar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  text-align: center;
}

#undoBar {
  display: none;
}

#undoBar.show {
  display: block;
}



.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}


/* ================= CTA Section ================= */
    .cta-section {
      padding: 60px 0;
      background: linear-gradient(135deg, #1e293b, #0f172a);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cta-inner {
      text-align: center;
      max-width: 600px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .cta-inner h2 {
      font-size: 2rem;
      font-weight: 700;
      color: white;
      margin: 0 0 16px 0;
    }

    .cta-inner p {
      color: #cbd5e1;
      font-size: 1.1rem;
      margin: 0 0 32px 0;
    }

    .btn {
      padding: 0.6rem 1.2rem;
      border-radius: 6px;
      border: 1px solid var(--accent);
      background: linear-gradient(180deg, #295648, #6ca2be);
      color: var(--btn-text);
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      box-shadow: 0 2px 12px rgba(5, 138, 199, 0.4);
    }

    .btn:hover {
      opacity: 0.9;
    }


/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* shared */
.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}



/* ================= FOOTER Section ================= */

    .site-footer {
      
      padding: 30px 0;
      border-top: 1px solid rgba(59, 42, 42, 0.08);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 24px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .site-footer p {
      color: #565d67;
      font-size: 0.9rem;
      margin: 0;
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-links a {
      color: #636569;
      font-size: 0.9rem;
      transition: var(--transition-fast);
    }

    .footer-links a:hover {
      color: #046684;
    }

/* THEME TOGGLE */
.theme-toggle {
  margin-left: auto; /* pushes to far right */
  
  width: 36px;
  height: 36px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.8);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}


/* ================= AUTH SLOT ================= */

.auth-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Shared button style */
.auth-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

/* Logged-in state */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-email {
  font-size: 0.8rem;
  opacity: 0.8;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= LOGOUT BUTTON ================= */

#logoutBtn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

/* Hover — subtle, not CTA-like */
#logoutBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Active (click feedback) */
#logoutBtn:active {
  transform: translateY(0.5px);
  opacity: 0.9;
}

/* Optional: slightly muted when idle */
body:not(.signed-in) #logoutBtn {
  display: none;
}

#logoutBtn {
  margin-left: 16px;
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
  #logoutBtn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}