/* ==========================================================================
   AYS Belge – Açılış (intro) animasyonu + Hero bölümü + 3D küre
   Zaman çizelgesi (intro, toplam 2.4 sn):
   0.10–1.05  işaret çizilir (stroke)   0.80–1.30  dolgu gelir
   1.05–1.80  parıltı geçer             1.00–1.85  "AYS" / "Belge" kayar
   0.00–1.75  ilerleme çizgisi          1.80–2.40  perde yukarı açılır
   ========================================================================== */

/* ---------- INTRO ---------- */
.ays-intro { display: none; }

.js .ays-intro {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	color: #fff;
	cursor: pointer;
	background:
		radial-gradient(60% 50% at 50% 46%, rgba(44, 107, 237, .2), transparent 70%),
		linear-gradient(180deg, var(--ays-ink) 0%, var(--ays-navy-950) 100%);
	clip-path: inset(0 0 0 0);
	-webkit-tap-highlight-color: transparent;
	/* Perde + güvenlik ağı: JS hiç çalışmasa da 2.4 sn'de açılır, 4.5 sn'de tamamen gizlenir. */
	animation:
		ays-intro-curtain .6s var(--ays-ease-in-out) 1.8s forwards,
		ays-intro-safety 0s linear 4.5s forwards;
}
.js .ays-intro.is-skip {
	animation: ays-intro-curtain-fast .45s var(--ays-ease-in-out) forwards, ays-intro-safety 0s linear 1s forwards;
}
@keyframes ays-intro-curtain { to { clip-path: inset(0 0 100% 0); } }
@keyframes ays-intro-curtain-fast { to { clip-path: inset(0 0 100% 0); } }
@keyframes ays-intro-safety { to { visibility: hidden; } }

/* Perdenin alt kenarındaki ince ışık çizgisi */
.ays-intro::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(141, 184, 255, .7), transparent);
}

.ays-intro__aura {
	position: absolute;
	width: min(90vw, 760px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(44, 107, 237, .28), rgba(44, 107, 237, 0));
	opacity: 0;
	transform: scale(.7);
	animation: ays-intro-aura 1.6s var(--ays-ease) .1s forwards;
	pointer-events: none;
}
@keyframes ays-intro-aura { to { opacity: 1; transform: scale(1); } }

.ays-intro__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(26px, 4vw, 40px);
	animation: ays-intro-lift .6s var(--ays-ease-in-out) 1.8s forwards;
}
.ays-intro.is-skip .ays-intro__stage { animation: ays-intro-lift .45s var(--ays-ease-in-out) forwards; }
@keyframes ays-intro-lift { to { transform: translate3d(0, -48px, 0); opacity: 0; } }

.ays-intro__logo {
	display: block;
	width: min(72vw, 360px);
	height: auto;
	overflow: visible;
	animation: ays-intro-glow 1.4s var(--ays-ease) .9s both;
}
@keyframes ays-intro-glow {
	0% { filter: drop-shadow(0 0 0 rgba(91, 147, 255, 0)); }
	35% { filter: drop-shadow(0 0 22px rgba(91, 147, 255, .75)); }
	100% { filter: drop-shadow(0 0 10px rgba(91, 147, 255, .3)); }
}

/* İşaret: önce çizgi, sonra dolgu */
.ays-intro__mark {
	fill: #fff;
	fill-opacity: 0;
	stroke: var(--ays-sky);
	stroke-width: 3.5;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation:
		ays-intro-draw .95s var(--ays-ease-in-out) .1s forwards,
		ays-intro-fill .5s var(--ays-ease) .8s forwards;
}
@keyframes ays-intro-draw { to { stroke-dashoffset: 0; } }
@keyframes ays-intro-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
.ays-intro__sheen { pointer-events: none; }

/* Yazılar: işaretin kenarındaki maskeden sağa kayarak çıkar */
.ays-intro__word {
	fill: #fff;
	opacity: 0;
	transform-box: fill-box;
	transform: translate3d(-58%, 0, 0);
	animation: ays-intro-word .8s var(--ays-ease) 1s forwards;
}
.ays-intro__word--belge {
	fill: #d8e6ff;
	animation-delay: 1.1s;
}
@keyframes ays-intro-word { to { opacity: 1; transform: none; } }

.ays-intro__progress {
	position: relative;
	width: 148px;
	height: 2px;
	border-radius: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, .1);
}
.ays-intro__progress span {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--ays-blue), var(--ays-sky));
	transform: scaleX(0);
	transform-origin: 0 50%;
	animation: ays-intro-progress 1.75s cubic-bezier(.45, .05, .25, 1) forwards;
}
@keyframes ays-intro-progress { to { transform: scaleX(1); } }

