/*
 * Berk Software — shared experience layer
 * Keeps each product's identity while giving the whole site one calm, modern UI.
 */

.site-ui {
  --ui-bg: #070b14;
  --ui-bg-soft: #0b1120;
  --ui-surface: rgba(17, 25, 43, 0.76);
  --ui-surface-strong: rgba(21, 31, 52, 0.94);
  --ui-text: #f4f7fb;
  --ui-muted: #a9b5c8;
  --ui-border: rgba(255, 255, 255, 0.09);
  --ui-border-hover: rgba(129, 140, 248, 0.35);
  --ui-primary: #818cf8;
  --ui-primary-strong: #6366f1;
  --ui-primary-soft: rgba(129, 140, 248, 0.14);
  --ui-accent: #67e8f9;
  --ui-radius-sm: 12px;
  --ui-radius: 18px;
  --ui-radius-lg: 26px;
  --ui-shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.18);
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --ui-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
  background: var(--ui-bg);
}

.site-ui.ui-light {
  --ui-bg: #f7f8fc;
  --ui-bg-soft: #eef1f8;
  --ui-surface: rgba(255, 255, 255, 0.82);
  --ui-surface-strong: rgba(255, 255, 255, 0.96);
  --ui-text: #172033;
  --ui-muted: #5d687b;
  --ui-border: rgba(24, 32, 51, 0.1);
  --ui-border-hover: rgba(99, 102, 241, 0.3);
  --ui-primary: #5b5fe5;
  --ui-primary-strong: #494cc8;
  --ui-primary-soft: rgba(91, 95, 229, 0.1);
  --ui-shadow-sm: 0 12px 34px rgba(32, 43, 74, 0.08);
  --ui-shadow: 0 24px 70px rgba(32, 43, 74, 0.13);
  color-scheme: light;
}

.site-ui,
.site-ui body {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

.site-ui body {
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(99, 102, 241, 0.15), transparent 62%),
    radial-gradient(760px 520px at 100% 4%, rgba(34, 211, 238, 0.08), transparent 58%),
    var(--ui-bg) !important;
  color: var(--ui-text);
  font-family: 'Outfit', 'Inter', 'Plus Jakarta Sans', 'Sora', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  letter-spacing: -0.008em;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-ui.ui-light body {
  background:
    radial-gradient(800px 520px at 0% 0%, rgba(99, 102, 241, 0.09), transparent 60%),
    radial-gradient(700px 480px at 100% 12%, rgba(14, 165, 233, 0.07), transparent 58%),
    var(--ui-bg) !important;
}

.site-ui * { box-sizing: border-box; }

.site-ui ::selection {
  color: #fff;
  background: rgba(99, 102, 241, 0.55);
}

.site-ui :where(h1, h2, h3, h4) {
  color: var(--ui-text);
  font-family: 'Space Grotesk', 'Manrope', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.site-ui :where(h1) { font-size: clamp(2.45rem, 6vw, 5.4rem); }
.site-ui :where(h2) { font-size: clamp(1.85rem, 3.8vw, 3.25rem); }
.site-ui :where(h3) { letter-spacing: -0.02em; }
.site-ui :where(p, li) { text-wrap: pretty; }
.site-ui :where(p) { color: var(--ui-muted); }

.site-ui :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--ui-accent) !important;
  outline-offset: 3px !important;
  border-radius: 10px;
}

.site-ui :where(a, button) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-ui :where(img, video) {
  max-width: 100%;
}

.site-ui :where(img) {
  height: auto;
}

.site-ui .ui-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ui-primary-strong);
  box-shadow: var(--ui-shadow-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.site-ui .ui-skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-ui :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav) {
  min-height: 68px;
  border-bottom: 1px solid var(--ui-border) !important;
  background: color-mix(in srgb, var(--ui-bg) 78%, transparent) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-ui :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav).ui-nav-scrolled {
  background: color-mix(in srgb, var(--ui-bg-soft) 92%, transparent) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.site-ui .site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
}

.site-ui .site-nav__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-ui .site-nav__brand,
.site-ui .site-nav__links,
.site-ui .site-nav__links a {
  display: flex;
  align-items: center;
}

