/* ============================================================
   LX HOME — Anasayfa'ya özel stiller
   Tokens + components + utilities yüklendikten sonra okunur.
   Sections: hero, creative, terminal, services, showcase,
   products (HPG), references, stats, blog, instagram.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.lx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: var(--lx-space-32) var(--lx-space-24);
  overflow: hidden;
  isolation: isolate;
}

.lx-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lx-space-12);
  align-items: center;
  width: 100%;
  margin-top: var(--lx-space-12);
}

@media (min-width: 1024px) {
  .lx-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--lx-space-16);
    margin-top: 0;
  }
}

.lx-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-6);
  max-width: 60ch;
}

.lx-hero__title {
  font-family: var(--lx-font-display);
  /* "Kodla İnşa Ediyoruz" 4 kelime — display token (max 7rem) yerine
     daha makul bir clamp; uzun satır taşmasın diye balance + auto-wrap. */
  font-size: clamp(2.25rem, 4.2vw + 0.5rem, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--lx-tracking-tighter);
  text-wrap: balance;
  margin: 0;
}

.lx-hero__title-line {
  display: block;
}

/* Aksent satır — gradient ile zaten vurucu, italic/wide override yapma */
.lx-hero__title-line--accent {
  font-weight: 800;
}

.lx-hero__lead {
  font-size: var(--lx-text-md);
  line-height: var(--lx-leading-relaxed);
  color: var(--lx-text-secondary);
  max-width: 56ch;
}

.lx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lx-space-4);
  margin-top: var(--lx-space-2);
}

/* — VISUAL: code editor mock — */
.lx-hero__visual {
  position: relative;
  display: none;
  height: 480px;
}

@media (min-width: 1024px) {
  .lx-hero__visual { display: block; }
}

.lx-hero__code {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.78);
  border: 1px solid var(--lx-border-base);
  border-radius: var(--lx-radius-2xl);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    var(--lx-shadow-2xl),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 80px rgba(80, 227, 255, 0.10);
  overflow: hidden;
  animation: lx-hero-code-float 8s var(--lx-ease-in-out) infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
}

@keyframes lx-hero-code-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

.lx-hero__code-bar {
  display: flex;
  align-items: center;
  gap: var(--lx-space-2);
  padding: var(--lx-space-3) var(--lx-space-4);
  background: rgba(2, 6, 15, 0.55);
  border-bottom: 1px solid var(--lx-border-subtle);
}

.lx-hero__code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.lx-hero__code-dot--red    { background: #ff5f57; }
.lx-hero__code-dot--amber  { background: #febc2e; }
.lx-hero__code-dot--green  { background: #28c840; }

.lx-hero__code-file {
  margin-left: var(--lx-space-3);
  font-family: var(--lx-font-mono);
  font-size: var(--lx-text-xs);
  color: var(--lx-text-tertiary);
  letter-spacing: var(--lx-tracking-wide);
}

.lx-hero__code-body {
  font-family: var(--lx-font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--lx-text-secondary);
  padding: var(--lx-space-6);
  margin: 0;
  background: transparent;
  border: none;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.lx-syn-key  { color: #c084fc; font-weight: 600; }
.lx-syn-var  { color: var(--lx-color-glow); }
.lx-syn-prop { color: var(--lx-color-primary-300); }
.lx-syn-str  { color: #4ade80; }
.lx-syn-bool { color: #fb923c; font-weight: 600; }
.lx-syn-fn   { color: #fbbf24; }
.lx-syn-this { color: #c084fc; font-style: italic; }

/* — Floating orbits — */
.lx-hero__orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.lx-hero__orbit--circle {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(80, 227, 255, 0.6), transparent 70%);
  top: -20px;
  right: -10px;
  animation: lx-float 9s var(--lx-ease-in-out) infinite;
}

.lx-hero__orbit--square {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(80, 227, 255, 0.25));
  bottom: 20px;
  left: -25px;
  animation: lx-float 11s var(--lx-ease-in-out) infinite reverse;
  filter: blur(4px);
}

@media (max-width: 768px) {
  .lx-hero { min-height: auto; padding-block: var(--lx-space-24) var(--lx-space-20); }
  .lx-hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .lx-hero__actions { gap: var(--lx-space-3); }
}

/* ============================================================
   CREATIVE
   ============================================================ */
.lx-creative {
  position: relative;
  background: var(--lx-surface-deep);
  overflow: hidden;
}

.lx-creative__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lx-space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .lx-creative__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--lx-space-16);
  }
}

.lx-creative__visual {
  position: relative;
  isolation: isolate;
}

.lx-creative__image-wrap {
  position: relative;
  border-radius: var(--lx-radius-2xl);
  overflow: hidden;
  border: 1px solid var(--lx-border-base);
  box-shadow: var(--lx-shadow-xl);
}

.lx-creative__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--lx-ease-out);
}

.lx-creative__image-wrap:hover .lx-creative__image { transform: scale(1.04); }

.lx-creative__dots {
  position: absolute;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(circle, var(--lx-color-glow) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.15;
  top: -22px;
  left: -22px;
  z-index: -1;
  animation: lx-dots-rotate 25s linear infinite;
}

@keyframes lx-dots-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.lx-creative__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--lx-color-primary-500), transparent 70%);
  border-radius: 50%;
  bottom: -40px;
  right: -30px;
  opacity: 0.25;
  filter: blur(60px);
  z-index: -1;
}

