/* ==========================================================================
   ShaniCloud — Custom Theme for Static Site
   Bootstrap 5.3 (via CDN) + custom properties, dark/light mode, components
   DO NOT include Bootstrap CSS here — it loads from CDN in HTML.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0. Google Fonts — Inter
   --------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ---------------------------------------------------------------------------
   1. CSS Custom Properties — Light Mode (default)
   --------------------------------------------------------------------------- */
:root {
  /* ---- Brand palette ---- */
  --sc-primary: #6366f1;          /* indigo 500 */
  --sc-primary-light: #818cf8;    /* indigo 400 */
  --sc-primary-dark: #4f46e5;     /* indigo 600 */
  --sc-primary-rgb: 99, 102, 241;

  --sc-accent: #06b6d4;           /* cyan 500 */
  --sc-accent-light: #22d3ee;     /* cyan 400 */
  --sc-accent-dark: #0891b2;      /* cyan 600 */
  --sc-accent-rgb: 6, 182, 212;

  --sc-destructive: #ef4444;      /* red 500 */
  --sc-destructive-light: #f87171;/* red 400 */
  --sc-destructive-rgb: 239, 68, 68;

  /* ---- Surfaces ---- */
  --sc-bg:          #ffffff;
  --sc-bg-alt:      #f8fafc;
  --sc-bg-card:     #ffffff;
  --sc-bg-muted:    #f1f5f9;

  --sc-text:        #0f172a;
  --sc-text-muted:  #64748b;
  --sc-text-subtle: #94a3b8;

  /* ---- Borders & dividers ---- */
  --sc-border:      #e2e8f0;
  --sc-border-hover:#cbd5e1;

  /* ---- Shadows ---- */
  --sc-shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --sc-shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sc-shadow-md:   0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --sc-shadow-lg:   0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --sc-shadow-xl:   0 20px 50px -12px rgba(0,0,0,.12);
  --sc-shadow-glow: 0 0 40px -8px rgba(var(--sc-primary-rgb), .25);
  --sc-shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sc-shadow-card-hover: 0 10px 30px -10px rgba(var(--sc-primary-rgb), .2);

  /* ---- Gradients ---- */
  --sc-gradient-primary: linear-gradient(135deg, var(--sc-primary), var(--sc-accent));
  --sc-gradient-hero:    radial-gradient(ellipse at 50% 0%, rgba(var(--sc-primary-rgb),.12) 0%, transparent 60%);
  --sc-gradient-mesh:    conic-gradient(from 180deg at 50% 50%,
                            rgba(var(--sc-primary-rgb),.12),
                            rgba(var(--sc-accent-rgb),.10),
                            rgba(var(--sc-primary-rgb),.12),
                            rgba(var(--sc-accent-rgb),.08));
  --sc-gradient-section-a: linear-gradient(180deg, transparent, rgba(var(--sc-primary-rgb),.03), transparent);
  --sc-gradient-section-b: linear-gradient(180deg, transparent, rgba(var(--sc-accent-rgb),.04), transparent);
  --sc-gradient-card-overlay: linear-gradient(to top, rgba(var(--sc-primary-rgb),.85) 0%, transparent 60%);

  /* ---- Radius ---- */
  --sc-radius-sm: 0.375rem;
  --sc-radius-md: 0.5rem;
  --sc-radius-lg: 1rem;
  --sc-radius-xl: 1.5rem;
  --sc-radius-full: 9999px;

  /* ---- Spacing helpers ---- */
  --sc-section-py: 5rem;
  --sc-section-py-sm: 3.5rem;
  --sc-section-py-lg: 7rem;
}

