:root {
  --radius: 1rem;
  --radius-sm: 0.375rem;
  --radius-xs: 0.25rem;
  --radius-xl: 1rem;
  --background: #222222;
  --foreground: #f9fafb;
  --card: #262626;
  --card-foreground: #f9fafb;
  --muted: #262626;
  --muted-foreground: #9ca3af;
  --theme-primary: #3B82F6;
  --theme-primary-light: #60A5FA;
  --destructive: #EF4445;
  --border: #303030;
  --ring: #3B82F6;
  --tf-green: #34D399;
  --tf-red: #F97171;
  color-scheme: dark;
}

html.light {
  --background: #f2f2f2;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --muted: #f3f4f6;
  --muted-foreground: #4b5563;
  --theme-primary: #2563EB;
  --theme-primary-light: #3B82F6;
  --destructive: #EF4445;
  --border: #d1d5db;
  --ring: #3B82F6;
  color-scheme: light;
}

* { border-color: var(--border); }

html { cursor: default; }
body {
  cursor: default;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default h2 / .h2 — desktop view */
h1, h2, h3, h4, h5, h6 { line-height: 125%; }
h2, .h2 { font-size: 2.4rem; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 100;
  padding: 0.5rem 1rem; background: var(--theme-primary); color: #000000;
  font-size: 0.875rem; border-radius: 0 0 var(--radius) 0; transition: top 0.2s ease-out;
}
.skip-link:focus { top: 0; }

/* Header — solid at top, translucent on scroll */
header.sticky {
  transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out, border-color 0.3s ease-out;
}
header.sticky.scrolled {
  background-color: rgba(24,24,24,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
}

*:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ============================================
   CONTAINER SYSTEM
   ============================================ */
.container-7xl { max-width: 80rem; margin: 0 auto; width: 100%; padding: 0 1rem; }
.container-border { border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 5rem; }

@media (max-width: 1024px) {
  .container-border { padding: 0 2.5rem; }
}
@media (max-width: 768px) {
  .container-border { padding: 0 1.5rem; }
}
@media (max-width: 480px) {
  .container-border { padding: 0 1rem; }
}
.spacer-20 { height: 5rem; }
.spacer-20 .spacer-inner { border: 1px solid var(--border); height: 100%; width: 100%; }

/* ============================================
   NOTIFICATION BAR
   ============================================ */
.notification-bar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(249, 113, 113, 0.25)); border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem; text-align: center; font-size: 0.8rem;
}
.notification-bar a { color: #F97171; font-weight: 500; text-decoration: none; }
html.light .notification-bar a { color: #dc2626; }
.notification-sep { color: var(--muted-foreground); margin: 0 0.5rem; }
.notification-bar a:hover { text-decoration: underline; }

/* ============================================
   BUTTONS — Emil-optimized
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  padding: 0.625rem 1.25rem;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out;
  cursor: pointer; touch-action: manipulation; text-decoration: none;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn:active { transform: translateY(1px); }

.btn-primary { background-color: var(--theme-primary); color: #ffffff; border-color: var(--theme-primary); }
.btn-primary:hover { background-color: #2563EB; }

.btn-outline { background-color: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background-color: var(--muted); }

.btn-ghost { background-color: transparent; color: var(--foreground); border-color: transparent; }
.btn-ghost:hover { background-color: var(--muted); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }

/* Gradient Button (menuQR: #3B82F6 → #F97171) */
.btn-glow {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #3B82F6, #F97171);
  color: #ffffff;
  border: none;
  cursor: pointer; transition: opacity 0.15s ease-out, transform 0.15s ease-out; text-decoration: none;
}
.btn-glow:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-glow:active { transform: translateY(0); }
.btn-glow:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 9999px; border: 1px solid var(--border);
  padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  background: rgba(255,255,255,0.03); color: var(--foreground);
}
.badge a { color: var(--theme-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; }
.badge a:hover { text-decoration: underline; }
.badge svg { width: 0.75rem; height: 0.75rem; }

/* ============================================
   ACCORDION — shadcn/ui base pattern
   data-state="open"|"closed" on trigger + content
   ============================================ */
.accordion-item {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease-out;
}
.accordion-item:last-child { border-bottom: none; }
.accordion-item:hover { background-color: rgba(255,255,255,0.02); }
.accordion-item.open { background-color: rgba(255,255,255,0.03); }
.accordion-trigger {
  display: flex; align-items: center; width: 100%;
  padding: 1.25rem 1rem; gap: 0.75rem;
  background: none; border: none; color: var(--foreground);
  font-size: 1.05rem; font-weight: 500; text-align: left;
  cursor: pointer; touch-action: manipulation;
  transition: color 0.15s ease-out;
}
.accordion-trigger:hover { color: var(--theme-primary); }
.accordion-trigger:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; border-radius: 4px; }
.accordion-chevron {
  width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-left: auto;
  color: var(--muted-foreground);
  transition: transform 0.2s ease-out, color 0.15s ease-out;
}
.accordion-trigger[data-state="open"] .accordion-chevron {
  transform: rotate(180deg);
  color: var(--theme-primary);
}
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content[data-state="open"] { max-height: 30rem; }
.accordion-content-inner {
  overflow: hidden;
  font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.7;
  padding: 0 1rem 1.25rem;
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */
.nav-link.active { color: var(--theme-primary) !important; }

/* ============================================
   SECTION SPACING
   ============================================ */
.section-py { padding: 2.5rem 0; }
.section-py-lg { padding: 5rem 0; }

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
  color: var(--theme-primary);
}

/* ============================================
   HERO — Centered (tailark-inspired)
   ============================================ */
.hero-section { scroll-margin-top: 4rem; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4rem 0 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid var(--border);
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  background: var(--muted); color: var(--foreground);
  font-size: 0.875rem; text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero-badge:hover { background: var(--background); border-color: var(--theme-primary); }
.hero-badge-sep { display: block; width: 1px; height: 1rem; background: var(--border); }
.hero-badge-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 9999px;
  background: var(--background); overflow: hidden;
}
.hero-badge-arrow svg { width: 0.75rem; height: 0.75rem; }
.hero-headline {
  margin-top: 2rem; max-width: 48rem;
  font-size: clamp(2.5rem, 7vw, 5.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-subheadline {
  margin-top: 1.5rem; max-width: 36rem;
  font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7;
  text-wrap: balance;
}
.hero-cta-group {
  margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
}
.hero-cta-primary-wrap {
  border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.06); padding: 0.25rem;
}
.hero-screenshot {
  margin-top: 3rem; margin-bottom: 5rem; width: 100%; overflow: hidden;
}
.hero-screenshot-wrapper {
  position: relative; margin: 0 auto; max-width: 64rem;
  border-radius: 1rem;
}
.hero-screenshot-img {
  display: block; width: 100%; height: auto;
  border-radius: 0.75rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero-screenshot-img-light { display: none; }
html.light .hero-screenshot-img { display: none; }
html.light .hero-screenshot-img-light {
  display: block; width: 100%; height: auto;
  border-radius: 0.75rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ============================================
   LOGO GRID
   ============================================ */
.logo-section { scroll-margin-top: 4rem; }
.logo-inner { text-align: center; }
.logo-headline { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.logo-subheadline { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.logo-item {
  position: relative; padding: 2.5rem 1rem;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-right: -1px; margin-bottom: -1px;
}
.logo-item svg { width: auto; height: 1.5rem; color: var(--muted-foreground); }
.logo-item-overlay {
  position: absolute; inset: 0; background: var(--muted);
  opacity: 0; transition: opacity 0.2s ease-out;
  display: flex; align-items: center; justify-content: center;
}
.logo-item:hover .logo-item-overlay { opacity: 1; }
.logo-item-overlay a {
  color: var(--foreground); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-item-overlay a:hover { color: var(--theme-primary); }
.logo-item-overlay svg { width: 1.25rem; height: 1.25rem; }

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section { scroll-margin-top: 4rem; }
.quote-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  padding: 2.5rem 0 5rem;
}
.quote-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; color: var(--foreground);
  text-align: center; max-width: 36rem; margin: 0;
}
.quote-sub { font-size: 1.125rem; color: var(--muted-foreground); text-align: center; max-width: 32rem; }

/* ============================================
   STATS
   ============================================ */
.stats-section { scroll-margin-top: 4rem; }
.stats-inner { padding: 2.5rem 0 5rem; }
.stats-top {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center;
  margin-bottom: 3rem;
}
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-value {
  font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--theme-primary);
}
.stat-label { font-size: 0.9rem; color: var(--muted-foreground); }
.stats-bottom { text-align: center; }
.stats-big-number {
  font-size: 4.5rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--theme-primary);
}
.stats-big-label { font-size: 1rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.stats-growth-row { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.stats-growth-item { display: flex; align-items: center; gap: 0.5rem; }
.stats-growth-item svg { width: 1rem; height: 1rem; color: var(--tf-green); }

/* ============================================
   FEATURES V15 — Split: Dashboard Mockup + Accordion List
   Ref: shadcnspace Feature 15 — AI Platform Features Section
   Theme: container-border frame, accordion behavior preserved
   ============================================ */
.features-v15 { scroll-margin-top: 4rem; }
.features-v15-header { text-align: center; padding: 2.5rem 0 2.5rem; }
.features-v15-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; }
.features-v15-headline .gradient-text { display: inline; }
.features-v15-subheadline { font-size: 1.125rem; color: var(--muted-foreground); max-width: 36rem; margin: 0.75rem auto 0; }
.features-v15-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 2.5rem 0 5rem; }

/* Left: Dashboard Mockup with Blue Glow */
.features-v15-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.features-v15-visual-glow {
  position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(96,165,250,0.1));
  filter: blur(3rem); z-index: 0;
}
.features-v15-visual-img {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.features-v15-visual-img-light { display: none; }
html.light .features-v15-visual-img-dark { display: none; }
html.light .features-v15-visual-img-light { display: block; }

/* Right: Feature List (text only) */
.features-v15-list {
  display: flex; flex-direction: column; gap: 2rem;
}
.fv15-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.fv15-item svg.fv15-icon {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  color: var(--theme-primary); margin-top: 0.125rem;
}
.fv15-item .fv15-title {
  font-size: 1.125rem; font-weight: 600; color: var(--foreground);
  margin: 0 0 0.375rem;
}
.fv15-item .fv15-desc {
  font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground);
  margin: 0;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section { scroll-margin-top: 4rem; }
.video-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  padding: 2.5rem 0 5rem; text-align: center;
}
.video-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; }
.video-subheadline { font-size: 1rem; color: var(--muted-foreground); max-width: 36rem; }
.video-placeholder {
  width: 100%; max-width: 700px; aspect-ratio: 16/9; border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.03));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s ease-out;
}
.video-placeholder:hover { border-color: rgba(59,130,246,0.3); }
.video-play-btn {
  width: 72px; height: 72px; border-radius: 9999px;
  background: var(--theme-primary); color: #000000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(59,130,246,0.3);
  transition: transform 0.15s ease-out;
}
.video-play-btn:hover { transform: scale(1.05); }
.video-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }

/* ============================================
   HOW IT WORKS (3 Steps) — Emil-optimized
   ============================================ */
.steps-section { scroll-margin-top: 4rem; }
.steps-inner { padding: 2.5rem 0 5rem; }
.steps-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; }
.steps-subheadline { font-size: 1rem; color: var(--muted-foreground); text-align: center; max-width: 36rem; margin: 0.75rem auto 3rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-xl);
  background-color: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  transition: border-color 0.2s ease-out, transform 0.2s ease-out;
  opacity: 0; transform: translateY(8px);
  animation: cardFadeIn 0.3s ease-out forwards;
}
.step-card:nth-child(1) { animation-delay: 0ms; }
.step-card:nth-child(2) { animation-delay: 60ms; }
.step-card:nth-child(3) { animation-delay: 120ms; }
.step-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.step-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08));
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 1.5rem; height: 1.5rem; color: var(--theme-primary); }
.step-card .step-title { font-size: 1.125rem; font-weight: 500; }
.step-card .step-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.step-card .step-link { font-size: 0.875rem; color: var(--theme-primary); text-decoration: none; font-weight: 500; }
.step-card .step-link:hover { text-decoration: underline; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { scroll-margin-top: 4rem; }
.testimonials-inner { padding: 2.5rem 0 5rem; }
.testimonials-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; margin-bottom: 3rem; }
.testimonial-horizontal { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.testimonial-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.testimonial-photo {
  width: 160px; height: 160px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; color: #000000;
}
.testimonial-logo {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted-foreground); font-weight: 600;
}
.testimonial-content { display: flex; flex-direction: column; gap: 1.5rem; }
.testimonial-quote-lg { font-size: 1.125rem; line-height: 1.7; color: var(--foreground); font-style: italic; }
.testimonial-author-lg { display: flex; flex-direction: column; gap: 0.25rem; }
.testimonial-name-lg { font-size: 1rem; font-weight: 500; }
.testimonial-role-lg { font-size: 0.85rem; color: var(--muted-foreground); }
.testimonial-nav { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.testimonial-nav-dot {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease-out;
}
.testimonial-nav-dot::before {
  content: ''; width: 0.625rem; height: 0.625rem; border-radius: 9999px;
  background: var(--muted); transition: background-color 0.2s ease-out;
}
.testimonial-nav-dot.active::before { background: var(--theme-primary); }

/* ============================================
   PRICING CARDS — Emil-optimized
   ============================================ */
.pricing-section { scroll-margin-top: 4rem; }
.pricing-inner { padding: 2.5rem 0 5rem; }
.pricing-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; }
.pricing-subheadline { font-size: 1rem; color: var(--muted-foreground); text-align: center; max-width: 36rem; margin: 0.75rem auto 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.pricing-card {
  padding: 2rem 1.5rem; border-radius: var(--radius-xl); background-color: var(--card);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 1.25rem;
  transition: border-color 0.2s ease-out, transform 0.2s ease-out;
  opacity: 0; transform: translateY(8px);
  animation: cardFadeIn 0.3s ease-out forwards;
}
.pricing-card:nth-child(1) { animation-delay: 0ms; }
.pricing-card:nth-child(2) { animation-delay: 60ms; }
.pricing-card:nth-child(3) { animation-delay: 120ms; }
.pricing-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--theme-primary); border-width: 2px; position: relative; }
.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--theme-primary); color: #000000;
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.75rem; border-radius: 9999px;
  white-space: nowrap;
}
.pricing-name { font-size: 1.125rem; font-weight: 500; }
.pricing-desc { font-size: 0.875rem; color: var(--muted-foreground); }
.pricing-amount { font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; }
.pricing-period { font-size: 0.75rem; color: var(--muted-foreground); font-weight: 400; }
.pricing-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li svg { width: 1rem; height: 1rem; color: var(--tf-green); flex-shrink: 0; }