.site-ui .site-nav__brand {
  gap: 0.7rem;
  color: var(--ui-text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-ui .site-nav__brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

.site-ui .site-nav__links { gap: 0.35rem; }

.site-ui .site-nav__links a,
.site-ui .ui-mobile-drawer a {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  color: var(--ui-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-ui .site-nav__links a:hover,
.site-ui .site-nav__links a[aria-current='page'],
.site-ui .ui-mobile-drawer a:hover {
  color: var(--ui-text);
  background: var(--ui-primary-soft);
}

.site-ui .ui-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  color: var(--ui-text);
  background: var(--ui-surface);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-ui .ui-menu-toggle svg { width: 21px; height: 21px; }

.site-ui .ui-mobile-drawer {
  position: fixed;
  top: 76px;
  left: 1rem;
  right: 1rem;
  z-index: 998;
  max-height: calc(100dvh - 92px);
  padding: 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms var(--ui-ease);
}

.site-ui .ui-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.site-ui .ui-mobile-drawer a {
  display: flex;
  width: 100%;
  min-height: 48px;
}

/* Buttons and controls */
.site-ui :where(.btn, .btn-primary, .btn-main, .btn-glow, .nav-cta, .download-btn, .cta-button, .filter-btn) {
  min-height: 46px;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms var(--ui-ease), box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease !important;
}

.site-ui :where(.btn, .btn-primary, .btn-main, .btn-glow, .nav-cta, .download-btn, .cta-button):hover {
  transform: translateY(-2px);
  filter: saturate(1.06) brightness(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.site-ui :where(.btn, .btn-primary, .btn-main, .btn-glow, .nav-cta, .download-btn, .cta-button):active {
  transform: translateY(0) scale(0.985);
}

.site-ui :where(input, textarea, select) {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ui-border) !important;
  border-radius: 14px !important;
  color: var(--ui-text) !important;
  background: color-mix(in srgb, var(--ui-surface-strong) 86%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-ui textarea { min-height: 130px; resize: vertical; }
.site-ui :where(input, textarea)::placeholder { color: color-mix(in srgb, var(--ui-muted) 74%, transparent); }

/* Surfaces */
.site-ui :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .download-card, .card, .glass) {
  border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius-lg) !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-surface) 94%, white 2%), var(--ui-surface)) !important;
  box-shadow: var(--ui-shadow-sm);
}

.site-ui :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .card) {
  transition: transform 240ms var(--ui-ease), border-color 240ms ease, box-shadow 240ms ease !important;
}

.site-ui :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .card):hover {
  transform: translateY(-4px) !important;
  border-color: var(--ui-border-hover) !important;
  box-shadow: var(--ui-shadow) !important;
}

.site-ui :where(section) { scroll-margin-top: 88px; }

.site-ui :where(footer) {
  border-top-color: var(--ui-border) !important;
}

.site-ui .ui-table-wrap {
  max-width: 100%;
  margin-block: 1.5rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  overflow-x: auto;
  box-shadow: var(--ui-shadow-sm);
}

.site-ui .ui-table-wrap table { width: 100%; margin: 0; }

/* Blog and long-form reading */
.site-ui[data-ui-page='blog'] .nav-bar,
.site-ui[data-ui-page='article'] .nav-bar { padding-inline: clamp(1rem, 4vw, 3rem); }

.site-ui[data-ui-page='blog'] :where(.blog-card, article),
.site-ui[data-ui-page='article'] :where(article, #modal-content) {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
}

.site-ui[data-ui-page='article'] :where(main, article, #modal-content),
.site-ui[data-ui-page='policy'] .policy-shell,
.site-ui[data-ui-page='policy'] body > .container {
  max-width: 820px;
}

.site-ui[data-ui-page='policy'] body { padding: 7rem 1rem 3rem !important; }

.site-ui[data-ui-page='policy'] body > :where(.container, main),
.site-ui[data-ui-page='policy'] .policy-shell {
  margin-inline: auto !important;
  padding: clamp(1.4rem, 5vw, 3.5rem) !important;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  color: var(--ui-text);
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow);
}

.site-ui[data-ui-page='policy'] :where(h1, h2, h3) { color: var(--ui-text) !important; }
.site-ui[data-ui-page='policy'] h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; }
.site-ui[data-ui-page='policy'] h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin: 2.2rem 0 0.75rem; }
.site-ui[data-ui-page='policy'] :where(p, li) { color: var(--ui-muted) !important; }

/* Tiny utility pages still feel intentional. */
.site-ui[data-ui-page='utility'] body {
  min-height: 100dvh;
  padding: 7rem 1.25rem 3rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.site-ui[data-ui-page='utility'] body > :not(.site-nav):not(.ui-skip-link):not(.ui-progress):not(.ui-back-top) {
  max-width: 720px;
}

/* Lightweight functional helpers */
.site-ui .ui-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.site-ui .ui-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--ui-primary-strong), var(--ui-accent));
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.45);
}

.site-ui .ui-back-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 900;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  color: var(--ui-text);
  background: var(--ui-surface-strong);
  box-shadow: var(--ui-shadow-sm);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms var(--ui-ease);
}

.site-ui .ui-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-ui .ui-back-top svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
  .site-ui { scroll-padding-top: 5.25rem; }

  .site-ui body {
    background:
      radial-gradient(620px 440px at 0% -8%, rgba(99, 102, 241, 0.14), transparent 65%),
      var(--ui-bg) !important;
  }

  .site-ui .site-nav__inner { width: min(100% - 1.25rem, 1180px); }
  .site-ui .site-nav__links { display: none; }
  .site-ui .ui-menu-toggle { display: inline-flex; flex: 0 0 44px; }

  .site-ui .ui-nav-desktop { display: none !important; }

  .site-ui .ui-menu-host {
    margin-left: auto;
    display: flex !important;
    align-items: center;
  }

  .site-ui :where(h1) { letter-spacing: -0.045em; }

  .site-ui :where(.hero, .hero-section) {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }

  .site-ui :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .download-card, .card) {
    border-radius: 20px !important;
  }

  .site-ui :where(.hero-actions, .hero-buttons) > :where(a, button) {
    width: 100%;
  }

  .site-ui .ui-back-top { width: 46px; height: 46px; border-radius: 15px; }
}