/* ---------------------------------------------------------------------------
   2. CSS Custom Properties — Dark Mode
   --------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  --sc-bg:          #0f172a;
  --sc-bg-alt:      #1e293b;
  --sc-bg-card:     #1e293b;
  --sc-bg-muted:    #334155;

  --sc-text:        #f1f5f9;
  --sc-text-muted:  #94a3b8;
  --sc-text-subtle: #64748b;

  --sc-border:      rgba(255,255,255,.08);
  --sc-border-hover:rgba(255,255,255,.15);

  --sc-shadow-xs:   0 1px 2px rgba(0,0,0,.2);
  --sc-shadow-sm:   0 1px 3px rgba(0,0,0,.3);
  --sc-shadow-md:   0 4px 6px -1px rgba(0,0,0,.35);
  --sc-shadow-lg:   0 10px 25px -5px rgba(0,0,0,.45);
  --sc-shadow-xl:   0 20px 50px -12px rgba(0,0,0,.55);
  --sc-shadow-glow: 0 0 60px -10px rgba(var(--sc-primary-rgb), .35);
  --sc-shadow-card: 0 1px 3px rgba(0,0,0,.25);
  --sc-shadow-card-hover: 0 10px 30px -10px rgba(var(--sc-primary-rgb), .3);

  --sc-gradient-hero:    radial-gradient(ellipse at 50% 0%, rgba(var(--sc-primary-rgb),.18) 0%, transparent 65%);
  --sc-gradient-mesh:    conic-gradient(from 180deg at 50% 50%,
                            rgba(var(--sc-primary-rgb),.18),
                            rgba(var(--sc-accent-rgb),.14),
                            rgba(var(--sc-primary-rgb),.18),
                            rgba(var(--sc-accent-rgb),.12));
  --sc-gradient-section-a: linear-gradient(180deg, transparent, rgba(var(--sc-primary-rgb),.06), transparent);
  --sc-gradient-section-b: linear-gradient(180deg, transparent, rgba(var(--sc-accent-rgb),.06), transparent);
  --sc-gradient-card-overlay: linear-gradient(to top, rgba(15,23,42,.9) 0%, transparent 60%);
}

/* ---------------------------------------------------------------------------
   3. Base / Reset overrides
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--sc-text);
  background-color: var(--sc-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: color .25s ease, background-color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sc-text);
}

a {
  color: var(--sc-primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--sc-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------------
   4. Container — responsive tight variant
   --------------------------------------------------------------------------- */
.container-tight {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container-tight {
    padding-inline: 2rem;
  }
}

/* ---------------------------------------------------------------------------
   5. Typography utilities
   --------------------------------------------------------------------------- */
.text-gradient {
  background: var(--sc-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

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

.heading-section {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.heading-card {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-text-muted);
}

.text-muted {
  color: var(--sc-text-muted);
}

/* ---------------------------------------------------------------------------
   6. Glass morphism
   --------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .15);
}

[data-bs-theme="dark"] .glass {
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ---------------------------------------------------------------------------
   7. Section — alternating backgrounds
   --------------------------------------------------------------------------- */
.section-a {
  background-image: var(--sc-gradient-section-a);
}

.section-b {
  background-image: var(--sc-gradient-section-b);
}

.section-ambient {
  position: relative;
  isolation: isolate;
}

.section-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sc-gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Section vertical padding */
.section { padding-block: var(--sc-section-py); }
.section--sm { padding-block: var(--sc-section-py-sm); }
.section--lg { padding-block: var(--sc-section-py-lg); }

@media (max-width: 575.98px) {
  .section     { padding-block: 2.5rem; }
  .section--sm { padding-block: 2rem; }
  .section--lg { padding-block: 3rem; }
}

/* ---------------------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------------------- */
.card-theme {
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-xl);
  box-shadow: var(--sc-shadow-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.card-theme:hover {
  border-color: var(--sc-border-hover);
  box-shadow: var(--sc-shadow-card-hover);
}

.card-theme--lift:hover {
  transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------
   9. Buttons — primary, outline, ghost
   --------------------------------------------------------------------------- */
/* Primary */
.btn-sc-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--sc-primary);
  border: 1px solid var(--sc-primary);
  border-radius: var(--sc-radius-full);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-sc-primary:hover {
  background: var(--sc-primary-dark);
  border-color: var(--sc-primary-dark);
  box-shadow: var(--sc-shadow-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn-sc-primary:active {
  transform: translateY(0);
}

/* Outline */
.btn-sc-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--sc-text);
  background: transparent;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-full);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.btn-sc-outline:hover {
  border-color: var(--sc-primary);
  color: var(--sc-primary);
  background: rgba(var(--sc-primary-rgb), .05);
  transform: translateY(-1px);
}

.btn-sc-outline:active {
  transform: translateY(0);
}

/* Ghost */
.btn-sc-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--sc-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--sc-radius-full);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.btn-sc-ghost:hover {
  color: var(--sc-text);
  background: var(--sc-bg-muted);
}

/* Size modifiers */
.btn-sc-primary.btn-lg,
.btn-sc-outline.btn-lg,
.btn-sc-ghost.btn-lg {
  padding: .75rem 2rem;
  font-size: 1rem;
}

.btn-sc-primary.btn-sm,
.btn-sc-outline.btn-sm,
.btn-sc-ghost.btn-sm {
  padding: .375rem 1rem;
  font-size: .8125rem;
}

/* ---------------------------------------------------------------------------
   10. Hero section
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sc-gradient-hero);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 51rem;
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--sc-text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .875rem;
  color: var(--sc-text-muted);
}

.hero__stars {
  color: var(--sc-primary);
}

/* Hero product mockup */
.hero__mockup {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  max-width: 64rem;
  margin-inline: auto;
}

.hero__mockup-glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 1.5rem;
  background: var(--sc-gradient-primary);
  opacity: .4;
  filter: blur(40px);
  pointer-events: none;
}

.hero__mockup-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--sc-radius-xl);
  border: 1px solid var(--sc-border);
  background: var(--sc-bg-card);
  box-shadow: var(--sc-shadow-xl);
}