.ays-intro__hint {
	position: absolute;
	top: calc(100% + 18px);
	margin: 0;
	white-space: nowrap;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ays-on-dark-3);
	opacity: 0;
	animation: ays-intro-hint .5s ease .7s forwards;
}
@keyframes ays-intro-hint { to { opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
	.js .ays-intro { display: none !important; }
}
.elementor-editor-active .ays-intro,
.elementor-editor-preview .ays-intro { display: none !important; }

/* ---------- HERO ---------- */
.ays-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	overflow: clip;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--ays-header-h) + clamp(28px, 5vw, 64px)) 0 clamp(28px, 4vw, 52px);
	color: var(--ays-on-dark);
	background:
		radial-gradient(1100px 680px at 80% 42%, rgba(44, 107, 237, .2), transparent 62%),
		radial-gradient(700px 500px at 0% 100%, rgba(14, 61, 112, .45), transparent 70%),
		linear-gradient(180deg, var(--ays-ink) 0%, var(--ays-navy-950) 52%, var(--ays-navy-900) 100%);
}

/* Arka plan dekoru */
.ays-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ays-hero__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(141, 184, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(141, 184, 255, .06) 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
}
.ays-hero__beam {
	position: absolute;
	top: -28%; right: -12%;
	width: 70vw; max-width: 980px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(91, 147, 255, .16), transparent);
	filter: blur(10px);
}
.ays-hero__noise { position: absolute; inset: 0; opacity: .5; }
.ays-hero::after {
	/* Alt kenarda bir sonraki bölüme yumuşak geçiş çizgisi */
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(141, 184, 255, .25), transparent);
}

.ays-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	width: 100%;
}
.ays-hero:not(.has-globe) .ays-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

.ays-hero__content { position: relative; z-index: 2; max-width: 660px; }

.ays-hero__eyebrow { margin: 0 0 22px; }

.ays-hero__title {
	margin: 0 0 22px;
	color: #fff;
	text-wrap: balance;
}
.ays-hero__title em { white-space: nowrap; }

.ays-hero__lead {
	margin: 0 0 32px;
	max-width: 36em;
	color: var(--ays-on-dark-2);
	text-wrap: pretty;
}

.ays-hero__actions { margin-bottom: 30px; }
.ays-hero__wa-ico { color: var(--ays-wa); }

.ays-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 550;
	color: var(--ays-on-dark-2);
}
.ays-hero__badges li { display: inline-flex; align-items: center; gap: 9px; }
.ays-hero__badge-ico {
	display: inline-grid; place-items: center;
	width: 20px; height: 20px;
	border-radius: 50%;
	color: #34d399;
	background: rgba(52, 211, 153, .12);
	box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28);
}

/* Görsel alan: küre + süzülen cam kartlar */
.ays-hero__visual {
	position: relative;
	width: 100%;
	max-width: 640px;
	aspect-ratio: 1;
	margin-left: auto;
	z-index: 1;
}
.ays-hero__globe { position: absolute; inset: -4%; }
.ays-hero__canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}
.ays-hero__canvas.is-dragging { cursor: grabbing; }

/* Küre kapalıysa sade ışık küresi */
.ays-hero__orb {
	position: absolute; inset: 14%;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, rgba(91, 147, 255, .45), rgba(11, 44, 87, .6) 55%, rgba(4, 15, 36, .9));
	box-shadow: 0 0 120px -10px rgba(44, 107, 237, .45), inset 0 0 0 1px rgba(141, 184, 255, .18);
}

.ays-hero__card {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px 11px 11px;
	border-radius: var(--ays-radius);
	color: #fff;
	background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .12);
	pointer-events: none;
	/* Paralaks (globe.js --ays-px/--ays-py ayarlar) – yüzme animasyonu transform'da */
	translate: calc(var(--ays-px, 0) * var(--depth, 12px)) calc(var(--ays-py, 0) * var(--depth, 12px));
	animation: ays-float 7s ease-in-out infinite alternate;
}
.ays-hero__card--a { top: 13%; left: -3%; --depth: -16px; }
.ays-hero__card--b { top: 46%; right: -4%; --depth: 14px; animation-duration: 8s; animation-delay: -2.5s; }
.ays-hero__card--c { bottom: 8%; left: 8%; --depth: -10px; animation-duration: 9s; animation-delay: -5s; }
@keyframes ays-float {
	0% { transform: translate3d(0, -7px, 0); }
	100% { transform: translate3d(0, 8px, 0); }
}