@media (hover: none) {
  .site-ui :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .card):hover {
    transform: none !important;
    box-shadow: var(--ui-shadow-sm) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ui,
  .site-ui body { scroll-behavior: auto !important; }

  .site-ui *,
  .site-ui *::before,
  .site-ui *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-ui .site-nav,
  .site-ui .ui-skip-link,
  .site-ui .ui-progress,
  .site-ui .ui-back-top,
  .site-ui .ui-menu-toggle,
  .site-ui .ui-mobile-drawer { display: none !important; }

  .site-ui body { background: #fff !important; color: #111827 !important; }
  .site-ui[data-ui-page='policy'] body { padding: 0 !important; }
  .site-ui[data-ui-page='policy'] body > :where(.container, main) { box-shadow: none; border: 0; }
}

/* ========================================================================== 
   2026 studio redesign — intentionally visible, light and editorial
   ========================================================================== */

.ui-redesign {
  --ui-bg: #f3f5f9;
  --ui-bg-soft: #e9edf5;
  --ui-surface: rgba(255, 255, 255, 0.78);
  --ui-surface-strong: #ffffff;
  --ui-text: #161d2d;
  --ui-muted: #657086;
  --ui-border: rgba(23, 32, 51, 0.1);
  --ui-border-hover: color-mix(in srgb, var(--ui-primary) 36%, transparent);
  --ui-primary: #5368e8;
  --ui-primary-strong: #3f51cb;
  --ui-primary-soft: rgba(83, 104, 232, 0.1);
  --ui-accent: #1fb6d5;
  --ui-shadow-sm: 0 16px 42px rgba(40, 50, 78, 0.07);
  --ui-shadow: 0 30px 80px rgba(40, 50, 78, 0.13);
  color-scheme: light;
  background: var(--ui-bg);
}

.ui-redesign[data-ui-accent='indigo'] { --ui-primary: #6157e8; --ui-primary-strong: #4c43ca; --ui-primary-soft: rgba(97, 87, 232, 0.11); --ui-accent: #887cff; }
.ui-redesign[data-ui-accent='cyan'] { --ui-primary: #087f9f; --ui-primary-strong: #06677f; --ui-primary-soft: rgba(8, 127, 159, 0.1); --ui-accent: #16b8d6; }
.ui-redesign[data-ui-accent='emerald'] { --ui-primary: #168565; --ui-primary-strong: #0e6a50; --ui-primary-soft: rgba(22, 133, 101, 0.1); --ui-accent: #29b88e; }
.ui-redesign[data-ui-accent='violet'] { --ui-primary: #7c4fd1; --ui-primary-strong: #663ab9; --ui-primary-soft: rgba(124, 79, 209, 0.1); --ui-accent: #a36ee9; }
.ui-redesign[data-ui-accent='amber'] { --ui-primary: #b56d08; --ui-primary-strong: #965807; --ui-primary-soft: rgba(181, 109, 8, 0.1); --ui-accent: #e5a52d; }
.ui-redesign[data-ui-accent='pink'] { --ui-primary: #c04479; --ui-primary-strong: #a33363; --ui-primary-soft: rgba(192, 68, 121, 0.1); --ui-accent: #e46a9f; }

.ui-redesign body {
  background:
    radial-gradient(920px 620px at -10% -5%, color-mix(in srgb, var(--ui-primary) 15%, transparent), transparent 65%),
    radial-gradient(760px 560px at 110% 4%, color-mix(in srgb, var(--ui-accent) 12%, transparent), transparent 62%),
    linear-gradient(180deg, #f8f9fc 0%, var(--ui-bg) 36%, #eef1f6 100%) !important;
  color: var(--ui-text) !important;
}

.ui-redesign .ui-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.ui-redesign .ui-ambient span {
  position: absolute;
  width: 24rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  background: color-mix(in srgb, var(--ui-primary) 9%, white);
}

.ui-redesign .ui-ambient span:nth-child(1) { top: 8%; left: -14rem; }
.ui-redesign .ui-ambient span:nth-child(2) { top: 44%; right: -17rem; background: color-mix(in srgb, var(--ui-accent) 8%, white); }
.ui-redesign .ui-ambient span:nth-child(3) { bottom: -14rem; left: 34%; width: 31rem; opacity: 0.34; }

.ui-redesign :where(.bg-mesh, .glow-bg) { opacity: 0.12 !important; }
.ui-redesign :where(.blob) { opacity: 0.08 !important; filter: blur(130px) !important; }
.ui-redesign :where(.text-white, .text-slate-100) { color: var(--ui-text); }
.ui-redesign :where(.text-slate-200, .text-slate-300, .text-slate-400, .text-gray-600) { color: var(--ui-muted); }
.ui-redesign :where(p, li) { color: var(--ui-muted); }

.ui-redesign :where(h1, h2, h3, h4) {
  color: var(--ui-text) !important;
  letter-spacing: -0.045em;
}

.ui-redesign :where(h1) {
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
}

.ui-redesign :where(h2) { line-height: 1.03; }

/* Floating navigation is the primary visual anchor on every route. */
.ui-redesign :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav) {
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 14px 40px rgba(34, 45, 72, 0.09) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  overflow: visible;
}

.ui-redesign :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav).ui-nav-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(23, 32, 51, 0.08) !important;
  box-shadow: 0 18px 50px rgba(34, 45, 72, 0.13) !important;
}

.ui-redesign :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav) :where(a, span) {
  color: var(--ui-muted);
}

.ui-redesign :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav) :where(a:first-child, .brand, .nav-logo) :where(span) {
  color: var(--ui-text) !important;
}

.ui-redesign .site-nav__brand img,
.ui-redesign :where(body > nav, .nav-bar) img {
  border-radius: 14px !important;
}

.ui-redesign .site-nav__links a:hover,
.ui-redesign .site-nav__links a[aria-current='page'] {
  color: var(--ui-primary);
  background: var(--ui-primary-soft);
}

.ui-redesign .ui-menu-toggle {
  color: var(--ui-text);
  border-color: var(--ui-border);
  background: #f6f7fb;
  box-shadow: none;
}

.ui-redesign .ui-mobile-drawer {
  top: 90px;
  color: var(--ui-text);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ui-shadow);
}

/* Buttons are tactile, rounded rectangles instead of generic pills. */
.ui-redesign :where(.btn-primary, .btn-main, .btn-glow, .nav-cta, .download-btn, .cta-button) {
  border: 1px solid color-mix(in srgb, var(--ui-primary) 72%, white) !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-strong)) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ui-primary) 22%, transparent) !important;
}