.hero__mockup-bar {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-bg-muted);
}

.hero__mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__mockup-dot--red    { background: rgba(var(--sc-destructive-rgb), .7); }
.hero__mockup-dot--yellow { background: rgba(234, 179, 8, .7); }
.hero__mockup-dot--green  { background: rgba(34, 197, 94, .7); }

.hero__mockup-body {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1rem;
  padding: 1.5rem;
}

@media (max-width: 575.98px) {
  .hero { padding: 3rem 0 2rem; }
  .hero__mockup-body { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   11. Stats grid
   --------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--sc-radius-xl);
}

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-grid__item {
  background: var(--sc-bg-card);
  padding: 1.5rem;
  text-align: center;
}

.stats-grid__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: var(--sc-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-grid__label {
  margin-top: .25rem;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sc-text-muted);
}

/* ---------------------------------------------------------------------------
   12. Pricing cards
   --------------------------------------------------------------------------- */
.pricing-card {
  position: relative;
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-xl);
  padding: 2rem;
  box-shadow: var(--sc-shadow-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sc-shadow-card-hover);
}

/* Highlighted (featured) pricing card */
.pricing-card--highlight {
  border-color: var(--sc-primary);
  box-shadow: var(--sc-shadow-glow);
}

.pricing-card--highlight:hover {
  box-shadow: var(--sc-shadow-xl), var(--sc-shadow-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sc-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: var(--sc-radius-full);
  white-space: nowrap;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: .875rem;
  color: var(--sc-text-muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .375rem 0;
  font-size: .9375rem;
}

.pricing-card__features li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: .25rem;
  background: var(--sc-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='currentColor' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='currentColor' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pricing-card__cta {
  width: 100%;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------------
   13. Blog article typography
   --------------------------------------------------------------------------- */
.blog-article {
  color: var(--sc-text);
}

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
}

.blog-article h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.blog-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.blog-article p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--sc-text-muted);
}

.blog-article p.lead {
  font-size: 1.125rem;
  color: var(--sc-text);
}

.blog-article blockquote {
  border-left: 3px solid var(--sc-primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--sc-bg-muted);
  border-radius: 0 var(--sc-radius-md) var(--sc-radius-md) 0;
  font-style: italic;
  color: var(--sc-text);
}

.blog-article ul,
.blog-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-article li {
  margin-bottom: .375rem;
  line-height: 1.7;
}

.blog-article code {
  font-size: .875em;
  background: var(--sc-bg-muted);
  padding: .125em .375em;
  border-radius: var(--sc-radius-sm);
}

.blog-article pre {
  background: var(--sc-bg-alt);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-article pre code {
  background: transparent;
  padding: 0;
}

.blog-article img {
  border-radius: var(--sc-radius-lg);
  margin: 1.5rem 0;
}

.blog-article a {
  color: var(--sc-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.blog-article a:hover {
  color: var(--sc-primary-light);
}

/* Blog card */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-xl);
  box-shadow: var(--sc-shadow-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.blog-card:hover {
  border-color: rgba(var(--sc-primary-rgb), .35);
  box-shadow: var(--sc-shadow-card-hover);
  transform: translateY(-4px);
}

.blog-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.blog-card__category {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--sc-primary);
  background: rgba(var(--sc-primary-rgb), .08);
  padding: .125rem .625rem;
  border-radius: var(--sc-radius-full);
}

.blog-card__title {
  margin-top: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.blog-card__excerpt {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--sc-text-muted);
  flex: 1;
}

.blog-card__meta {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--sc-text-subtle);
}

/* Featured blog card */
.blog-card--featured {
  display: grid;
}

@media (min-width: 768px) {
  .blog-card--featured {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card--featured .blog-card__img {
  aspect-ratio: auto;
  min-height: 200px;
}

.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 2rem;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

/* Blog category filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.blog-filter-btn {
  padding: .375rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sc-text-muted);
  background: transparent;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-full);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.blog-filter-btn:hover {
  border-color: var(--sc-border-hover);
  color: var(--sc-text);
}

.blog-filter-btn--active {
  border-color: var(--sc-primary);
  background: rgba(var(--sc-primary-rgb), .08);
  color: var(--sc-primary);
}

/* ---------------------------------------------------------------------------
   14. Eyebrow / label component
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--sc-text-muted);
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-full);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-primary);
}

/* ---------------------------------------------------------------------------
   15. Section heading
   --------------------------------------------------------------------------- */
.section-heading {
  max-width: 48rem;
  margin-inline: auto;
}

.section-heading--left {
  text-align: left;
  margin-inline: unset;
}

.section-heading__title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-heading__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--sc-text-muted);
}

/* ---------------------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--sc-border);
  background: var(--sc-bg-alt);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 4fr 2fr 2fr 2fr 2fr;
    gap: 2rem;
  }
}

.site-footer__brand p {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--sc-text-muted);
  max-width: 24rem;
}

.site-footer__socials {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--sc-border);
  color: var(--sc-text-muted);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.site-footer__social-link:hover {
  transform: translateY(-2px);
  border-color: var(--sc-primary);
  color: var(--sc-primary);
}

.site-footer__col h3 {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__col li {
  margin-bottom: .5rem;
}

.site-footer__col a {
  font-size: .875rem;
  color: var(--sc-text-muted);
  transition: color .2s ease;
}

.site-footer__col a:hover {
  color: var(--sc-text);
}

.site-footer__bottom {
  border-top: 1px solid var(--sc-border);
  padding: 1.5rem 0;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .75rem;
  color: var(--sc-text-muted);
}

@media (min-width: 768px) {
  .site-footer__bottom-inner {
    flex-direction: row;
  }
}

/* ---------------------------------------------------------------------------
   17. Navbar
   --------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1040;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-bg);
  transition: background .25s ease, border-color .25s ease;
}

.site-nav.glass {
  background: rgba(255, 255, 255, .75);
}

[data-bs-theme="dark"] .site-nav.glass {
  background: rgba(15, 23, 42, .75);
}

.site-nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--sc-text-muted);
  transition: color .2s ease;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--sc-text);
}

.site-nav__link--active {
  color: var(--sc-primary);
}

/* ---------------------------------------------------------------------------
   18. CTA banner
   --------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--sc-radius-xl);
  border: 1px solid var(--sc-border);
  background: var(--sc-bg-card);
  padding: 3rem 2rem;
}

@media (min-width: 768px) {
  .cta-banner { padding: 4rem; }
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sc-gradient-mesh);
  opacity: .6;
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------------
   19. Scroll reveal animations
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.23, 1, .32, 1),
              transform .65s cubic-bezier(.23, 1, .32, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.23, 1, .32, 1),
              transform .55s cubic-bezier(.23, 1, .32, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .30s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   20. Floating orb decoration (ambient bg element)
   --------------------------------------------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}

.orb--primary {
  background: var(--sc-primary);
}

.orb--accent {
  background: var(--sc-accent);
}

/* ---------------------------------------------------------------------------
   21. Interactive element transitions
   --------------------------------------------------------------------------- */
a,
button,
.card-theme,
.card-theme--lift,
.pricing-card,
.blog-card,
.btn-sc-primary,
.btn-sc-outline,
.btn-sc-ghost,
.blog-filter-btn,
.site-footer__social-link {
  transition: color .2s ease,
              background .2s ease,
              border-color .2s ease,
              box-shadow .25s ease,
              transform .25s ease,
              opacity .2s ease;
}

/* ---------------------------------------------------------------------------
   22. Utility: rounded-full buttons / links
   --------------------------------------------------------------------------- */
.btn-pill {
  border-radius: var(--sc-radius-full);
}

/* ---------------------------------------------------------------------------
   23. Trusted by / logo strip
   --------------------------------------------------------------------------- */
.trusted-by {
  border-top: 1px solid var(--sc-border);
  border-bottom: 1px solid var(--sc-border);
  background: rgba(var(--sc-primary-rgb), .02);
}

[data-bs-theme="dark"] .trusted-by {
  background: rgba(var(--sc-primary-rgb), .04);
}

.trusted-by__label {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-text-muted);
}

.trusted-by__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 576px) {
  .trusted-by__logos { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .trusted-by__logos { grid-template-columns: repeat(3, 1fr); }
}

.trusted-by__logo {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sc-text-muted);
  opacity: .6;
  transition: opacity .2s ease, color .2s ease;
}

