/* ============================================================
   MAXITELLER – Shared CSS
   Bootstrap 5 dark-green theme overrides + custom components
============================================================ */

/* ── Custom properties ─────────────────────────────────── */
:root {
  --primary: #16A34A;
  --primary-rgb: 22, 163, 74;
  --primary-light: rgba(22, 163, 74, 0.12);
  --accent: #0D9488;
  --success: #22C55E;
  --bg: #060E08;
  --surface: #0E1811;
  --surface-2: #111c13;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e2e8f0;
  --text-muted: rgba(226, 232, 240, 0.55);
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Bricolage Grotesque', sans-serif;
}
section { overflow: hidden; }
.text-muted { color: var(--text-muted) !important; }
a { color: var(--primary); }
a:hover { color: #15803d; }

/* ── Bootstrap overrides ───────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #15803d;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.25);
}
.btn-outline-light:hover { color: var(--bg); }

/* ── Gradient text ─────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section labels / shared ───────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 580px;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  background: rgba(6, 14, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22,163,74,0.4);
}
.navbar-brand .brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  transition: color 0.2s;
}
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; }
.navbar-toggler { border: 1px solid var(--border); }

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  background: rgba(22,163,74,0.18);
  top: -120px; left: -160px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(13,148,136,0.1);
  bottom: -80px; right: -80px;
}
.hero-bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(22,163,74,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
}
.phone-frame {
  width: 272px; height: 552px;
  background: var(--surface);
  border-radius: 44px;
  border: 8px solid #1a2f1c;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #0a160c;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-screen {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.phone-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,163,74,0.4);
}
.phone-preview-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Floating notification card */
.float-card {
  position: absolute;
  left: -16px; top: 36%;
  background: rgba(14, 24, 17, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(22,163,74,0.15);
  animation: floatCard 4s ease-in-out infinite;
  z-index: 20;
  white-space: nowrap;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float-card-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
}
.float-card-title { font-size: 0.82rem; font-weight: 600; color: #fff; margin: 0; }
.float-card-sub   { font-size: 0.72rem; color: var(--text-muted); margin: 0; }

/* Social proof avatars */
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-right: -8px;
}
.av-1 { background: linear-gradient(135deg,#16a34a,#0d9488); }
.av-2 { background: linear-gradient(135deg,#0d9488,#15803d); }
.av-3 { background: linear-gradient(135deg,#15803d,#22c55e); }
.av-4 { background: linear-gradient(135deg,#22c55e,#16a34a); }

/* ── Trust bar ─────────────────────────────────────────── */
.trustbar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item i { color: var(--primary); font-size: 14px; }

/* ── Features ──────────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22,163,74,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── How It Works ──────────────────────────────────────── */
.step-wrap { position: relative; }
.step-number {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid rgba(22,163,74,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 20px;
}
.step-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ── App highlight ─────────────────────────────────────── */
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}
.check-list li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-size: 0.85rem;
}
.store-btn:hover {
  border-color: rgba(22,163,74,0.45);
  background: rgba(22,163,74,0.06);
  color: #fff;
  transform: translateY(-2px);
}
.store-btn i     { font-size: 24px; }
.store-btn-sub   { font-size: 0.7rem; color: var(--text-muted); display: block; line-height: 1.2; }
.store-btn-name  { font-size: 0.95rem; font-weight: 700; display: block; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonial-card {
  background: rgba(22,163,74,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  border-color: rgba(22,163,74,0.25);
  transform: translateY(-4px);
}
.stars { color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.reviewer-name { font-size: 0.875rem; font-weight: 600; color: #fff; margin: 0; }
.reviewer-loc  { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ── Developers ────────────────────────────────────────── */
.dev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.code-block {
  background: #050c07;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  color: #9ca3af;
  overflow-x: auto;
  line-height: 1.9;
}
.ck  { color: #60a5fa; }
.cv  { color: #34d399; }
.cs  { color: #f9a8d4; }
.cm  { color: #6b7280; }

/* ── FAQ / Accordion ───────────────────────────────────── */
.accordion-item {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-button {
  background: rgba(255,255,255,0.025) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}
.accordion-button::after { filter: invert(1) brightness(0.7); }
.accordion-button:not(.collapsed)::after {
  filter: invert(0.6) sepia(1) saturate(5) hue-rotate(100deg);
}
.accordion-body {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ── Final CTA ─────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(22,163,74,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }

/* ── Footer ────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
footer .footer-col-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
footer .footer-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
footer .footer-link:hover { color: #fff; }
footer .brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.footer-divider { border-color: var(--border); margin: 32px 0 24px; }
.footer-bottom  { font-size: 0.8rem; color: var(--text-muted); }

/* ── Policy pages ──────────────────────────────────────── */
.policy-hero {
  padding-top: 120px;
  padding-bottom: 48px;
}
.policy-breadcrumb { background: transparent; padding: 0; margin-bottom: 24px; }
.policy-breadcrumb .breadcrumb-item a { color: var(--primary); text-decoration: none; }
.policy-breadcrumb .breadcrumb-item.active { color: var(--text-muted); }
.policy-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.policy-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.policy-card:hover { border-color: rgba(22,163,74,0.2); }
.policy-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.policy-card p, .policy-card li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.policy-card ul { list-style: none; padding: 0; margin-bottom: 0; }
.policy-card ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.policy-card ul li::before {
  content: '';
  width: 6px; height: 6px;
  min-width: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
}
.policy-contact-card {
  background: var(--primary-light);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.policy-contact-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.policy-contact-card a { color: var(--primary); font-weight: 600; text-decoration: none; }
.policy-contact-card a:hover { text-decoration: underline; }