.ui-redesign :where(.btn-secondary) {
  color: var(--ui-primary) !important;
  border-color: color-mix(in srgb, var(--ui-primary) 25%, transparent) !important;
  background: var(--ui-primary-soft) !important;
}

.ui-redesign :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .download-card, .download-option, .card, .glass) {
  color: var(--ui-text);
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 16px 44px rgba(39, 51, 81, 0.07) !important;
}

.ui-redesign :where(.glass-card, .project-card, .feature-card, .comment-card, .testimonial-card, .pricing-card, .card):hover {
  border-color: var(--ui-border-hover) !important;
  box-shadow: 0 28px 70px rgba(39, 51, 81, 0.14) !important;
}

/* Home: the old centered hero becomes an asymmetric studio bento. */
.ui-redesign[data-ui-page='home'] .ui-home-stage {
  width: 100%;
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero {
  min-height: 600px;
  margin: 0 !important;
  padding: clamp(2rem, 5vw, 4.5rem) !important;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(520px 420px at 100% 0%, color-mix(in srgb, var(--ui-primary) 16%, transparent), transparent 68%),
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,248,253,0.92));
  box-shadow: var(--ui-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left !important;
  overflow: hidden;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero > div:first-child {
  margin: 0 0 2.25rem !important;
  border-color: rgba(23, 32, 51, 0.1) !important;
  background: #111827 !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14) !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero .hero-logo {
  width: 84px !important;
  height: 84px !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-kicker {
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ui-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ui-redesign[data-ui-page='home'] .ui-home-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ui-primary);
  box-shadow: 0 0 0 6px var(--ui-primary-soft);
}

.ui-redesign[data-ui-page='home'] .ui-home-hero h1 {
  margin-bottom: 1.4rem !important;
  color: var(--ui-text) !important;
  font-size: clamp(3.5rem, 7.3vw, 7rem) !important;
  letter-spacing: -0.075em;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero p {
  max-width: 680px;
  margin: 0 0 2.1rem !important;
  color: var(--ui-muted) !important;
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero .flex { justify-content: flex-start !important; }

.ui-redesign[data-ui-page='home'] .ui-home-hero a[href*='projects'] {
  color: #fff !important;
  border: 1px solid #1d293f !important;
  background: #1d293f !important;
  box-shadow: 0 12px 28px rgba(29, 41, 63, 0.14);
}

.ui-redesign[data-ui-page='home'] .ui-home-stats {
  width: 100%;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats > * {
  min-height: 138px;
  padding: 1.5rem !important;
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--ui-shadow-sm) !important;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-content: center;
  text-align: left !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats > * > :first-child {
  grid-row: 1 / 3;
  margin: 0 !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats > * > :nth-child(2) {
  align-self: end;
  color: var(--ui-primary) !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats > * > :nth-child(3) {
  color: var(--ui-muted) !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stage ~ section {
  width: 100%;
  margin-bottom: 1.5rem !important;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ui-shadow-sm);
}

.ui-redesign[data-ui-page='home'] .ui-home-stage ~ section:nth-of-type(even) {
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-primary) 8%, white), rgba(255,255,255,0.88));
}

.ui-redesign[data-ui-page='home'] footer {
  width: 100%;
  margin-top: 1rem;
  padding: 3rem !important;
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  border-radius: 34px;
  background: #182033;
  color: #fff;
}

.ui-redesign[data-ui-page='home'] footer :where(h2, h3, h4, a, .text-white) { color: #fff !important; }
.ui-redesign[data-ui-page='home'] footer :where(p, li, .text-slate-400) { color: #acb7c9 !important; }

/* Projects get a clear editorial intro and a sticky filter rail. */
.ui-redesign[data-ui-page='landing'] main > div:first-child:not(.grid) {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 34px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-primary) 10%, white), rgba(255,255,255,0.9));
  box-shadow: var(--ui-shadow-sm);
}

.ui-redesign .filter-btn {
  color: var(--ui-muted) !important;
  border: 1px solid var(--ui-border) !important;
  background: rgba(255,255,255,0.82) !important;
  box-shadow: none !important;
}

.ui-redesign .filter-btn.active-filter {
  color: #fff !important;
  border-color: var(--ui-primary) !important;
  background: var(--ui-primary) !important;
  box-shadow: 0 10px 24px var(--ui-primary-soft) !important;
}

.ui-redesign .project-card,
.ui-redesign #projects-grid > div {
  border-radius: 30px !important;
  background: #fff !important;
  overflow: hidden;
}

.ui-redesign .project-card :where(h2, h3),
.ui-redesign #projects-grid > div :where(h2, h3) { color: var(--ui-text) !important; }

/* Product routes become a stack of large soft canvases. */
.ui-redesign[data-ui-page='landing'] body > section,
.ui-redesign[data-ui-page='landing'] body > main > section,
.ui-redesign[data-ui-page='landing'] .hero-section,
.ui-redesign[data-ui-page='landing'] .features-section,
.ui-redesign[data-ui-page='landing'] .showcase-section,
.ui-redesign[data-ui-page='landing'] .comments-section,
.ui-redesign[data-ui-page='landing'] .download-section {
  width: min(1320px, calc(100% - 2rem));
  margin: 1.2rem auto !important;
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  border-radius: 34px;
  background-color: rgba(255, 255, 255, 0.82) !important;
  box-shadow: var(--ui-shadow-sm);
  overflow: hidden;
}

.ui-redesign[data-ui-page='landing'] body > section:first-of-type,
.ui-redesign[data-ui-page='landing'] body > main > section:first-of-type,
.ui-redesign[data-ui-page='landing'] .hero-section {
  margin-top: 6.5rem !important;
  background:
    radial-gradient(620px 480px at 100% 0%, color-mix(in srgb, var(--ui-accent) 16%, transparent), transparent 68%),
    linear-gradient(145deg, color-mix(in srgb, var(--ui-primary) 9%, white), rgba(255,255,255,0.94)) !important;
}

.ui-redesign[data-ui-page='landing'] :where(.hero, .hero-section, body > section:first-of-type) :where(h1, h2, h3) {
  color: var(--ui-text) !important;
}

.ui-redesign[data-ui-page='landing'] :where(.hero, .hero-section, body > section:first-of-type) :where(p, li) {
  color: var(--ui-muted) !important;
}

.ui-redesign[data-ui-page='landing'] :where(.hero-gradient, .animated-bg, .field-pattern) {
  color: var(--ui-text);
}

.ui-redesign[data-ui-page='landing'] :where(.hero, .hero-section, body > section:first-of-type)
  :where(a, button):not(.btn-primary):not(.btn-main):not(.download-btn):not(.nav-cta):not(.ui-product-primary) {
  color: var(--ui-text) !important;
  border-color: color-mix(in srgb, var(--ui-primary) 25%, transparent) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 28px rgba(39, 51, 81, 0.08);
}

.ui-redesign[data-ui-page='landing'] :where(.hero, .hero-section, body > section:first-of-type)
  .inline-flex:not(a):not(button):not(.btn-primary) {
  border-color: color-mix(in srgb, var(--ui-primary) 20%, transparent) !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

.ui-redesign[data-ui-route='berk-futbol-akademi'] body > section:first-of-type > .absolute.inset-0:first-child {
  background: linear-gradient(145deg, rgba(238, 248, 255, 0.96), rgba(244, 242, 255, 0.96)) !important;
}

.ui-redesign[data-ui-route='why-cant-we-be-friends'] body > section:first-of-type > .absolute.inset-0:first-child {
  display: none;
}

.ui-redesign[data-ui-route='berkplayer'] .hero-title {
  background: linear-gradient(135deg, #a86000, #ce8610) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.ui-redesign[data-ui-route='berkplayer'] .btn-nav {
  color: #3c2700 !important;
  border-color: #e5a52d !important;
  background: #f5c84b !important;
}

.ui-redesign:is([data-ui-route='boa'], [data-ui-route='sosyallink'], [data-ui-route='berk-futbol-akademi'])
  body > section:first-of-type .grid.grid-cols-2 > div {
  padding: 1.1rem !important;
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 12px 30px rgba(39, 51, 81, 0.06);
}

.ui-redesign[data-ui-page='landing'] :where(.showcase-section, .comments-section, .features-section) {
  color: var(--ui-text);
}

.ui-redesign[data-ui-page='landing'] :where(.visualizer-mockup, .mockup-wrapper, .download-option) {
  border-color: var(--ui-border) !important;
  background: #f7f8fc !important;
}

.ui-redesign[data-ui-page='landing'] footer {
  width: min(1320px, calc(100% - 2rem));
  margin: 1.25rem auto 1rem !important;
  border: 0 !important;
  border-radius: 32px;
  color: #fff;
  background: #182033 !important;
}

.ui-redesign[data-ui-page='landing'] footer :where(h2, h3, h4, a, .text-white, .text-slate-100) { color: #fff !important; }
.ui-redesign[data-ui-page='landing'] footer :where(p, li, .text-slate-400, .text-slate-300) { color: #acb7c9 !important; }

/* Blog variables are remapped instead of fighting the older dark theme rule-by-rule. */
.ui-redesign[data-ui-page='blog'],
.ui-redesign[data-ui-page='article'] {
  --bg-primary: #f5f7fb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(23, 32, 51, 0.09);
  --border-hover: color-mix(in srgb, var(--ui-primary) 35%, transparent);
  --text-primary: #161d2d;
  --text-secondary: #657086;
  --text-muted: #8993a5;
  --glow-1: rgba(99, 102, 241, 0.08);
  --glow-2: rgba(139, 92, 246, 0.06);
}

.ui-redesign[data-ui-page='blog'] .hero-blog {
  width: min(1180px, calc(100% - 2rem));
  margin: 7rem auto 1.5rem;
  padding: clamp(2.75rem, 7vw, 6rem);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 38px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-primary) 9%, white), rgba(255,255,255,0.92));
  box-shadow: var(--ui-shadow-sm);
}

.ui-redesign[data-ui-page='blog'] :where(.blog-card, .search-section, #blog-posts > *) {
  border-color: var(--ui-border) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: var(--ui-shadow-sm) !important;
}

.ui-redesign[data-ui-page='article'] body > :where(main, article, .container) {
  margin-top: 7rem;
  border-radius: 34px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--ui-shadow-sm);
}

.ui-redesign[data-ui-page='policy'] body > :where(.container, main),
.ui-redesign[data-ui-page='policy'] .policy-shell {
  border-radius: 34px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--ui-shadow);
}