/* ============================================
   BLOG SLIDER — Featured 2-up, flat design
   ============================================ */
.blog-section { scroll-margin-top: 4rem; }
.blog-inner { padding: 2.5rem 0 5rem; }

/* ============================================
   BLOG ARTICLE — Single post styling
   ============================================ */
.article-back-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; color: var(--muted-foreground);
  text-decoration: none; margin-bottom: 2rem;
  transition: color 0.2s ease-out;
}
.article-back-link:hover { color: var(--theme-primary); }
.article-back-link svg { width: 1rem; height: 1rem; }

.article-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.article-hero-image {
  margin-bottom: 2.5rem; border-radius: var(--radius); overflow: hidden;
}
.article-hero-image img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
}

.article-content {
  max-width: none; margin: 0;
}
.article-content p {
  font-size: 1.0625rem; line-height: 1.75; color: var(--foreground);
  margin-bottom: 1.5rem; text-align: left;
}
.article-content h2 {
  font-size: 1.375rem; font-weight: 600; color: var(--foreground);
  margin-top: 2.5rem; margin-bottom: 0.875rem; line-height: 1.3;
}
.article-content h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--foreground);
  margin-top: 1.75rem; margin-bottom: 0.625rem; line-height: 1.35;
}
.article-content ul {
  margin-bottom: 1.5rem; padding-left: 1.5rem;
  list-style: disc;
}
.article-content li {
  font-size: 1.0625rem; line-height: 1.75; color: var(--foreground);
  margin-bottom: 0.5rem;
}
.article-content li:last-child { margin-bottom: 0; }