.ays-hero__card-ico {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 11px;
	font-size: 18px;
	color: #fff;
	background: linear-gradient(135deg, #3a7bff, #1a4fc0);
	box-shadow: 0 8px 18px -8px rgba(44, 107, 237, .9);
	flex: none;
}
.ays-hero__card-ico.is-ok { background: linear-gradient(135deg, #34d399, #16a34a); box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .9); }
.ays-hero__card-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ays-hero__card-txt strong { font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.ays-hero__card-txt small { font-size: 12.5px; color: var(--ays-on-dark-2); white-space: nowrap; }

/* ---------- Hızlı fiyat çubuğu (cam şerit) ---------- */
.ays-hero__bar-wrap { position: relative; z-index: 3; margin-top: clamp(28px, 4vw, 56px); }
.ays-hero__bar {
	position: relative;
	padding: 14px;
	border-radius: var(--ays-radius-lg);
	background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .13);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ays-hero__bar::before {
	content: "";
	position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(141, 184, 255, .8), transparent);
}
.ays-hero__bar-fallback { display: flex; align-items: center; gap: 16px; padding: 4px 4px 4px 8px; }
.ays-hero__bar-ico {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; flex: none;
	border-radius: 14px;
	font-size: 20px;
	color: var(--ays-sky);
	background: rgba(91, 147, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(141, 184, 255, .2);
}
.ays-hero__bar-text { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }
.ays-hero__bar-text strong { color: #fff; font-size: 16px; }
.ays-hero__bar-text span { color: var(--ays-on-dark-2); font-size: 14px; }
.ays-hero__bar-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }

/* ---------- Hero metin giriş animasyonu ---------- */
@keyframes ays-hero-in {
	from { opacity: 0; transform: translate3d(0, 26px, 0); }
	to { opacity: 1; transform: none; }
}
@keyframes ays-hero-visual-in {
	from { opacity: 0; transform: scale(.92); }
	to { opacity: 1; transform: none; }
}
.js .ays-hero [data-hero-anim] {
	animation: ays-hero-in 1s var(--ays-ease) both;
	animation-delay: var(--d, 0ms);
}
.js .ays-hero .ays-hero__visual[data-hero-anim] { animation-name: ays-hero-visual-in; animation-duration: 1.4s; }
/* Intro oynarken bekle; 'ays-intro-on' kalkınca (ays:intro-done) başlar */
.ays-intro-on .ays-hero [data-hero-anim] { animation-play-state: paused; }
.elementor-editor-active .ays-hero [data-hero-anim] { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1099px) {
	.ays-hero__card--a { left: 0; }
	.ays-hero__card--b { right: 0; }
}

@media (max-width: 979px) {
	.ays-hero { justify-content: flex-start; }
	.ays-hero__inner,
	.ays-hero:not(.has-globe) .ays-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ays-hero__content { max-width: 720px; }
	.ays-hero__visual { max-width: 500px; margin: 0 auto; }
	.ays-hero:not(.has-globe) .ays-hero__visual { display: none; }
}

@media (max-width: 767px) {
	.ays-hero { padding-top: calc(var(--ays-header-h) + 28px); }
	.ays-hero__eyebrow { margin-bottom: 18px; }
	.ays-hero__lead { margin-bottom: 26px; }
	.ays-hero__actions .ays-btn { flex: 1 1 100%; }
	.ays-hero__badges { gap: 10px 18px; font-size: 13.5px; }
	.ays-hero__visual { max-width: 420px; margin-top: 4px; }
	.ays-hero__card { padding: 8px 14px 8px 8px; gap: 10px; }
	.ays-hero__card-ico { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
	.ays-hero__card-txt strong { font-size: 13px; }
	.ays-hero__card-txt small { font-size: 11.5px; }
	.ays-hero__card--a { top: 8%; }
	.ays-hero__card--b { top: auto; bottom: 12%; }
	.ays-hero__card--c { display: none; }
	.ays-hero__bar { padding: 12px; border-radius: var(--ays-radius); }
	.ays-hero__bar-fallback { flex-direction: column; align-items: stretch; text-align: left; padding: 4px; }
	.ays-hero__bar-ico { display: none; }
	.ays-hero__bar-actions { margin-left: 0; }
	.ays-hero__bar-actions .ays-btn { flex: 1 1 0; }
}

@media (max-width: 380px) {
	.ays-hero__title em { white-space: normal; }
	.ays-hero__card-txt small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.js .ays-hero [data-hero-anim] { animation: none; }
	.ays-hero__card { animation: none; translate: none; }
	.ays-hero__canvas { cursor: default; }
}