.ui-redesign .ui-back-top {
  color: #fff;
  border-color: color-mix(in srgb, var(--ui-primary) 70%, white);
  background: var(--ui-primary-strong);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ui-primary) 22%, transparent);
}

@media (max-width: 900px) {
  .ui-redesign[data-ui-page='home'] .ui-home-stage {
    grid-template-columns: 1fr;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .ui-redesign :where(body > nav, body > header.navbar, body > header.topbar, body > .nav-bar, .site-nav) {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    border-radius: 18px !important;
  }

  .ui-redesign .ui-mobile-drawer { top: 84px; }

  .ui-redesign[data-ui-page='home'] .ui-home-stage {
    margin-top: 0.8rem;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-hero {
    min-height: 570px;
    padding: 2rem !important;
    border-radius: 28px;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem) !important;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stats {
    grid-template-columns: 1fr !important;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stats > * {
    min-height: 112px;
    border-radius: 22px !important;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stage ~ section,
  .ui-redesign[data-ui-page='home'] footer,
  .ui-redesign[data-ui-page='landing'] body > section,
  .ui-redesign[data-ui-page='landing'] body > main > section,
  .ui-redesign[data-ui-page='landing'] :where(.hero-section, .features-section, .showcase-section, .comments-section, .download-section),
  .ui-redesign[data-ui-page='blog'] .hero-blog {
    border-radius: 26px;
  }

  .ui-redesign[data-ui-page='landing'] body > section,
  .ui-redesign[data-ui-page='landing'] body > main > section,
  .ui-redesign[data-ui-page='landing'] :where(.hero-section, .features-section, .showcase-section, .comments-section, .download-section) {
    width: calc(100% - 1rem);
    margin-block: 0.75rem !important;
  }

  .ui-redesign[data-ui-page='landing'] body > section:first-of-type,
  .ui-redesign[data-ui-page='landing'] body > main > section:first-of-type,
  .ui-redesign[data-ui-page='landing'] .hero-section {
    margin-top: 5.8rem !important;
  }
}

@media print {
  .ui-redesign body { background: #fff !important; }
  .ui-redesign .ui-ambient { display: none !important; }
}

/* ========================================================================== 
   Product landing rebuild — consistent contrast and a true two-column layout
   ========================================================================== */

.ui-product-page {
  --product-ink: #111827;
  --product-copy: #5d687b;
  --product-line: #e3e7ee;
}

.ui-product-page .ui-legacy-hero,
.ui-product-page .ui-legacy-heading {
  display: none !important;
}

.ui-product-page body {
  background: #f2f4f8 !important;
}

.ui-product-hero {
  position: relative;
  isolation: isolate;
  width: min(1320px, calc(100% - 2rem));
  min-height: 650px;
  margin: 6.6rem auto 1.25rem !important;
  padding: clamp(2rem, 5vw, 5rem) !important;
  border: 1px solid var(--product-line) !important;
  border-radius: 38px !important;
  background: #fff !important;
  box-shadow: 0 28px 90px rgba(31, 42, 68, 0.11) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr) !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  align-items: center;
  overflow: hidden;
}

.ui-product-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  top: -18rem;
  left: -16rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-primary) 13%, white);
  filter: blur(2px);
}

.ui-product-copy {
  min-width: 0;
}

.ui-product-badge {
  width: fit-content;
  margin-bottom: 1.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--ui-primary) 24%, transparent);
  border-radius: 12px;
  color: var(--ui-primary-strong);
  background: var(--ui-primary-soft);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ui-product-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ui-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ui-primary) 12%, transparent);
}