.trusted-by__logo:hover {
  opacity: 1;
  color: var(--sc-text);
}

/* ---------------------------------------------------------------------------
   24. Tech stack tags
   --------------------------------------------------------------------------- */
.tech-tag {
  display: inline-block;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sc-text);
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--sc-primary-rgb), .35);
  color: var(--sc-primary);
}

/* ---------------------------------------------------------------------------
   25. Process / steps
   --------------------------------------------------------------------------- */
.process-step__number {
  font-size: .75rem;
  font-weight: 600;
  color: var(--sc-primary);
}

/* ---------------------------------------------------------------------------
   26. Testimonials
   --------------------------------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--sc-shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sc-shadow-card-hover);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: .75rem;
  color: var(--sc-primary);
}

.testimonial-card__quote {
  flex: 1;
  font-size: .9375rem;
  line-height: 1.65;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sc-border);
}

.testimonial-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: .875rem;
  font-weight: 600;
}

.testimonial-card__role {
  font-size: .75rem;
  color: var(--sc-text-muted);
}

/* ---------------------------------------------------------------------------
   27. Industry cards
   --------------------------------------------------------------------------- */
.industry-card {
  position: relative;
  height: 8rem;
  overflow: hidden;
  border-radius: var(--sc-radius-xl);
  border: 1px solid var(--sc-border);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--sc-bg), rgba(var(--sc-primary-rgb), .25), rgba(var(--sc-primary-rgb), .05));
}