.lx-creative__content {
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-6);
}

.lx-creative__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--lx-space-4);
  margin-block: var(--lx-space-4);
}

.lx-creative__stat {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(80, 227, 255, 0.04));
  border: 1px solid var(--lx-border-brand);
  border-radius: var(--lx-radius-xl);
  padding: var(--lx-space-5);
  text-align: center;
  transition: transform var(--lx-transition-spring),
              border-color var(--lx-transition-base),
              box-shadow var(--lx-transition-base);
}

.lx-creative__stat:hover {
  transform: translateY(-4px);
  border-color: var(--lx-border-glow);
  box-shadow: var(--lx-glow-sm);
}

.lx-creative__stat-num {
  display: block;
  font-family: var(--lx-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--lx-font-weight-bold);
  letter-spacing: var(--lx-tracking-tighter);
  background: var(--lx-gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.lx-creative__stat-num small {
  font-size: 0.6em;
  vertical-align: super;
}

.lx-creative__stat-label {
  display: block;
  font-size: var(--lx-text-sm);
  color: var(--lx-text-tertiary);
  margin-top: var(--lx-space-2);
  font-weight: var(--lx-font-weight-medium);
}

.lx-creative__regions {
  font-size: var(--lx-text-sm);
  color: var(--lx-text-tertiary);
  line-height: var(--lx-leading-relaxed);
  max-width: 100%;
}

.lx-creative__regions strong { color: var(--lx-text-primary); margin-right: var(--lx-space-2); }

/* ============================================================
   TERMINAL — 4 tema
   ============================================================ */
.lx-terminal-section {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(80, 227, 255, 0.06), transparent 60%),
    var(--lx-surface-base);
}

.lx-terminal-themes {
  display: flex;
  align-items: center;
  gap: var(--lx-space-3);
  margin-bottom: var(--lx-space-6);
  flex-wrap: wrap;
}

.lx-terminal-themes__label {
  font-size: var(--lx-text-xs);
  font-weight: var(--lx-font-weight-semibold);
  letter-spacing: var(--lx-tracking-widest);
  text-transform: uppercase;
  color: var(--lx-text-tertiary);
  margin-right: var(--lx-space-2);
}

.lx-terminal-themes__btn {
  width: 28px;
  height: 28px;
  border-radius: var(--lx-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform var(--lx-transition-spring),
              border-color var(--lx-transition-fast),
              box-shadow var(--lx-transition-base);
}

.lx-terminal-themes__btn:hover { transform: scale(1.15); }

.lx-terminal-themes__btn.lx-active {
  border-color: var(--lx-color-glow);
  box-shadow: 0 0 12px rgba(80, 227, 255, 0.55);
}

.lx-terminal-themes__btn--classic { background: #1a1a1a; }
.lx-terminal-themes__btn--ubuntu  { background: #300a24; }
.lx-terminal-themes__btn--matrix  { background: #000; border-color: #0f0; }
.lx-terminal-themes__btn--light   { background: #f0f0f0; border-color: #2d3748; }

.lx-terminal {
  --term-bg:       #1a1a1a;
  --term-text:     #4ade80;
  --term-prompt:   #22c55e;
  --term-response: #f3f4f6;
  --term-border:   #2d2d2d;

  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--lx-radius-xl);
  overflow: hidden;
  box-shadow:
    var(--lx-shadow-2xl),
    0 0 60px rgba(80, 227, 255, 0.10);
  transition: background var(--lx-transition-base),
              border-color var(--lx-transition-base);
}

.lx-terminal--ubuntu { --term-bg: #300a24; --term-text: #fff;     --term-prompt: #ff7f50; --term-response: #e2e2e2; --term-border: #4a1942; }
.lx-terminal--matrix { --term-bg: #000;    --term-text: #00ff00;  --term-prompt: #00cc00; --term-response: #00ff95; --term-border: #003300; }
.lx-terminal--light  { --term-bg: #f0f0f0; --term-text: #2d3748;  --term-prompt: #2c5282; --term-response: #1a202c; --term-border: #e2e8f0; }

.lx-terminal__bar {
  display: flex;
  align-items: center;
  gap: var(--lx-space-2);
  padding: var(--lx-space-3) var(--lx-space-5);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--term-border);
}

.lx-terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.lx-terminal__dot--close    { background: #ef4444; }
.lx-terminal__dot--minimize { background: #eab308; }
.lx-terminal__dot--expand   { background: #22c55e; }

.lx-terminal__title {
  margin-left: var(--lx-space-3);
  font-family: var(--lx-font-mono);
  font-size: var(--lx-text-xs);
  color: var(--term-response);
  opacity: 0.6;
}

.lx-terminal__content {
  padding: var(--lx-space-8);
  font-family: var(--lx-font-mono);
  font-size: 1.05rem;
  line-height: var(--lx-leading-relaxed);
  min-height: 9rem;
  position: relative;
}

.lx-terminal__line {
  display: flex;
  align-items: center;
  gap: var(--lx-space-2);
  flex-wrap: wrap;
}

.lx-terminal__prompt { color: var(--term-prompt); font-weight: 700; }
.lx-terminal__typed  { color: var(--term-text); }

.lx-terminal__cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--term-text);
  margin-left: 2px;
  animation: lx-cursor-blink 1s step-end infinite;
}

.lx-terminal__response {
  margin-top: var(--lx-space-3);
  padding-left: var(--lx-space-6);
  color: var(--term-response);
  opacity: 0;
  transition: opacity var(--lx-transition-base);
}

@media (max-width: 640px) {
  .lx-terminal__content { padding: var(--lx-space-5); font-size: 0.92rem; min-height: 11rem; }
  .lx-terminal__bar { padding: var(--lx-space-3) var(--lx-space-4); }
  .lx-terminal__title { display: none; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.lx-services { position: relative; }

.lx-services__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-3);
  margin-top: var(--lx-space-5);
}

.lx-services__link {
  display: flex;
  align-items: center;
  gap: var(--lx-space-3);
  color: var(--lx-text-secondary);
  font-size: var(--lx-text-sm);
  padding-block: var(--lx-space-1);
  text-decoration: none;
  transition: color var(--lx-transition-fast),
              transform var(--lx-transition-base);
}

.lx-services__link:hover {
  color: var(--lx-color-glow-soft);
  transform: translateX(4px);
}

.lx-services__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lx-color-primary-500), var(--lx-color-glow));
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
  transition: transform var(--lx-transition-base);
}

.lx-services__link:hover .lx-services__bullet {
  transform: scale(1.4);
  box-shadow: 0 0 14px rgba(80, 227, 255, 0.65);
}

/* ============================================================
   SHOWCASE
   ============================================================ */
.lx-showcase {
  position: relative;
  overflow: hidden;
}

.lx-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lx-space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .lx-showcase__grid { grid-template-columns: 1fr 1.1fr; gap: var(--lx-space-16); }
}

.lx-showcase__content {
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-5);
}

.lx-showcase__visual { position: relative; }

/* projectCarousel (lx-carousel) — neon-border içindeki referans showcase */
.projectCarousel {
  width: 100%;
  position: relative;
  z-index: 2;
  background: var(--lx-surface-abyss);
}

.projectCarousel .lx-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   PRODUCTS — HPG (Home Products Gallery)
   Stacked card carousel, no Swiper dependency.
   ============================================================ */
.lx-products { position: relative; }

.lx-hpg {
  position: relative;
  height: 520px;
  perspective: 1200px;
  user-select: none;
  margin-top: var(--lx-space-12);
  /* alt margin: label (-90px) + dots + nefes payı */
  margin-bottom: calc(var(--lx-space-12) + 110px);
}

.lx-hpg__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.lx-hpg__card {
  --offset: 0;
  --abs-offset: 0;
  --max-offset: 5;

  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(280px, 70%, 520px);
  height: 100%;
  transform: translateX(-50%)
             translateX(calc(var(--offset) * 36%))
             translateZ(calc(var(--abs-offset) * -180px))
             scale(calc(1 - var(--abs-offset) * 0.12));
  opacity: calc(1 - var(--abs-offset) * 0.18);
  transition: transform 600ms var(--lx-ease-out),
              opacity 600ms var(--lx-ease-out);
  cursor: pointer;
  z-index: calc(10 - var(--abs-offset));
  pointer-events: auto;
}

.lx-hpg__card[style*="--abs-offset: 4"],
.lx-hpg__card[style*="--abs-offset: 5"],
.lx-hpg__card[style*="--abs-offset: 6"] { opacity: 0; pointer-events: none; }

.lx-hpg__inner {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lx-surface-elevated);
  border: 1px solid var(--lx-border-base);
  border-radius: var(--lx-radius-2xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--lx-shadow-xl);
  transition: border-color var(--lx-transition-base),
              box-shadow var(--lx-transition-base);
}

.lx-hpg__card--active .lx-hpg__inner {
  border-color: var(--lx-border-glow);
  box-shadow: var(--lx-shadow-2xl), var(--lx-glow-md);
}

.lx-hpg__img {
  height: 60%;
  overflow: hidden;
  background: var(--lx-surface-deep);
}

.lx-hpg__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-hpg__body {
  padding: var(--lx-space-6);
  height: 40%;
  display: flex;
  flex-direction: column;
  gap: var(--lx-space-2);
}

.lx-hpg__title {
  font-family: var(--lx-font-display);
  font-size: var(--lx-text-xl);
  font-weight: var(--lx-font-weight-bold);
  color: var(--lx-text-primary);
  line-height: var(--lx-leading-snug);
  margin: 0;
}

.lx-hpg__desc {
  font-size: var(--lx-text-sm);
  color: var(--lx-text-tertiary);
  line-height: var(--lx-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.lx-hpg__link {
  display: inline-flex;
  align-items: center;
  gap: var(--lx-space-2);
  font-size: var(--lx-text-sm);
  font-weight: var(--lx-font-weight-semibold);
  color: var(--lx-color-glow);
  margin-top: auto;
}

.lx-hpg__dots {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--lx-space-2);
  z-index: 30;
}

.lx-hpg__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lx-border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--lx-transition-base);
}

.lx-hpg__dot--active {
  background: var(--lx-color-glow);
  width: 28px;
  border-radius: var(--lx-radius-full);
  box-shadow: 0 0 12px var(--lx-color-glow);
}

.lx-hpg__label {
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--lx-font-display);
  font-size: var(--lx-text-md);
  font-weight: var(--lx-font-weight-semibold);
  color: var(--lx-text-secondary);
  white-space: nowrap;
}