.ui-product-hero h1 {
  max-width: 760px;
  margin: 0 0 1.5rem !important;
  color: var(--product-ink) !important;
  font-size: clamp(3.25rem, 6vw, 6.2rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.07em !important;
}

.ui-product-description {
  max-width: 650px;
  margin: 0 0 2rem !important;
  color: var(--product-copy) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  line-height: 1.7 !important;
}

.ui-product-actions {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ui-product-actions a {
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ui-product-actions a:hover {
  transform: translateY(-2px);
}

.ui-product-primary {
  color: #fff !important;
  border: 1px solid var(--ui-primary-strong);
  background: var(--ui-primary-strong);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--ui-primary) 22%, transparent);
}

.ui-product-page .ui-product-hero .ui-product-primary {
  color: #fff !important;
  border-color: var(--ui-primary-strong) !important;
  background: var(--ui-primary-strong) !important;
}

.ui-product-primary span { font-size: 1.1rem; }

.ui-product-secondary {
  color: var(--product-ink) !important;
  border: 1px solid var(--product-line);
  background: #f6f7fa;
}

.ui-product-secondary:hover { background: #eef1f6; }

.ui-product-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ui-product-chips li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: #4f5a6e !important;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.ui-product-chips li span { color: var(--ui-primary); }

.ui-product-visual {
  position: relative;
  min-width: 0;
  min-height: 510px;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--ui-primary) 16%, var(--product-line));
  border-radius: 30px;
  background:
    radial-gradient(360px 300px at 90% 10%, color-mix(in srgb, var(--ui-accent) 20%, transparent), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--ui-primary) 10%, white), #f7f8fb);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ui-product-visual::after {
  content: '';
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  pointer-events: none;
}

