/* ============================================================
   TechByte Studios — Design System
   Brand: Indigo/Cyan gradient, Inter typeface, generous whitespace
   ============================================================ */

:root {
  --tb-primary: #4f46e5;
  --tb-primary-dark: #3730a3;
  --tb-primary-light: #6366f1;
  --tb-accent: #06b6d4;
  --tb-accent-dark: #0891b2;
  --tb-ink: #0f172a;
  --tb-ink-soft: #334155;
  --tb-muted: #64748b;
  --tb-line: #e2e8f0;
  --tb-surface: #ffffff;
  --tb-surface-soft: #f8fafc;
  --tb-surface-tint: #f1f5f9;
  --tb-success: #059669;
  --tb-warning: #d97706;
  --tb-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --tb-gradient-soft: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(6,182,212,0.08) 100%);
  --tb-radius-sm: 10px;
  --tb-radius: 16px;
  --tb-radius-lg: 24px;
  --tb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --tb-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --tb-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --tb-container: 1200px;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tb-ink-soft);
  background-color: var(--tb-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--tb-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display-tb {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lead-tb {
  font-size: 1.15rem;
  color: var(--tb-muted);
  line-height: 1.7;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-primary);
  background: var(--tb-gradient-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-pad { padding: 96px 0; }
@media (max-width: 767.98px) { .section-pad { padding: 64px 0; } }

.bg-soft { background-color: var(--tb-surface-soft); }
.bg-tint { background-color: var(--tb-surface-tint); }

.text-gradient {
  background: var(--tb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-tb { background: var(--tb-gradient); }

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  transition: all 0.2s ease;
}

.btn-primary-tb {
  background: var(--tb-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.btn-primary-tb:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.36);
}

.btn-outline-tb {
  background: transparent;
  border: 1.5px solid var(--tb-line);
  color: var(--tb-ink);
}
.btn-outline-tb:hover {
  border-color: var(--tb-primary);
  color: var(--tb-primary);
  transform: translateY(-2px);
}

.btn-light-tb {
  background: #fff;
  border: none;
  color: var(--tb-ink);
  box-shadow: var(--tb-shadow-sm);
}
.btn-light-tb:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow); }

.btn-sm-tb { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

/* ---------- Navbar ---------- */
.navbar-tb {
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.navbar-tb.is-scrolled {
  border-bottom: 1px solid var(--tb-line);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05);
  padding: 12px 0;
}

.navbar-brand-tb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--tb-ink) !important;
}
.navbar-brand-tb .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tb-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.navbar-tb .nav-link {
  font-weight: 500;
  color: var(--tb-ink-soft);
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.navbar-tb .nav-link:hover,
.navbar-tb .nav-link.active {
  color: var(--tb-primary);
  background: var(--tb-surface-tint);
}

/* ---------- Hero ---------- */
.hero-tb {
  position: relative;
  padding: 150px 0 100px;
  overflow: hidden;
  background: var(--tb-surface-soft);
}
.hero-tb::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.16), transparent 70%);
  z-index: 0;
}
.hero-tb::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.14), transparent 70%);
  z-index: 0;
}
.hero-tb .container { position: relative; z-index: 1; }

.page-hero {
  padding: 140px 0 72px;
  background: var(--tb-surface-soft);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.14), transparent 70%);
}

/* ---------- Cards ---------- */
.card-tb {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 32px;
  transition: all 0.25s ease;
  height: 100%;
}
.card-tb:hover {
  transform: translateY(-6px);
  box-shadow: var(--tb-shadow-lg);
  border-color: transparent;
}

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tb-gradient-soft);
  color: var(--tb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--tb-shadow-lg); }
.product-thumb {
  aspect-ratio: 4 / 3;
  background: var(--tb-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--tb-primary);
  position: relative;
}
.product-thumb .badge-price {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-lg);
  padding: 40px 32px;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}