.blog-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; margin-bottom: 3rem; }
.blog-slider { position: relative; max-width: 48rem; margin: 0 auto; }
.blog-slider-track {
  display: flex; overflow: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.blog-slide {
  flex: 0 0 50%; scroll-snap-align: start; padding: 0 1.5rem;
}
.blog-post {
  display: flex; flex-direction: column; gap: 0;
  text-decoration: none; cursor: pointer;
}
.blog-post-image {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(52,211,153,0.04));
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease-out;
}
.blog-post:hover .blog-post-image { opacity: 0.85; }
.blog-post-image svg { width: 48px; height: 48px; color: var(--theme-primary); opacity: 0.4; }
.blog-post-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-body { display: flex; flex-direction: column; gap: 0.5rem; }
.blog-post-category {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--theme-primary);
}
.blog-post-title { font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.blog-post-title a { color: var(--foreground); text-decoration: none; transition: color 0.15s ease-out; }
.blog-post-title a:hover { color: var(--theme-primary); }

/* ============================================
   BLOG LIST — Featured + Grid + Text Links
   ============================================ */
.blog-header-breakout { margin-bottom: 0; }
@media (min-width: 1024px) {
  .blog-header-breakout {
    margin-left: -5rem;
    margin-right: -5rem;
  }
}
.blog-featured {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 2.5rem;
}
.blog-featured .blog-post-image {
  aspect-ratio: 21/9;
}
.blog-featured .blog-post-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
@media (min-width: 1024px) {
  .blog-featured,
  .blog-grid-2 {
    margin-left: -5rem;
    margin-right: -5rem;
  }
}

.blog-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .blog-grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}
.blog-grid-2 .blog-post-image {
  aspect-ratio: 16/9;
}