.lx-hpg__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--lx-radius-full);
  background: rgba(17, 30, 59, 0.85);
  border: 1px solid var(--lx-border-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--lx-text-primary);
  cursor: pointer;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lx-transition-base),
              border-color var(--lx-transition-base),
              transform var(--lx-transition-spring);
}

.lx-hpg__nav:hover {
  background: var(--lx-color-primary-700);
  border-color: var(--lx-color-glow);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--lx-glow-sm);
}

.lx-hpg__nav--prev { left: -8px; }
.lx-hpg__nav--next { right: -8px; }

@media (max-width: 768px) {
  .lx-hpg {
    height: 420px;
    margin-top: var(--lx-space-8);
    margin-bottom: calc(var(--lx-space-8) + 140px);
  }
  .lx-hpg__card { width: 86%; }
  .lx-hpg__nav { width: 40px; height: 40px; }
  .lx-hpg__nav--prev { left: 4px; }
  .lx-hpg__nav--next { right: 4px; }
  .lx-hpg__label { bottom: -110px; }
}

/* ============================================================
   REFERENCES — ViewComponent grid (anasayfa)
   ============================================================ */
.lx-references {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,
      rgba(80, 227, 255, 0.06) 0%,
      transparent 65%),
    var(--lx-surface-deep);
  border-block: 1px solid var(--lx-border-subtle);
  overflow: hidden;
  isolation: isolate;
}

