/* ==========================================================
   BizDash landing page - style.css
   Same brand as the app: bright emerald + glass on deep green.
   Every class name from the old file is kept, so index.html
   works without changes.
   ========================================================== */

/* ---------- Brand colors (change here, the whole page updates) ---------- */
:root {
  --emerald-950: #06140e;
  --emerald-900: #0b2418;
  --emerald-700: #1fa463;
  --emerald-500: #34d67f;
  --emerald-400: #5df0a0;
  --emerald-glow: rgba(52, 214, 127, 0.35);

  --sand-50: #faf8f4;
  --ink: #141814;

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ---------- Base setup ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(52, 214, 127, 0.2), transparent 45%),
    linear-gradient(160deg, var(--emerald-950), var(--emerald-900));
  background-attachment: fixed;
  background-color: var(--emerald-950);
  color: var(--sand-50);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

/* Visible keyboard focus (for accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
}

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  background: rgba(6, 20, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-400);
}

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}

.site-header nav a {
  color: var(--sand-50);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.site-header nav a:hover {
  opacity: 1;
  color: var(--emerald-400);
}

/* Hamburger button - hidden by default on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand-50);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 90px 24px 80px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px var(--emerald-glow));
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  color: var(--emerald-400);
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Main button: solid, bright, glowing */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  font-size: 16px;
  box-shadow:
    0 6px 20px var(--emerald-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta-button:active {
  transform: scale(0.97);
}

/* Second button (for example "Log in"): outlined, quieter */
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--emerald-400);
  padding: 13px 28px;
  border: 1.5px solid var(--emerald-500);
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, transform 0.15s ease;
}

.cta-secondary:active {
  transform: scale(0.97);
}

/* Hover effects only on devices with a mouse */
@media (hover: hover) {
  .cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }

  .cta-secondary:hover {
    background: rgba(52, 214, 127, 0.14);
  }
}

/* ---------- Shared section styling ---------- */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

section[id] {
  scroll-margin-top: 80px;
}

section h2 {
  text-align: center;
  font-size: 28px;
  color: var(--emerald-400);
  margin-bottom: 40px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.feature-card p {
  font-size: 14px;
  opacity: 0.88;
}

/* Lucide icons inside headings */
h3 i,
h3 [data-lucide] {
  vertical-align: middle;
  margin-right: 6px;
  width: 20px;
  height: 20px;
  color: var(--emerald-400);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  text-align: center;
}

.price-card h3 {
  font-size: 16px;
  opacity: 0.88;
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--emerald-400);
  font-variant-numeric: tabular-nums;
}

/* ---------- Testimonials ---------- */
.testimonials {
  text-align: center;
}

.coming-soon {
  opacity: 0.6;
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.85;
  font-size: 14px;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: var(--sand-50);
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.footer-links a:hover {
  color: var(--emerald-400);
  opacity: 1;
}

/* ---------- One page-load moment (logo, headline, text, button) ---------- */
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  animation: pop-in 0.6s ease-out both;
}

.hero h1 {
  animation: fade-up 0.6s 0.15s ease-out both;
}

.hero p {
  animation: fade-up 0.6s 0.3s ease-out both;
}

.hero-actions {
  animation: fade-up 0.6s 0.45s ease-out both;
}

/* ---------- Mobile responsiveness - ONE combined media query ---------- */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 60px 20px 50px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    position: sticky;
    padding: 14px 20px;
  }

  .site-header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 20, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
  }

  .site-header nav.nav-open {
    display: flex;
  }

  .site-header nav a {
    margin: 12px 24px;
  }
}
.site-footer p a {
  color: var(--emerald-400);
  text-decoration: none;
}

.site-footer p a:hover {
  text-decoration: underline;
}

/* ---------- Respect people who turn animations off ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