.blog-text-links {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.blog-text-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.blog-text-link:hover .blog-text-link-title { color: var(--theme-primary); }
.blog-text-link-title {
  font-size: 0.9375rem; font-weight: 400; color: var(--foreground);
  transition: color 0.15s ease-out;
}
.blog-text-link-date {
  font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap;
}

/* Arrows */
.blog-slider-arrow {
  position: absolute; top: 35%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: var(--background); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); cursor: pointer; z-index: 2;
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.blog-slider-arrow:hover { color: var(--theme-primary); border-color: rgba(59,130,246,0.3); }
.blog-slider-arrow svg { width: 1.25rem; height: 1.25rem; }
.blog-slider-prev { left: -3.25rem; }
.blog-slider-next { right: -3.25rem; }

/* ============================================
   FAQ
   ============================================ */
.faq-section { scroll-margin-top: 4rem; }
.faq-inner { padding: 2.5rem 0 5rem; }
.faq-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; margin-bottom: 2rem; }

/* ============================================
   BOTTOM CTA
   ============================================ */
.bottom-cta-section { scroll-margin-top: 4rem; }
.bottom-cta-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  padding: 2.5rem 0 5rem; text-align: center;
}
.bottom-cta-headline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; }
.bottom-cta-subheadline { font-size: 1rem; color: var(--muted-foreground); max-width: 36rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { scroll-margin-top: 4rem; }
.contact-inner { padding: 2.5rem 0 5rem; }
.contact-headline { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-subheadline { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; }
.contact-info-item svg { width: 1.25rem; height: 1.25rem; color: var(--theme-primary); flex-shrink: 0; }
.contact-info-item a, .contact-info-item span { font-size: 0.9rem; color: var(--muted-foreground); text-decoration: none; }
.contact-info-item a:hover { color: var(--foreground); }
.contact-social { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.contact-social-link {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.15s ease-out, border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.contact-social-link:hover { color: var(--theme-primary); border-color: rgba(59,130,246,0.3); }
.contact-social-link svg { width: 1rem; height: 1rem; }

/* ============================================
   FOOTER — Footer8-inspired
   ============================================ */
.footer { border-top: 1px solid var(--border); padding: 4rem 1rem 2rem; }
.footer-grid {
  max-width: 80rem; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand-name { font-size: 1.125rem; font-weight: 500; }
.footer-brand-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; max-width: 20rem; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.footer-social-link {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.footer-social-link:hover { color: var(--theme-primary); border-color: rgba(59,130,246,0.3); }
.footer-social-link svg { width: 1rem; height: 1rem; }
.footer-col-title { font-size: 0.85rem; font-weight: 500; color: var(--foreground); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted-foreground); text-decoration: none; transition: color 0.15s ease-out; }
.footer-links a:hover { color: var(--foreground); }

.footer-contact-links { margin-top: 0.25rem; gap: 0.375rem; }
.footer-contact-links li { font-size: 0.85rem; color: var(--muted-foreground); }
.footer-contact-links a { font-size: 0.85rem; color: var(--muted-foreground); text-decoration: none; transition: color 0.15s ease-out; }
.footer-contact-links a:hover { color: var(--foreground); }

/* Newsletter in grid column */
.footer-newsletter-desc { font-size: 0.85rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 0.75rem; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter-input {
  padding: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--foreground);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color 0.15s ease-out; text-align: center;
}
.footer-newsletter-input::placeholder { color: var(--muted-foreground); }
.footer-newsletter-input:focus { border-color: var(--theme-primary); }
.footer-newsletter-btn {
  padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  color: var(--muted-foreground); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: color 0.15s ease-out, border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.footer-newsletter-btn:hover { color: var(--foreground); border-color: var(--foreground); }
.footer-newsletter-disclaimer { font-size: 0.7rem; color: var(--muted-foreground); line-height: 1.4; margin-top: 0.25rem; }
.footer-newsletter-disclaimer a { color: var(--muted-foreground); text-decoration: underline; transition: color 0.15s ease-out; }
.footer-newsletter-disclaimer a:hover { color: var(--foreground); }

/* Uptime status */
.footer-status { display: inline-flex; align-items: center; gap: 0.375rem; }
.footer-status-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: var(--tf-green); flex-shrink: 0;
  animation: statusPulse 2.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(52,211,153,0); }
}
.footer-status-text { font-size: 0.75rem; color: var(--muted-foreground); }

.footer-bottom {
  max-width: 80rem; margin: 2rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted-foreground);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--background);
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease-out;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--foreground);
  cursor: pointer; touch-action: manipulation;
}
.mobile-menu-close:hover { background: var(--muted); }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 0; }
.mobile-menu-nav a {
  display: block; padding: 1rem 0;
  font-size: 1.25rem; font-weight: 500; color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease-out;
}
.mobile-menu-nav a:hover { color: var(--theme-primary); }
.mobile-menu-actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 2rem;
}
.mobile-menu-actions .btn, .mobile-menu-actions .btn-glow {
  width: 100%; justify-content: center; padding: 0.75rem 1.5rem; font-size: 1rem;
}
.mobile-menu-actions .btn-ghost { border: 1px solid var(--border); }