/* Soft floating dot accent */
.lx-references::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0, 0, 0, 0.5), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.lx-references-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lx-space-3);
  margin-top: var(--lx-space-12);
}

@media (min-width: 480px) {
  .lx-references-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .lx-references-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--lx-space-4);
  }
}

@media (min-width: 1280px) {
  .lx-references-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--lx-space-5);
  }
}

.lx-reference-item {
  display: block;
  aspect-ratio: 4 / 3;
}

.lx-reference-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--lx-border-subtle);
  border-radius: var(--lx-radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--lx-transition-spring),
              border-color var(--lx-transition-base),
              box-shadow var(--lx-transition-base);
}

/* subtle gradient sweep on hover */
.lx-reference-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.10) 0%,
    transparent 40%,
    transparent 60%,
    rgba(80, 227, 255, 0.08) 100%);
  opacity: 0;
  transition: opacity var(--lx-transition-base);
  pointer-events: none;
}

.lx-reference-card:hover {
  transform: translateY(-6px);
  border-color: var(--lx-border-brand);
  box-shadow:
    var(--lx-shadow-xl),
    var(--lx-glow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lx-reference-card:hover::after { opacity: 1; }

.lx-reference-card:focus-visible {
  outline: none;
  border-color: var(--lx-color-glow);
  box-shadow:
    0 0 0 3px rgba(80, 227, 255, 0.25),
    var(--lx-glow-sm);
}

.lx-reference-logo {
  position: relative;
  width: 100%;
  height: 100%;
  padding: var(--lx-space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lx-reference-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 600ms var(--lx-ease-spring);
}

.lx-reference-card:hover .lx-reference-logo img {
  transform: scale(1.06);
}

.lx-reference-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--lx-space-3) var(--lx-space-4);
  background: linear-gradient(to top,
    rgba(2, 6, 15, 0.92) 0%,
    rgba(2, 6, 15, 0.65) 60%,
    transparent 100%);
  transform: translateY(100%);
  transition: transform 350ms var(--lx-ease-out);
  z-index: 2;
  border-top: 1px solid var(--lx-border-glow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lx-reference-card:hover .lx-reference-overlay {
  transform: translateY(0);
}

.lx-reference-overlay span {
  display: block;
  color: #fff;
  font-family: var(--lx-font-body);
  font-size: var(--lx-text-sm);
  font-weight: var(--lx-font-weight-semibold);
  letter-spacing: var(--lx-tracking-wide);
  text-align: center;
  text-shadow: 0 1px 12px rgba(80, 227, 255, 0.35);
}

/* ============================================================
   STATS
   ============================================================ */
.lx-stats {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(135deg, var(--lx-surface-deep), var(--lx-color-primary-950));
  border-block: 1px solid var(--lx-border-subtle);
  overflow: hidden;
}

@media (max-width: 640px) {
  .lx-stats .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   BLOG COMPONENT — anasayfa "Blog & Haberler" bölümü
   Kart stilleri lx-blog.css'te; burada section-seviye dekorasyon.
   ============================================================ */
.lx-blog-component {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 0% 50%,
      rgba(59, 130, 246, 0.07) 0%,
      transparent 65%),
    radial-gradient(ellipse 50% 35% at 100% 100%,
      rgba(80, 227, 255, 0.05) 0%,
      transparent 70%),
    var(--lx-surface-base);
  border-block: 1px solid var(--lx-border-subtle);
  overflow: hidden;
  isolation: isolate;
}

/* Blueprint grid background, çok yumuşak */
.lx-blog-component::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0, 0, 0, 0.65), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0, 0, 0, 0.65), transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.lx-blog-component .lx-blog__grid {
  margin-top: var(--lx-space-12);
  margin-bottom: var(--lx-space-8);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1024px) {
  .lx-blog-component .lx-blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--lx-space-6);
  }
}