.industry-card__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: .875rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   28. Portfolio cards
   --------------------------------------------------------------------------- */
.portfolio-card {
  overflow: hidden;
  border-radius: var(--sc-radius-xl);
  border: 1px solid var(--sc-border);
  background: var(--sc-bg-card);
  box-shadow: var(--sc-shadow-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.portfolio-card:hover {
  border-color: rgba(var(--sc-primary-rgb), .35);
  box-shadow: var(--sc-shadow-card-hover);
  transform: translateY(-4px);
}

.portfolio-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.portfolio-card:hover .portfolio-card__img img {
  transform: scale(1.05);
}

.portfolio-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--sc-bg), transparent 60%);
}

.portfolio-card__title {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-card__body {
  padding: 1.5rem;
}

.portfolio-card__tags {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
}

.portfolio-card__desc {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--sc-text-muted);
}

/* ---------------------------------------------------------------------------
   29. Form inputs (supplement Bootstrap defaults)
   --------------------------------------------------------------------------- */
.form-control-sc:focus,
.form-select-sc:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px rgba(var(--sc-primary-rgb), .15);
}

/* ---------------------------------------------------------------------------
    29b. Contact page
    --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  #contactForm .form-control,
  #contactForm .form-select {
    font-size: 1rem;
    padding: .625rem .75rem;
  }
  #contactForm textarea {
    min-height: 120px;
  }
}

/* ---------------------------------------------------------------------------
    29c. Back-to-top button
    --------------------------------------------------------------------------- */
.back-to-top {
  z-index: 1050;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px);
}

/* ---------------------------------------------------------------------------
   30. Scrollbar (subtle)
   --------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--sc-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sc-text-subtle);
}

/* ---------------------------------------------------------------------------
   31. Selection color
   --------------------------------------------------------------------------- */
::selection {
  background: rgba(var(--sc-primary-rgb), .2);
  color: var(--sc-text);
}

/* ---------------------------------------------------------------------------
   32. Print styles
   --------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-nav,
  .site-footer,
  .cta-banner,
  .btn-sc-primary,
  .btn-sc-outline,
  .btn-sc-ghost,
  .hero__actions,
  .blog-filters,
  .reveal,
  .reveal-stagger > *,
  .orb {
    display: none !important;
  }

  .hero {
    padding: 2rem 0 !important;
  }

  .hero::before,
  .section-ambient::before,
  .cta-banner::before {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .75em;
    color: #666;
  }

  .card-theme,
  .pricing-card,
  .blog-card,
  .portfolio-card,
  .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }
}

/* ---------------------------------------------------------------------------
   33. Keyframe animations
   --------------------------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-up {
  animation: fade-up .6s ease-out both;
}

.animate-fade-in {
  animation: fade-in .5s ease-out both;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-shimmer {
  background-size: 200% 200%;
  animation: shimmer 8s linear infinite;
}