.pricing-card:hover { box-shadow: var(--tb-shadow-lg); transform: translateY(-6px); }
.pricing-card.is-featured {
  background: var(--tb-ink);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--tb-shadow-lg);
}
.pricing-card.is-featured .lead-tb,
.pricing-card.is-featured .pricing-note { color: #cbd5e1; }
.pricing-card.is-featured h3 { color: #fff; }
.pricing-card .price-figure { font-size: 2.6rem; font-weight: 800; color: var(--tb-ink); }
.pricing-card.is-featured .price-figure { color: #fff; }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; }
.pricing-card ul li i { color: var(--tb-accent); margin-top: 3px; }

/* ---------- Stats ---------- */
.stat-tb { text-align: center; }
.stat-tb .stat-num { font-size: 2.5rem; font-weight: 800; color: var(--tb-ink); }
.stat-tb .stat-label { color: var(--tb-muted); font-weight: 500; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--tb-surface-soft);
  border-radius: var(--tb-radius);
  padding: 32px;
  height: 100%;
}
.testimonial-quote { font-size: 1.02rem; line-height: 1.7; color: var(--tb-ink-soft); }
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tb-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Badges ---------- */
.badge-tb {
  background: var(--tb-gradient-soft);
  color: var(--tb-primary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ---------- Logo strip ---------- */
.logo-strip img,
.logo-chip {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.2s ease;
}
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-weight: 700;
  color: var(--tb-muted);
  border: 1px dashed var(--tb-line);
  border-radius: 10px;
}
.logo-chip:hover { opacity: 1; }

/* ---------- CTA ---------- */
.cta-tb {
  background: var(--tb-ink);
  border-radius: var(--tb-radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-tb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79,70,229,0.35), transparent 60%);
}
.cta-tb > * { position: relative; z-index: 1; }
@media (max-width: 767.98px) { .cta-tb { padding: 40px 24px; } }

/* ---------- Accordion ---------- */
.accordion-tb .accordion-item {
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-tb .accordion-button {
  font-weight: 600;
  color: var(--tb-ink);
  background: #fff;
  padding: 20px 24px;
}
.accordion-tb .accordion-button:not(.collapsed) {
  background: var(--tb-surface-tint);
  color: var(--tb-primary);
  box-shadow: none;
}
.accordion-tb .accordion-button:focus { box-shadow: none; }
.accordion-tb .accordion-body { padding: 4px 24px 22px; color: var(--tb-muted); }

/* ---------- Footer ---------- */
.footer-tb {
  background: var(--tb-ink);
  color: #cbd5e1;
  padding: 72px 0 28px;
}
.footer-tb h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.footer-tb a { color: #94a3b8; transition: color 0.2s ease; }
.footer-tb a:hover { color: #fff; }
.footer-tb ul { list-style: none; padding: 0; }
.footer-tb ul li { margin-bottom: 10px; }
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}
.footer-social:hover { background: var(--tb-gradient); border-color: transparent; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ---------- Forms ---------- */
.form-tb label { font-weight: 600; color: var(--tb-ink); font-size: 0.9rem; margin-bottom: 6px; }
.form-tb .form-control,
.form-tb .form-select {
  border-radius: var(--tb-radius-sm);
  border: 1.5px solid var(--tb-line);
  padding: 0.7rem 1rem;
}
.form-tb .form-control:focus,
.form-tb .form-select:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ---------- Checkout ---------- */
.checkout-summary {
  background: var(--tb-surface-soft);
  border-radius: var(--tb-radius);
  padding: 32px;
  position: sticky;
  top: 110px;
}
.demo-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--tb-radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.success-illustration {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--tb-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--tb-success);
  margin: 0 auto;
}

/* ---------- Policy pages ---------- */
.policy-content h2 { margin-top: 40px; font-size: 1.4rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p, .policy-content li { color: var(--tb-ink-soft); line-height: 1.8; }
.policy-toc {
  background: var(--tb-surface-soft);
  border-radius: var(--tb-radius);
  padding: 24px;
  position: sticky;
  top: 110px;
}
.policy-toc a {
  display: block;
  color: var(--tb-ink-soft);
  padding: 6px 0;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  padding-left: 12px;
}
.policy-toc a:hover { color: var(--tb-primary); border-left-color: var(--tb-primary); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-lg);
  padding: 20px 22px;
  z-index: 1080;
  display: none;
}
.cookie-banner.show { display: flex; gap: 16px; align-items: center; }

/* ---------- 404 ---------- */
.error-figure {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  background: var(--tb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Misc ---------- */
.divider-soft { border-color: var(--tb-line); opacity: 1; }
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-gradient-soft);
  color: var(--tb-primary);
  border-radius: inherit;
}
.map-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--tb-radius);
  background: var(--tb-surface-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e2e8f0' stroke-width='1'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tb-muted);
  border: 1px solid var(--tb-line);
}

[data-aos] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

::selection { background: var(--tb-primary); color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tb-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
