/* =========================================================
   ERLYQ — ortak stiller (açık tema)
   ========================================================= */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --orange: #ff9f0a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1080px, calc(100% - 44px));
  --wrap-wide: min(1300px, calc(100% - 32px));
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, .18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--wrap); margin-inline: auto; }
[id] { scroll-margin-top: 84px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografi ---------- */
.eyebrow { margin: 0 0 12px; color: var(--text-2); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.eyebrow--gradient { display: inline-block; background: linear-gradient(90deg, #0a84ff, #5e5ce6 45%, #ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { margin: 0; font-size: clamp(46px, 7.6vw, 96px); font-weight: 700; line-height: 1.03; letter-spacing: -.04em; }
.headline { margin: 0; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.subhead { margin: 18px auto 0; max-width: 680px; color: var(--text-2); font-size: clamp(19px, 2.1vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }

/* ---------- butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 980px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn--secondary:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #f0f0f2; }
.link { display: inline-flex; align-items: center; color: var(--link); font-size: 17px; }
.link::after { content: "›"; margin-left: 5px; font-size: 1.25em; line-height: 1; transition: transform .3s var(--ease-out); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translateX(3px); }

/* ---------- üst menü: aşağı kaydırınca iki yandan toplanır ---------- */
.nav { --full: min(1000px, calc(100vw - 40px)); --pill-bg: rgba(255, 255, 255, .72); --pill-line: rgba(0, 0, 0, .06); --nav-text: rgba(0, 0, 0, .78);
  position: fixed; top: 12px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; pointer-events: none; transition: opacity .5s, transform .6s var(--ease); }
.nav__pill { position: relative; width: var(--full); height: 54px; overflow: hidden; border-radius: 999px; background: var(--pill-bg); box-shadow: 0 0 0 1px var(--pill-line), 0 12px 32px -14px rgba(0, 0, 0, .18); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); pointer-events: auto;
  transition: width .75s var(--ease), height .6s var(--ease), box-shadow .5s, background .5s; }
.nav__inner { position: absolute; top: 0; bottom: 0; left: 50%; display: flex; align-items: center; gap: 8px; width: var(--full); padding: 0 8px 0 20px; transform: translateX(-50%); }
.nav__brand, .nav__links, .nav__end { transition: opacity .35s ease, transform .75s var(--ease), filter .45s ease; }
.nav__brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.nav__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.nav__links { display: flex; gap: 2px; margin: 0 auto; }
.nav__links a { padding: 8px 15px; border-radius: 999px; color: var(--nav-text); font-size: 14px; letter-spacing: -.01em; transition: color .25s, background .25s; }
.nav__links a:hover { background: rgba(0, 0, 0, .045); color: var(--text); }
.nav__links a.is-active { background: rgba(0, 0, 0, .065); color: var(--text); font-weight: 600; }
.nav__end { display: flex; align-items: center; gap: 4px; }
.nav__icon, .nav__menu { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--nav-text); cursor: pointer; transition: background .25s, color .25s; }
.nav__icon:hover, .nav__menu:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.nav__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav__menu { display: none; }
.nav__menu span { position: absolute; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.nav__menu span:first-child { transform: translateY(-3.5px); }
.nav__menu span:last-child { transform: translateY(3.5px); }
.nav.is-menu .nav__menu span:first-child { transform: rotate(45deg); }
.nav.is-menu .nav__menu span:last-child { transform: rotate(-45deg); }
.nav__compact { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: none; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -.01em; opacity: 0; transform: scale(.85); pointer-events: none; cursor: pointer; transition: opacity .3s ease, transform .6s var(--ease); }
.nav__compact .nav__mark { width: 22px; height: 22px; }
.nav__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .5; }

.nav.is-collapsed .nav__pill { width: 214px; height: 46px; box-shadow: 0 0 0 1px var(--pill-line), 0 16px 34px -12px rgba(0, 0, 0, .22); }
.nav.is-collapsed .nav__brand { opacity: 0; filter: blur(8px); transform: translateX(min(34vw, 340px)) scale(.8); pointer-events: none; }
.nav.is-collapsed .nav__end { opacity: 0; filter: blur(8px); transform: translateX(max(-34vw, -340px)) scale(.8); pointer-events: none; }
.nav.is-collapsed .nav__links { opacity: 0; filter: blur(8px); transform: scale(.7); pointer-events: none; }
.nav.is-collapsed .nav__compact { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s, .1s; }

.nav--dark { --pill-bg: rgba(28, 31, 38, .72); --pill-line: rgba(255, 255, 255, .08); --nav-text: rgba(255, 255, 255, .72); color: #f5f5f7; }
.nav--dark .nav__links a:hover, .nav--dark .nav__icon:hover, .nav--dark .nav__menu:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav--dark .nav__links a.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav--dark .nav__compact { color: #f5f5f7; }

/* mobil menü */
.menu { position: fixed; inset: 0; z-index: 90; padding: 100px 32px 40px; background: rgba(251, 251, 253, .96); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { display: block; padding: 8px 0; font-size: 32px; font-weight: 700; letter-spacing: -.035em; opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 60ms); }
.menu.is-open a { opacity: 1; transform: none; }
.menu--dark { background: rgba(15, 18, 24, .96); color: #f5f5f7; }
body.menu-open { overflow: hidden; }

/* ---------- belirme animasyonları ---------- */
.js .reveal { opacity: 0; translate: 0 42px; transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: none; }
.word { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(20px); animation: wordIn 1.2s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
.load-in { opacity: 0; transform: translateY(18px); animation: loadIn 1.1s var(--ease-out) forwards; animation-delay: var(--d, .4s); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ---------- iPhone çerçevesi ---------- */
.iphone { position: relative; padding: 3.6%; border-radius: 15% / 7%; background: #0a0a0b;
  box-shadow: 0 0 0 1.5px #bcbcc1, 0 0 0 3px #8c8c91, inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 80px -34px rgba(0, 0, 0, .45), 0 24px 34px -24px rgba(0, 0, 0, .3); }
.iphone { container-type: inline-size; }
.iphone__screen { position: relative; overflow: hidden; border-radius: 12% / 5.6%; background: var(--screen, #000); aspect-ratio: 600 / 1300; }
.iphone__screen img { width: 100%; height: auto; }
/* durum çubuğu olmayan ekran görüntüleri için sahte durum çubuğu */
.iphone--bar .iphone__screen img { margin-top: 13%; }
.iphone--bar .iphone__screen::before { content: "9:41"; position: absolute; top: 4.2%; left: 11%; color: #111; font-size: 5.6cqw; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.iphone--bar .iphone__screen::after { content: ""; position: absolute; top: 4.5%; right: 9%; width: 7.6cqw; height: 3.6cqw; border-radius: 1.2cqw; background: #111; box-shadow: 1.6cqw 0 0 -1.1cqw #111; }
.iphone::after { content: ""; position: absolute; top: 3.8%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone::before { content: ""; position: absolute; top: 26%; right: -4px; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #8c8c91, #cfcfd4); }

/* ---------- ana sayfa: giriş ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: clip; text-align: center; }
.hero__aurora { position: absolute; inset: -80px 0 auto; height: 760px; pointer-events: none; filter: blur(70px); opacity: .6; }
.hero__aurora i { position: absolute; border-radius: 50%; animation: drift 20s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(1) { left: 8%; top: 120px; width: 520px; height: 520px; background: #cfe3ff; }
.hero__aurora i:nth-child(2) { right: 8%; top: 40px; width: 480px; height: 480px; background: #ffd9e8; animation-duration: 24s; }
.hero__aurora i:nth-child(3) { left: 38%; top: 300px; width: 440px; height: 440px; background: #fff1c9; animation-duration: 28s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -40px) scale(1.1); } 100% { transform: translate(-40px, 30px) scale(.94); } }
.hero__copy { position: relative; z-index: 1; padding: 0 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 34px; }
.hero__stage { position: relative; z-index: 1; height: 620px; margin-top: 80px; }
.hero__phone { position: absolute; top: 0; width: clamp(170px, 22vw, 290px); }
.hero__phone--a { left: calc(50% - clamp(170px, 22vw, 290px) - 8px); top: 60px; }
.hero__phone--b { left: calc(50% + 8px); }
.hero__phone--a .iphone { transform: rotate(-7deg); }
.hero__phone--b .iphone { transform: rotate(6deg); }
.float { animation: float 7s ease-in-out infinite; }
.hero__phone--b .float { animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-16px); } }

/* ---------- ana sayfa: oyun kütüphanesi tanıtımı ---------- */
.teaser-sec { padding-bottom: 0; }
.teaser { position: relative; width: var(--wrap-wide); height: clamp(560px, 82vh, 780px); margin: 0 auto; overflow: hidden; border-radius: 32px; background: radial-gradient(70% 60% at 50% 55%, #0b2a6b 0%, #020716 62%, #010208 100%); color: #f5f7ff; isolation: isolate; }
.teaser__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.teaser.is-live .teaser__canvas { opacity: 1; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% 50%, rgba(1, 2, 8, .55), rgba(1, 2, 8, 0) 75%), linear-gradient(180deg, rgba(1, 2, 8, .35), rgba(1, 2, 8, 0) 30%, rgba(1, 2, 8, 0) 75%, rgba(1, 2, 8, .5)); }
.teaser__copy { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 24px; text-align: center; }
.teaser .eyebrow { color: #9cc3ff; }
.teaser .headline { text-shadow: 0 4px 40px rgba(40, 90, 220, .45); }
.teaser .subhead { color: rgba(225, 235, 255, .78); }
.teaser .btn { margin-top: 32px; }

/* ---------- bölümler ---------- */
.section { padding: 130px 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: #fff; }
.section-head { margin-bottom: 60px; text-align: center; }

/* uygulama döşemeleri */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: var(--wrap-wide); margin-inline: auto; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 680px; padding: 52px 40px 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.tile--vaqit { background: linear-gradient(180deg, #edf3fa 0%, #d9e5f2 100%); }
.tile--su { background: linear-gradient(180deg, #eef7fd 0%, #d8ebf8 100%); }
.tile__icon { width: 78px; height: 78px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }
.tile__eyebrow { margin: 20px 0 4px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.tile h3 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.035em; }
.tile p { max-width: 380px; margin: 10px auto 0; color: var(--text-2); }
.tile__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 20px; }
.tile__device { width: clamp(200px, 21vw, 270px); margin-top: auto; padding-top: 44px; will-change: transform; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: var(--wrap-wide); margin: 20px auto 0; }
.stat-tile { padding: 40px 28px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.stat-tile b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.stat-tile span { display: block; margin-top: 10px; color: var(--text-2); }
.grad-blue { background: linear-gradient(180deg, #2997ff, #0060c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-orange { background: linear-gradient(180deg, #ffb340, #ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(180deg, #5ee08a, #1f9d55); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* geliştirilen projeler kartları */
.carousel { display: flex; gap: 20px; overflow-x: auto; padding: 8px max(22px, calc((100vw - 1080px) / 2)) 30px; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - 1080px) / 2)); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .pcard { flex: 0 0 clamp(270px, 30vw, 372px); scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 14px; width: var(--wrap); margin: 6px auto 0; }
.carousel-nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e8e8ed; color: var(--text); cursor: pointer; transition: background .25s, opacity .25s; }
.carousel-nav button:hover:not(:disabled) { background: #dcdce1; }
.carousel-nav button:disabled { opacity: .4; cursor: default; }
.carousel-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--tile); box-shadow: 0 2px 14px rgba(0, 0, 0, .04); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -22px rgba(0, 0, 0, .22); }
.pcard__body { padding: 30px 30px 26px; }
.pcard h3 { margin: 12px 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.pcard p { margin: 0; color: var(--text-2); font-size: 15px; }
.pcard__summary { margin-top: 10px !important; color: var(--text) !important; }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; margin-top: auto; background: linear-gradient(160deg, var(--ph1, #eef2f8), var(--ph2, #f8f9fb)); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media svg { width: 64px; height: 64px; fill: none; stroke: rgba(0, 0, 0, .2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease-out); }
.pcard:hover .pcard__media svg { transform: scale(1.12) rotate(-4deg); }
.badge { display: inline-flex; align-items: center; gap: 8px; color: #b64400; font-size: 13px; font-weight: 600; }
.badge::before { content: ""; 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, 159, 10, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 159, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); } }
.bar { height: 6px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #e8e8ed; }
.bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2997ff, var(--blue)); transition: width 1.6s var(--ease-out) .2s; }
.is-in .bar span, .bar.is-in span { width: var(--p); }
.bar + small { display: block; margin-top: 8px; color: var(--text-3); font-size: 13px; }

/* hakkımda */
.about { padding: 160px 0 150px; background: #fff; }
.about__text { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.3vw, 54px); font-weight: 700; line-height: 1.14; letter-spacing: -.035em; }
.about__text .w { color: #d2d2d7; transition: color .35s ease; }
.about__text .w.is-lit { color: var(--text); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 80px auto 0; }
.about__stats div { padding-top: 22px; border-top: 1px solid var(--line); }
.about__stats b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.about__stats span { color: var(--text-2); font-size: 15px; }
.about__cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; max-width: 980px; margin: 56px auto 0; }

/* alt bilgi */
.footer { padding: 40px 0 28px; background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.35; letter-spacing: -.01em; }
.footer__lead { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer h4 { margin: 0 0 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.footer__cols a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; }
.footer--dark { background: #0b0d11; color: #8d8d93; }
.footer--dark .footer__lead, .footer--dark .footer__cols { border-color: rgba(255, 255, 255, .08); }
.footer--dark h4, .footer--dark a:hover { color: #f5f5f7; }

/* ---------- uygulamalar sayfası ---------- */
.page-hero { position: relative; padding: 156px 0 30px; overflow: clip; text-align: center; }
.chapternav { display: flex; justify-content: center; gap: 40px; margin-top: 46px; }
.chapternav a { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.chapternav img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transition: transform .5s var(--ease-out); }
.chapternav a:hover img { transform: translateY(-5px) scale(1.04); }
.product { padding: 110px 0 130px; text-align: center; }
.product + .product { border-top: 1px solid var(--line); }
.product__icon { width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 25px; box-shadow: 0 16px 36px rgba(0, 0, 0, .16); }
.product__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; }
.product__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 18px; color: var(--text-2); font-size: 15px; }
.product__visual { position: relative; width: var(--wrap-wide); height: clamp(460px, 56vw, 720px); margin: 70px auto 0; overflow: hidden; border-radius: var(--radius); }
.product__visual--vaqit { background: radial-gradient(70% 60% at 50% 15%, rgba(255, 214, 140, .45), transparent 70%), linear-gradient(180deg, #e6eef8, #c9d8ea); }
.product__visual--su { background: radial-gradient(70% 60% at 50% 15%, rgba(255, 255, 255, .8), transparent 70%), linear-gradient(180deg, #e9f4fc, #c6e0f4); }
.pv-phone { position: absolute; top: 12%; left: 50%; width: clamp(150px, 21vw, 290px); }
.pv-phone--c { z-index: 2; transform: translateX(-50%); }
.pv-phone--l { top: 20%; transform: translateX(-140%) rotate(-6deg); }
.pv-phone--r { top: 20%; transform: translateX(40%) rotate(6deg); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: var(--wrap-wide); margin: 20px auto 0; text-align: left; }
.feature { padding: 34px 32px; border-radius: 24px; background: var(--bg-alt); transition: transform .5s var(--ease-out), box-shadow .5s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .25); }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); color: var(--blue); }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- geliştiriliyor sayfası ---------- */
.segmented { position: relative; display: inline-flex; margin-top: 36px; padding: 3px; border-radius: 11px; background: #e8e8ed; }
.segmented button { position: relative; z-index: 1; padding: 8px 24px; border: 0; background: none; font-size: 14px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
.segmented__thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .5s var(--ease), width .5s var(--ease); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: var(--wrap-wide); margin: 56px auto 0; }
.pgrid .pcard { animation: cardIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.pgrid .pcard[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- duyarlı ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .nav__inner { justify-content: space-between; }
  .bento, .stats-row, .features, .pgrid { grid-template-columns: 1fr; }
  .tile { min-height: 600px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { --full: calc(100vw - 24px); }
  .nav.is-collapsed .nav__pill { width: 190px; }
  .hero { padding-top: 124px; }
  .hero__stage { height: 112vw; margin-top: 56px; }
  .hero__phone { width: 44vw; }
  .hero__phone--a { left: 5vw; top: 8vw; }
  .hero__phone--b { left: 51vw; }
  .teaser { height: 560px; border-radius: 24px; }
  .section { padding: 96px 0; }
  .tile { min-height: 560px; padding: 40px 24px 0; }
  .about { padding: 110px 0; }
  .about__stats { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .about__stats div { padding: 18px 0; }
  .chapternav { gap: 28px; }
  .product { padding: 84px 0 96px; }
  .pv-phone { width: 36vw; }
  .pv-phone--l { transform: translateX(-125%) rotate(-6deg); }
  .pv-phone--r { transform: translateX(25%) rotate(6deg); }
  .segmented button { padding: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* logo işareti: açık temada koyu kare, koyu temada açık kare */
.nav__mark rect, .logo-mark rect { fill: currentColor; }
.nav__mark path, .logo-mark path { fill: var(--mark-ink, #fff); }
.nav--dark { --mark-ink: #15171c; }

/* ---------- siteye giriş: canlanan logo ---------- */
.intro { position: fixed; inset: 0; z-index: 600; display: none; background: #fbfbfd; cursor: pointer; transition: opacity .85s var(--ease), transform 1.1s var(--ease); }
html.is-intro .intro, .intro.is-done { display: block; }
html.is-intro body { overflow: hidden; }
html.is-intro .word, html.is-intro .load-in { animation-play-state: paused; }
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.intro.is-ready .intro__canvas { opacity: 1; }
.intro.is-done { opacity: 0; transform: scale(1.05); pointer-events: none; }
.intro__hint { position: absolute; bottom: 30px; left: 0; right: 0; margin: 0; color: rgba(29, 29, 31, .38); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-align: center; text-transform: uppercase; }
.intro__fallback { display: none; }
.intro.no-gl .intro__fallback { position: absolute; top: 50%; left: 50%; display: block; width: min(62vmin, 560px); mix-blend-mode: multiply; animation: introFallback 2.4s var(--ease-out) both; }
@keyframes introFallback { from { opacity: 0; transform: translate(-50%, -50%) scale(.88) rotate(-40deg); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* =========================================================
   ERLYQ kimliği: mürekkep, parşömen ve kor kırmızısı
   (önceki açık temanın üzerine yazar)
   ========================================================= */
:root {
  --bg: #f4efe6;
  --bg-alt: #ece5d9;
  --tile: #faf6ef;
  --text: #16130f;
  --text-2: #5e564b;
  --text-3: #8a8174;
  --line: #d9cfbf;
  --ink: #16130f;
  --ember: #b3261e;
  --ember-hover: #cf3a2e;
  --gold: #b8862b;
  --blue: var(--ink);
  --blue-hover: var(--ember);
  --link: var(--ink);
  --orange: var(--ember);
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius: 22px;
}
html { background: var(--bg); }
body { letter-spacing: -.005em; }
::selection { background: rgba(179, 38, 30, .16); }

/* kâğıt dokusu */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55; background-image: url("assets/paper.svg"); }
.lib-page::before, .as-page::before { display: none; }

/* yazı */
.eyebrow { margin: 0 0 14px; color: var(--ember); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow--gradient { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ember); }
.display { font-family: var(--display); font-size: clamp(54px, 8.6vw, 116px); font-weight: 600; line-height: .98; letter-spacing: -.025em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.headline { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "opsz" 120, "SOFT" 60, "WONK" 1; }
.subhead { font-weight: 400; letter-spacing: -.01em; }

/* düğmeler ve bağlantılar */
.btn { border-radius: 14px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.btn--primary { background: var(--ink); color: #f4efe6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 24px -16px rgba(22, 19, 15, .8); }
.btn--primary:hover { background: var(--ember); }
.btn--primary::after { content: "→"; transition: transform .35s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(4px); }
.btn--light { background: #f4efe6; color: var(--ink); }
.btn--light:hover { background: #fff; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.link::after { content: "→"; margin-left: 7px; font-size: 1em; }
.link:hover { color: var(--ember); }

/* üst menü */
.nav { --pill-bg: rgba(250, 246, 239, .82); --pill-line: rgba(22, 19, 15, .12); --nav-text: rgba(22, 19, 15, .7); }
.nav__brand { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: .08em; font-variation-settings: "opsz" 48, "SOFT" 40; }
.nav__links a { position: relative; border-radius: 10px; }
.nav__links a:hover { background: rgba(22, 19, 15, .05); }
.nav__links a.is-active { background: none; color: var(--text); font-weight: 600; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ember); }
.nav--dark .nav__links a.is-active { background: none; }
.nav--dark .nav__links a.is-active::after { background: #ff5a4e; }
.menu { background: rgba(244, 239, 230, .97); }
.menu a { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1; }

/* giriş arka planı: yavaşça dönen spiral */
.hero__aurora { inset: 0; height: auto; overflow: hidden; filter: none; opacity: 1; }
.hero__aurora i { display: none; }
.hero__aurora::before { content: ""; position: absolute; top: 30px; left: 50%; width: min(1150px, 135vw); aspect-ratio: 1; background: url("assets/spiral.svg") center / contain no-repeat; opacity: .075; transform: translateX(-50%); animation: spiralSpin 160s linear infinite; }
@keyframes spiralSpin { to { transform: translateX(-50%) rotate(360deg); } }

/* bölümler */
.section--white, .about { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.stat-tile { background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.stat-tile b { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.grad-blue, .grad-orange, .grad-green { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.grad-orange { color: var(--ember); }
.grad-blue { color: var(--ink); }
.grad-green { color: var(--gold); }
.tile h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "SOFT" 60; }
.carousel-nav button { background: #e2d9ca; }
.carousel-nav button:hover:not(:disabled) { background: #d6cbb8; }
.pcard { background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); }
.pcard:hover { box-shadow: inset 0 0 0 1px var(--line), 0 28px 50px -24px rgba(22, 19, 15, .3); }
.pcard h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; font-variation-settings: "opsz" 72, "SOFT" 50; }
.badge { color: var(--ember); }
.badge::before { background: var(--ember); animation-name: pulseEmber; }
@keyframes pulseEmber { 0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .5); } 70% { box-shadow: 0 0 0 9px rgba(179, 38, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0); } }
.bar { background: #e2d9ca; }
.bar span { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.segmented { background: #e2d9ca; }
.segmented__thumb { background: var(--tile); }
.about__text { font-family: var(--display); font-weight: 500; line-height: 1.16; letter-spacing: -.015em; font-variation-settings: "opsz" 96, "SOFT" 50; }
.about__text .w { color: #cdc2b1; }

/* alt bilgi */
.footer { background: var(--ink); color: #a39a8c; }
.footer__lead, .footer__cols { border-color: rgba(244, 239, 230, .12); }
.footer h4, .footer a:hover { color: #f4efe6; }

/* giriş katmanı da parşömen rengi */
.intro { background: #f4efe6; }
.intro__hint { color: rgba(22, 19, 15, .4); }
/* oyun kütüphanesinin koyu menüsü koyu kalsın */
.nav--dark { --pill-bg: rgba(28, 31, 38, .72); --pill-line: rgba(255, 255, 255, .08); --nav-text: rgba(255, 255, 255, .72); }
.nav--dark .nav__links a:hover { background: rgba(255, 255, 255, .08); }