/* Home'daki blog kartlarına ek bir parlama (component-scope override) */
.lx-blog-component .lx-blog-card {
  background: linear-gradient(180deg,
    var(--lx-surface-elevated) 0%,
    var(--lx-surface-base) 100%);
  position: relative;
}

.lx-blog-component .lx-blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(80, 227, 255, 0.0) 50%,
    rgba(80, 227, 255, 0.35) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--lx-transition-base);
  pointer-events: none;
}

.lx-blog-component .lx-blog-card:hover::before { opacity: 1; }

/* Blog kart başlığında body fontu kullanılsın (display fontu çok kalın gelmesin) */
.lx-blog-component .lx-blog-card__title {
  font-family: var(--lx-font-body);
  font-weight: var(--lx-font-weight-bold);
  letter-spacing: var(--lx-tracking-tight);
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
.lx-instagram {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(80, 227, 255, 0.08), transparent 70%),
    var(--lx-surface-base);
  overflow: hidden;
}

.lx-instagram__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lx-space-3);
}

@media (min-width: 768px) {
  .lx-instagram__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lx-space-4); }
}

@media (min-width: 1024px) {
  .lx-instagram__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.lx-instagram__grid img,
.lx-instagram__grid a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--lx-radius-lg);
  overflow: hidden;
  transition: transform var(--lx-transition-base),
              box-shadow var(--lx-transition-base);
}

.lx-instagram__grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--lx-glow-sm);
}
