/* ===== Hero: bölünmüş düzen, fotoğraf kartı, canlı kod kartı, kayan hizmet bandı ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--night); }

/* Arka plan: imleci takip eden turuncu ışık + kenarlara doğru kaybolan ızgara + ince doku */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px circle at var(--mx, 72%) var(--my, 35%), rgba(255, 106, 0, .16), transparent 62%),
    radial-gradient(700px circle at 0% 0%, rgba(255, 106, 0, .09), transparent 55%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 30% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at 30% 40%, #000 25%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  padding-top: calc(var(--header-h) + 6px); padding-bottom: 34px;
}

/* Üst etiket */
.hero-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .32rem .85rem .32rem .65rem; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 600; color: #E4E6E9;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  animation: fade-up .7s both;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 106, 0, 0); }
}

/* Başlık: kelimeler bulanıktan netleşerek aşağıdan gelir */
.hero-title { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: .85rem; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .w > span { display: inline-block; animation: word-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .w:nth-child(2) > span { animation-delay: .09s; }
.hero-title .w:nth-child(3) > span { animation-delay: .18s; }
@keyframes word-up { from { transform: translateY(110%); filter: blur(8px); opacity: 0; } }

/* "ileriye." üzerinden periyodik ışık geçer */
.hero-title .accent {
  background: linear-gradient(100deg, #FF6A00 0%, #FF8A2A 40%, #FFD3A8 50%, #FF8A2A 60%, #FF6A00 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-up 1s .18s cubic-bezier(.2, .8, .2, 1) both, shimmer 5s 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 55% { background-position: 100% 0; } 100% { background-position: -150% 0; } }

.hero-lead { max-width: 62ch; font-size: clamp(.98rem, 1.15vw, 1.08rem); color: var(--gray); animation: fade-up .7s .3s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; animation: fade-up .7s .4s both; }
.hero-actions .btn { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .25s, border-color .25s, color .25s, box-shadow .3s; }

/* ===== Kayseri imzası: arka planda ince Erciyes silüeti ===== */
.erciyes { position: absolute; left: 0; right: 0; bottom: 48px; width: 100%; height: 170px; }
.erc-line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.erc-label { font: 600 10px var(--font); letter-spacing: .18em; fill: rgba(255, 255, 255, .45); }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Orta boy ekranlarda zirve metnin altına denk gelir: etiketi gizle */
@media (max-width: 1240px) { .erc-label, .erciyes circle { display: none; } }

/* ===== Sağ: ürün vitrini (web paneli + telefon + kod kartı), kompakt boyut ===== */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.hero-visual {
  position: relative; height: 256px; max-width: 520px; margin-left: auto; width: 100%;
  zoom: .8; /* vitrinin tamamı oranları korunarak küçültülür */
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  animation: fade-in 1s .1s both;
}

/* Web paneli penceresi; kenarında dönen ışık çizgisi */
.sc-frame { position: absolute; top: 0; right: 0; width: 86%; height: 216px; }
.sc-frame::before,
.sc-frame::after {
  content: ""; position: absolute; inset: -1px; border-radius: 17px;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(255, 106, 0, .25) 72%, #FF6A00 84%, #FFC08A 88%, transparent 92%);
  animation: spin 6s linear infinite;
}
.sc-frame::after { inset: 8px; filter: blur(24px); opacity: .4; z-index: -1; }
@keyframes spin { to { --angle: 360deg; } }

.sc-window {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #14161A;
  box-shadow: 0 26px 70px -30px rgba(0, 0, 0, .85);
  font-size: .62rem; color: var(--gray);
}
.sc-bar { flex: none; height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 11px; background: #1A1D22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sc-bar i { width: 8px; height: 8px; border-radius: 50%; background: #343840; }
.sc-bar i:first-child { background: var(--orange); }
.sc-url { margin: 0 auto; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); font: 500 .6rem ui-monospace, Consolas, monospace; }

/* Yalnızca ikonlu dar kenar menü */
.sc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 40px 1fr; }
.sc-side { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0; border-right: 1px solid rgba(255, 255, 255, .06); }
.sc-side b { width: 18px; height: 18px; margin-bottom: 5px; border-radius: 5px; background: var(--orange); }
.sc-nav { width: 24px; height: 24px; border-radius: 7px; background: #1F2227; }
.sc-nav::after { content: ""; display: block; width: 9px; height: 9px; margin: 7.5px; border-radius: 3px; background: #3A3E45; }
.sc-nav.on { background: rgba(255, 106, 0, .16); }
.sc-nav.on::after { background: var(--orange); }

.sc-main { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 10px; }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sc-stat { padding: 6px 8px; border-radius: 9px; background: #1C1F24; border: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden; }
.sc-stat small { display: block; font-size: .56rem; }
.sc-stat strong { font-size: .8rem; color: #fff; }
.sc-stat em { margin-left: 3px; font-style: normal; font-size: .54rem; color: #4ADE80; }
.sc-chart {
  display: flex; align-items: flex-end; gap: 5px; padding: 8px 8px 6px;
  border-radius: 9px; background: #1C1F24; border: 1px solid rgba(255, 255, 255, .05);
}
.sc-chart span {
  flex: 1; height: var(--h); border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #3A3E45, #282B31);
  transform-origin: bottom; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 70ms + .5s);
}
.sc-chart span.hi { background: linear-gradient(180deg, #FFA24D, #FF6A00); box-shadow: 0 0 14px rgba(255, 106, 0, .4); }
@keyframes grow { from { transform: scaleY(0); } }

/* Telefon: mobil uygulama ekranı */
.sc-phone {
  position: absolute; left: -10px; bottom: -14px; z-index: 2;
  width: 108px; height: 208px; padding: 7px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 20px; background: #0B0D10; border: 2px solid #2E3238;
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .9);
  font-size: .54rem; color: var(--gray);
  animation: fade-in .8s .4s both, float 7s 1s ease-in-out infinite;
}
.sc-notch { width: 40%; height: 5px; margin: 2px auto 5px; border-radius: 4px; background: #2E3238; }
.sc-app-head strong { display: block; margin: 1px 0 3px; font-size: .68rem; color: #fff; }
.sc-appt {
  padding: 6px 7px; border-radius: 9px;
  background: var(--orange); color: var(--night); font-weight: 700; font-size: .56rem;
  box-shadow: 0 8px 18px -8px rgba(255, 106, 0, .7);
}
.sc-appt small { display: block; font-weight: 600; opacity: .75; }
.sc-row { height: 20px; display: flex; align-items: center; gap: 5px; padding: 0 6px; border-radius: 7px; background: #1C1F24; }
.sc-row i { width: 9px; height: 9px; border-radius: 50%; background: #2C3036; }
.sc-row span { flex: 1; height: 3px; border-radius: 2px; background: #30343A; }
.sc-tab { margin-top: auto; height: 18px; display: flex; align-items: center; justify-content: space-around; border-radius: 7px; background: #16181C; }
.sc-tab i { width: 5px; height: 5px; border-radius: 50%; background: #3A3E45; }
.sc-tab i:first-child { background: var(--orange); }

.glass-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .78rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: #fff;
  background: rgba(11, 13, 16, .5); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.glass-chip .icon { width: 15px; height: 15px; color: var(--orange); }
.chip-place { left: 14px; top: 14px; }
.chip-coord { left: 14px; bottom: 14px; font-weight: 500; color: #D3D6DA; font-variant-numeric: tabular-nums; }

/* Kendi kendine yazılan kod kartı */
.code-card {
  position: absolute; right: -18px; bottom: -22px; z-index: 3; width: 262px;
  border-radius: 14px; overflow: hidden;
  background: rgba(20, 22, 26, .88); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  font: 500 .63rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: #D3D6DA;
  animation: fade-in .8s .6s both, float 6s 1.4s ease-in-out infinite;
}
.code-head { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-head i { width: 8px; height: 8px; border-radius: 50%; background: #3A3E45; }
.code-head i:first-child { background: var(--orange); }
.code-file { margin-left: 8px; font-size: .62rem; color: var(--gray); }
.code-card pre { margin: 0; padding: 8px 12px 10px; min-height: calc(5 * 1.6em + 18px); font: inherit; white-space: pre; }
.code-card .k { color: #FF8A3D; }
.code-card .f { color: #7DD3FC; }
.code-card .s { color: #A7F3D0; }
.code-card .c { color: #7C838C; }
.code-card .ok { color: #4ADE80; }
.cursor { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: blink 1s steps(1) infinite; }

/* Kayan hizmet bandı */
.marquee {
  position: relative; overflow: hidden; padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  display: flex; align-items: center; gap: 24px; padding-right: 24px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; color: #E4E6E9;
}
.marquee li:nth-child(even) { color: #6E747C; }
.marquee li::after { content: "✦"; font-size: .75rem; color: var(--orange); }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Tablet ve mobil: vitrin gizlenir, banner sade metin + Erciyes çizgisi olarak kalır */
@media (max-width: 900px) {
  .hero-grid { display: block; padding-top: calc(var(--header-h) + 10px); padding-bottom: 40px; }
  .hero-visual { display: none; }
  .erciyes { height: 120px; bottom: 44px; }
  .erc-label { display: none; }
}
@media (max-width: 600px) {
  .hero-chip { margin-bottom: .75rem; }
  .hero-actions { gap: 10px; margin-top: 1.1rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .marquee li { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .code-card, .hero-title .w > span, .hero-title .accent,
  .pulse, .cursor, .sc-frame::before, .sc-frame::after, .sc-phone, .sc-chart span { animation: none; }
  .erc-line { animation: none; stroke-dashoffset: 0; }
  .hero-visual, .hero-actions .btn { transform: none; }
}