/* ============================================
   LANGUAGE DROPDOWN — Emil-optimized
   ============================================ */
.lang-dropdown { position: relative; display: inline-flex; }
.lang-dropdown-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  color: var(--muted-foreground); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
  touch-action: manipulation;
}
.lang-dropdown-btn:hover { background-color: var(--muted); color: var(--foreground); }
.lang-dropdown-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.lang-dropdown-btn svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 0.375rem); right: 0; min-width: 130px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.25rem; display: none; z-index: 60; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  font-size: 0.8rem; border-radius: calc(var(--radius) - 0.125rem);
  cursor: pointer; transition: background-color 0.15s ease-out; color: var(--foreground); text-decoration: none;
}
.lang-dropdown-item:hover { background: var(--muted); }
.lang-dropdown-item.active { color: var(--theme-primary); font-weight: 500; background: rgba(59,130,246,0.08); }

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  font-size: 0.8rem; font-weight: 500;
  color: var(--muted-foreground); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.theme-toggle:hover { background-color: var(--muted); color: var(--foreground); }
.theme-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.theme-toggle svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

/* ============================================
   STAGGER KEYFRAMES
   ============================================ */
@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-headline { font-size: 2.25rem; }
  .hero-mockup-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-top { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-value { font-size: 2rem; }
  .stats-big-number { font-size: 3.5rem; }
  .stats-growth-row { flex-direction: column; gap: 0.75rem; }
  .features-v15-split { grid-template-columns: 1fr; gap: 2rem; }
  .features-v15-visual { order: -1; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial-horizontal { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .testimonial-content { align-items: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .blog-slide { flex: 0 0 100%; }
  .blog-slider-prev { left: 0.5rem; }
  .blog-slider-next { right: 0.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .hero-headline { font-size: 1.75rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn, .hero-cta-group .btn-glow { width: 100%; }
  .hero-mockup-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-top { grid-template-columns: 1fr 1fr; }
  .stat-item:last-child { grid-column: 1 / -1; }
  .stats-big-number { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOVER GUARD — Emil principle
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background-color: #2563EB; }
  .btn-outline:hover { background-color: var(--muted); }
  .btn-ghost:hover { background-color: var(--muted); }
  .btn-glow:hover { opacity: 0.9; transform: translateY(-1px); }
  .hero-tab:hover { color: var(--theme-primary); border-color: rgba(59,130,246,0.3); }
  .accordion-trigger:hover { color: var(--theme-primary); }
  .logo-item:hover .logo-item-overlay { opacity: 1; }
  .logo-item-overlay a:hover { color: var(--theme-primary); }
  .video-placeholder:hover { border-color: rgba(59,130,246,0.3); }
  .video-play-btn:hover { transform: scale(1.05); }
  .step-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
  .step-card .step-link:hover { text-decoration: underline; }
  .pricing-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
  .contact-social-link:hover { color: var(--theme-primary); border-color: rgba(59,130,246,0.3); }
  .contact-info-item a:hover { color: var(--foreground); }
  .footer-links a:hover { color: var(--foreground); }
  .lang-dropdown-btn:hover { background-color: var(--muted); color: var(--foreground); }
  .lang-dropdown-item:hover { background: var(--muted); }
  .notification-bar a:hover { text-decoration: underline; }
  .badge a:hover { text-decoration: underline; }
}

/* ============================================
   REDUCED MOTION — Emil principle
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-glow { animation: none; }
  .step-card, .pricing-card {
    opacity: 1; transform: none; animation: none;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
h1, h2, h3 { text-wrap: balance; }
.tabular-nums { font-variant-numeric: tabular-nums; }
html { overscroll-behavior: none; }

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  opacity: 1;
  transition: opacity 0.4s ease-out;
}
.skeleton-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Skeleton header bar */
.skeleton-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
  margin-bottom: 0.5rem;
}

/* Skeleton hero block */
.skeleton-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem 2rem;
  flex: 1;
}

/* Shimmer base */
.sk {
  border-radius: 0.5rem;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: shimmer 1.4s infinite;
}
html.light .sk::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Skeleton sizing */
.sk-logo { width: 7rem; height: 1.5rem; }
.sk-nav { display: flex; gap: 1.5rem; }
.sk-nav-item { width: 4rem; height: 1rem; }
.sk-hero-title { width: min(90%, 32rem); height: 2.5rem; }
.sk-hero-sub { width: min(80%, 28rem); height: 1.5rem; }
.sk-hero-sub2 { width: min(70%, 24rem); height: 1.5rem; }
.sk-hero-btn { width: 10rem; height: 2.75rem; border-radius: var(--radius); }
.sk-hero-img { width: min(90%, 40rem); height: 16rem; margin-top: 1.5rem; border-radius: var(--radius); }

/* Skeleton content blocks */
.sk-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1rem;
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
}
.sk-block { height: 1rem; }
.sk-block.short { width: 60%; }
.sk-block.medium { width: 80%; }
.sk-block.full { width: 100%; }

@media (max-width: 640px) {
  .sk-nav { display: none; }
  .sk-logo { width: 5rem; }
}

/* ============================================
   SCROLL ANIMATIONS — IntersectionObserver
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate="fade"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(-2rem); }
[data-animate="slide-right"] { transform: translateX(2rem); }
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}