.ui-product-visual-label {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 10px;
  color: var(--product-copy);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(39, 51, 81, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ui-product-visual img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 92%;
  max-height: 470px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 24px 54px rgba(25, 35, 58, 0.2);
}

.ui-product-page:is([data-ui-route='bilecik-yazilim'], [data-ui-route='berk-futbol-akademi'], [data-ui-route='bilecik-kolej-futbol-yonetim']) .ui-product-visual img {
  max-width: 72%;
  box-shadow: none;
}

.ui-product-section {
  position: relative;
  width: min(1240px, calc(100% - 2rem)) !important;
  margin: 1rem auto !important;
  padding: clamp(2rem, 5vw, 4.5rem) !important;
  border: 1px solid var(--product-line) !important;
  border-radius: 32px !important;
  color: var(--product-ink) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 55px rgba(39, 51, 81, 0.07) !important;
  overflow: hidden;
}

.ui-product-section:nth-of-type(even) {
  background: #f9fafc !important;
}

.ui-product-section > .absolute.inset-0 {
  opacity: 0.04 !important;
}

.ui-product-section :where(h1, h2, h3, h4) {
  color: var(--product-ink) !important;
  -webkit-text-fill-color: currentColor;
}

.ui-product-section :where(p, li) {
  color: var(--product-copy) !important;
}

.ui-product-page .ui-product-section .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.ui-product-page .ui-product-section h2 span,
.ui-product-page .ui-product-section h3 span {
  color: var(--ui-primary-strong) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}

.ui-product-page .ui-product-section :where(
  .feat-card,
  .feature-card,
  .step,
  .stat-item,
  .tech-card,
  .benefit-card,
  .event-card,
  .comment-card,
  .testimonial-card,
  .pricing-card,
  .download-option
) {
  color: var(--product-ink) !important;
  border: 1px solid var(--product-line) !important;
  background: #f6f8fb !important;
  box-shadow: 0 12px 32px rgba(39, 51, 81, 0.06) !important;
  opacity: 1 !important;
}

.ui-product-page .ui-product-section :where(
  .feat-card,
  .feature-card,
  .step,
  .stat-item,
  .tech-card,
  .benefit-card,
  .event-card,
  .comment-card,
  .testimonial-card,
  .pricing-card,
  .download-option
) :where(h3, h4, strong) {
  color: var(--product-ink) !important;
}

.ui-product-page .ui-product-section :where(
  .feat-card,
  .feature-card,
  .step,
  .stat-item,
  .tech-card,
  .benefit-card,
  .event-card,
  .comment-card,
  .testimonial-card,
  .pricing-card,
  .download-option
) :where(p, li, span) {
  color: var(--product-copy) !important;
  -webkit-text-fill-color: currentColor !important;
}

.ui-product-section [class*='bg-slate-9'],
.ui-product-section [class*='bg-gray-9'] {
  border-color: var(--product-line) !important;
  background-color: #f4f6f9 !important;
}

.ui-product-section :where(.feature-card, .comment-card, .testimonial-card, .pricing-card, .card, .glass) {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(39, 51, 81, 0.06) !important;
}

.ui-section-kicker {
  width: fit-content;
  margin: 0 auto 0.9rem;
  color: var(--ui-primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ui-product-section .text-left > .ui-section-kicker,
.ui-product-section :where(.showcase-text, .section-copy) > .ui-section-kicker {
  margin-left: 0;
}

/* Home is horizontal on desktop: wide hero, then one horizontal stats rail. */
.ui-redesign[data-ui-page='home'] .ui-home-stage {
  display: block !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero {
  width: 100%;
  min-height: 520px;
  padding: clamp(2.5rem, 6vw, 5.5rem) !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-hero p {
  max-width: 800px;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats {
  margin-top: 1rem !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.ui-redesign[data-ui-page='home'] .ui-home-stats > * {
  min-height: 136px;
}

@media (max-width: 900px) {
  .ui-product-hero {
    min-height: auto;
    grid-template-columns: 1fr !important;
  }

  .ui-product-visual {
    min-height: 420px;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .ui-product-hero {
    width: calc(100% - 1rem);
    margin-top: 5.8rem !important;
    padding: 1.5rem !important;
    border-radius: 26px !important;
    gap: 2.25rem !important;
  }

  .ui-product-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem) !important;
  }

  .ui-product-actions {
    flex-direction: column;
  }

  .ui-product-actions a { width: 100%; }

  .ui-product-chips { gap: 0.45rem; }

  .ui-product-visual {
    min-height: 360px;
    border-radius: 22px;
  }

  .ui-product-visual img {
    max-height: 330px;
    border-radius: 16px;
  }

  .ui-product-section {
    width: calc(100% - 1rem) !important;
    padding: 1.5rem !important;
    border-radius: 24px !important;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-hero {
    min-height: 500px;
  }

  .ui-redesign[data-ui-page='home'] .ui-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ---------- Testimonials Redesign Layer (Shared across subpages) ---------- */
.testimonials-section,
.section-testimonials,
section.testimonials,
#yorumlar.section {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 10;
  max-width: 1140px;
  margin: 0 auto;
}

.section-header h2,
.section-header h3,
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary, #f0f6fc);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-header p,
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary, #cbd5e1);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.testimonials-grid,
.reviews-grid,
.comments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-top: 2rem;
}

.testimonial-card,
.review-card,
.comment-card {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  text-align: left !important;
  min-height: auto !important;
  margin: 0 !important;
}

.testimonial-card:hover,
.review-card:hover,
.comment-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1) !important;
}

.stars,
.review-stars,
.comment-rating {
  color: #fbbf24 !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.25rem !important;
  display: flex !important;
  gap: 0.25rem !important;
}

.testimonial-content,
.review-text,
.comment-text {
  font-size: 0.925rem !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 1.75rem !important;
  font-style: italic !important;
  flex-grow: 1 !important;
}

.testimonial-author,
.review-header,
.comment-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  margin-bottom: 0 !important;
}

.author-avatar,
.review-avatar,
.comment-avatar {
  display: none !important; /* Hide old text avatar */
}

.testimonial-card__avatar-img,
.review-card__avatar-img,
.comment-card__avatar-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(99, 102, 241, 0.3) !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15) !important;
}

.author-info,
.review-meta,
.comment-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.author-info h5,
.review-name,
.comment-meta h3 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #f0f6fc !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.author-info p,
.review-meta,
.comment-meta p {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.review-source,
.comment-footer {
  display: none !important; /* Clean up auxiliary badge clutter */
}

@media (max-width: 992px) {
  .testimonials-grid,
  .reviews-grid,
  .comments-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .testimonials-grid,
  .reviews-grid,
  .comments-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Product-page contrast guard: legacy page rules must never lower readability. */
html.ui-product-page .ui-product-section :is(.testimonial-card, .review-card, .comment-card) {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(39, 51, 81, 0.07) !important;
}

html.ui-product-page .ui-product-section :is(.testimonial-content, .review-text, .comment-text),
html.ui-product-page .ui-product-section :is(.author-info, .review-meta, .comment-meta),
html.ui-product-page .ui-product-section :is(.author-info, .review-meta, .comment-meta) :is(p, span) {
  color: var(--product-copy) !important;
  -webkit-text-fill-color: currentColor !important;
}

html.ui-product-page .ui-product-section :is(.author-info, .review-meta, .comment-meta) :is(h3, h4, h5, strong) {
  color: var(--product-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html.ui-product-page .ui-product-section [class*='bg-slate-'],
html.ui-product-page .ui-product-section [class*='bg-gray-'] {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background-color: #f4f6f9 !important;
}

html.ui-product-page .ui-product-section :is(a, button).btn-primary {
  color: #fff !important;
  border-color: var(--ui-primary-strong) !important;
  background: var(--ui-primary-strong) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--ui-primary-strong) 22%, transparent) !important;
}

html.ui-product-page .ui-product-section :is(a, button).btn-secondary {
  color: var(--ui-primary-strong) !important;
  border-color: color-mix(in srgb, var(--ui-primary-strong) 24%, #d9dfeb) !important;
  background: #fff !important;
}

html.ui-product-page .ui-product-section :is(a, button).btn-primary *,
html.ui-product-page .ui-product-section :is(a, button).btn-secondary * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
