/* Rich application detail pages */
.app-badge img{width:100%;height:100%;object-fit:contain;border-radius:14px;}
.app-hero-copy{position:relative;z-index:2;}
.app-hero-copy h1{max-width:12ch;}
.app-hero-copy>p:not(.eyebrow){max-width:56ch;font-size:1.05rem;}
.app-hero-art{position:relative;min-height:620px;display:grid;place-items:center;isolation:isolate;}
.app-hero-art::before{
  content:"";position:absolute;width:76%;aspect-ratio:1;border-radius:50%;z-index:-1;
  background:var(--app-accent);filter:blur(100px);opacity:.17;animation:detailGlow 6s ease-in-out infinite;
}
.hero-phone{
  position:absolute;width:min(58%,320px);border-radius:34px;border:7px solid #05070d;
  box-shadow:0 0 0 1px rgba(255,255,255,.19),0 34px 74px -30px rgba(0,0,0,.95);transform-origin:50% 85%;
}
.hero-phone-main{position:relative;z-index:3;animation:phoneFloat 5.6s ease-in-out infinite;}
.hero-phone-left{left:2%;z-index:1;transform:translateY(44px) rotate(-8deg) scale(.86);opacity:.76;animation:deviceFloatSoft 6.8s -2.1s ease-in-out infinite;}
.hero-phone-right{right:2%;z-index:2;transform:translateY(55px) rotate(8deg) scale(.86);opacity:.76;animation:deviceFloatSoft 7.2s -4.4s ease-in-out infinite;}

@media(min-width:901px){
  .app-hero{display:flex;align-items:center;min-height:calc(100svh - 102px);padding:clamp(28px,4svh,48px) 0;overflow:hidden;}
  .app-hero-grid{width:100%;gap:clamp(34px,4vw,56px);}
  .app-hero-art{height:clamp(450px,calc(100svh - 220px),590px);min-height:0;}
  .hero-phone{width:auto;height:min(65svh,570px);max-width:58%;object-fit:contain;}
  .app-hero-copy h1{font-size:clamp(3.2rem,4.6vw,4.25rem);margin-bottom:.36em;}
  .app-hero-copy .app-badge{width:52px;height:52px;margin-bottom:16px;}
  .app-hero-copy .eyebrow{margin-bottom:12px;}
  .app-hero-copy>p:not(.eyebrow){font-size:.96rem !important;line-height:1.55;margin-bottom:.8em;}
  .app-hero-copy .hero-actions{margin-top:6px;}
  .app-hero-copy .button{padding:12px 22px;}
  .app-hero-copy .pill-row{margin-top:13px;gap:8px;}
  .app-hero-copy .pill{padding:7px 12px;font-size:.68rem;}
}
.brand-assurance{
  display:flex;align-items:center;justify-content:space-between;gap:30px;padding:24px 28px;
  border:1px solid var(--line);border-radius:22px;background:linear-gradient(110deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.brand-assurance-logo{display:flex;align-items:center;gap:17px;min-width:0;}
.brand-assurance-logo img{width:72px;height:72px;object-fit:contain;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);padding:8px;flex:0 0 auto;}
.brand-assurance-logo strong{display:block;font-family:'Manrope',system-ui,sans-serif;font-size:1.35rem;font-weight:700;}
.brand-assurance-logo span{display:block;color:var(--text-faint);font-size:.83rem;}
.brand-assurance>p{max-width:52ch;margin:0;text-align:right;font-size:.9rem;}

.module-intro{max-width:58ch;}
.module-showcase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:44px;}
.module-card{
  position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:var(--surface);
  cursor:pointer;transition:transform .45s var(--ease),border-color .35s,box-shadow .45s;
}
.module-card::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.08) 42%,transparent 63%);
  transform:translateX(-120%);transition:transform .75s var(--ease);
}
.module-card:hover{transform:translateY(-8px);border-color:var(--app-accent);box-shadow:0 30px 70px -42px var(--app-accent);}
.module-card:focus-visible{outline:3px solid var(--app-accent);outline-offset:5px;}
.module-card:hover::after{transform:translateX(120%);}
.module-media{position:relative;display:grid;place-items:center;height:410px;overflow:hidden;padding:24px;background:radial-gradient(circle at 50% 38%,var(--app-accent-soft),var(--ink-2) 76%);border-bottom:1px solid var(--line);}
.module-media::before{content:"";position:absolute;z-index:3;top:34px;left:50%;width:56px;height:13px;border-radius:0 0 10px 10px;background:#05070d;transform:translateX(-50%);box-shadow:0 1px 0 rgba(255,255,255,.12);pointer-events:none;}
.module-media img{width:auto;max-width:96%;height:100%;object-fit:cover;object-position:top;border:7px solid #05070d;border-radius:31px;box-shadow:0 28px 58px -25px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.13);animation:deviceFloatSoft 6.4s ease-in-out infinite;transition:transform .65s var(--ease),filter .45s;}
.module-card:nth-child(2n) .module-media img{animation-delay:-2.2s;}
.module-card:nth-child(3n) .module-media img{animation-delay:-4.1s;}
.module-card:hover .module-media img{transform:scale(1.035);filter:saturate(1.08);}
.module-copy{padding:23px 23px 25px;}
.module-no{display:block;margin-bottom:10px;font-family:'Manrope',system-ui,sans-serif;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--app-accent);}
.module-copy h3{font-size:1.3rem;margin-bottom:9px;}
.module-copy p{font-size:.88rem;margin:0;}
.module-copy::after{content:"Büyüt ve incele  ↗";display:inline-flex;align-items:center;margin-top:18px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--app-accent);transition:transform .25s var(--ease);}
.module-card:hover .module-copy::after{transform:translate(3px,-3px);}

.module-modal{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:26px;visibility:hidden;opacity:0;transition:opacity .25s ease,visibility .25s;}
.module-modal.is-open{visibility:visible;opacity:1;}
.module-modal-backdrop{position:absolute;inset:0;background:rgba(3,5,11,.86);backdrop-filter:blur(14px);}
:root[data-theme="light"] .module-modal-backdrop{background:rgba(226,232,244,.88);}
.module-modal-panel{position:relative;display:grid;grid-template-columns:minmax(280px,480px) minmax(280px,1fr);width:min(1120px,100%);max-height:calc(100vh - 52px);overflow:hidden;border:1px solid rgba(255,255,255,.15);border-radius:30px;background:linear-gradient(145deg,var(--surface),var(--ink-2));box-shadow:0 42px 120px rgba(0,0,0,.65);transform:translateY(24px) scale(.98);transition:transform .35s var(--ease);}
.module-modal.is-open .module-modal-panel{transform:none;}
.module-modal-media{position:relative;display:grid;place-items:center;min-height:0;padding:26px;background:radial-gradient(circle at 50% 30%,var(--app-accent-soft),transparent 68%);border-right:1px solid var(--line);}
.module-modal-media::after{content:"";position:absolute;z-index:3;top:36px;left:50%;width:62px;height:14px;border-radius:0 0 11px 11px;background:#05070d;transform:translateX(-50%);pointer-events:none;}
.module-modal-media img{display:block;max-width:100%;max-height:calc(100vh - 104px);object-fit:contain;border:8px solid #05070d;border-radius:34px;box-shadow:0 32px 72px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.15);}
.module-modal-copy{align-self:center;padding:clamp(32px,5vw,72px);}
.module-modal-copy h2{max-width:13ch;margin:8px 0 18px;font-size:clamp(2rem,4vw,4rem);line-height:.98;}
.module-modal-copy p{max-width:44ch;margin:0;font-size:1rem;line-height:1.8;color:var(--text-muted);}
.module-modal-close{position:absolute;top:18px;right:18px;z-index:2;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;background:rgba(8,10,16,.8);color:#fff;font-size:1.45rem;cursor:pointer;transition:transform .25s,border-color .25s;}
:root[data-theme="light"] .module-modal-close{background:rgba(255,255,255,.9);color:var(--text);}
.module-modal-close:hover,.module-modal-close:focus-visible{transform:rotate(8deg);border-color:var(--app-accent);outline:none;}
body.modal-open{overflow:hidden;}

.experience-section{overflow:hidden;}
.experience-head{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:end;margin-bottom:40px;}
.experience-head p{margin:0;max-width:54ch;}
.screen-rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:0 max(7vw,24px) 16px;scrollbar-width:none;}
.screen-rail::-webkit-scrollbar{display:none;}
.screen-rail figure{
  position:relative;width:260px;margin:0;flex:0 0 auto;scroll-snap-align:center;border:1px solid var(--line);border-radius:24px;overflow:hidden;padding:16px 16px 0;
  background:radial-gradient(circle at 50% 28%,var(--app-accent-soft),var(--surface) 72%);box-shadow:0 24px 55px -38px rgba(0,0,0,.9);transition:transform .4s var(--ease),border-color .3s;
}
.screen-rail figure::before{content:"";position:absolute;z-index:3;top:25px;left:50%;width:46px;height:11px;border-radius:0 0 8px 8px;background:#05070d;transform:translateX(-50%);pointer-events:none;}
.screen-rail figure:hover{transform:translateY(-8px);border-color:var(--app-accent);}
.screen-rail img{width:100%;aspect-ratio:9/16;object-fit:cover;object-position:top;border:6px solid #05070d;border-radius:25px;box-shadow:0 22px 42px -24px rgba(0,0,0,.9);animation:deviceFloatSoft 7s ease-in-out infinite;}
.screen-rail figure:nth-child(2n) img{animation-delay:-2.5s;}
.screen-rail figcaption{margin:14px -16px 0;padding:14px 16px;font-size:.76rem;color:var(--text-faint);border-top:1px solid var(--line-soft);background:var(--surface);}
.screen-rail-wrap{position:relative;padding:12px 0 28px;}
.screen-rail-wrap::before,.screen-rail-wrap::after{content:"";position:absolute;top:0;bottom:0;width:100px;z-index:3;pointer-events:none;}
.screen-rail-wrap::before{left:0;background:linear-gradient(90deg,var(--ink),transparent);}
.screen-rail-wrap::after{right:0;background:linear-gradient(-90deg,var(--ink),transparent);}
.gallery-controls{display:flex;justify-content:flex-end;gap:10px;width:min(1180px,calc(100% - 48px));margin:0 auto 14px;}
.gallery-control{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:#fff;font-size:1.15rem;cursor:pointer;transition:background .25s,border-color .25s,transform .25s;}
.gallery-control:hover,.gallery-control:focus-visible{background:var(--app-accent-soft);border-color:var(--app-accent);transform:translateY(-2px);outline:none;}

@media(min-width:901px){
  /* Galeri bölümü, bölüm düğmesiyle tek ekranda okunabilir bir sahne olsun. */
  .experience-section{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - 102px);padding:clamp(22px,4svh,44px) 0;}
  .experience-head{margin-bottom:clamp(14px,2svh,22px);}
  .experience-head h2{font-size:clamp(2.25rem,3.55vw,3.45rem);margin-bottom:.26em;}
  .screen-rail-wrap{padding:0 0 4px;}
  .screen-rail{gap:18px;padding-inline:max(5vw,24px) 24px;}
  .screen-rail figure{width:min(16vw,190px);padding:10px 10px 0;border-radius:19px;}
  .screen-rail img{max-height:clamp(235px,34svh,315px);object-fit:cover;}
  .screen-rail figcaption{margin:10px -12px 0;padding:10px 12px;font-size:.7rem;}
  .gallery-controls{margin-bottom:8px;}
  .experience-section > .container:last-child{margin-top:2px;}
  .experience-section .app-links{margin-top:0;}
}

@keyframes phoneFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}
@keyframes detailGlow{0%,100%{transform:scale(.92);opacity:.13}50%{transform:scale(1.08);opacity:.22}}
@keyframes deviceFloatSoft{0%,100%{translate:0 0}50%{translate:0 -7px}}

@media(max-width:980px){
  .module-showcase-grid{grid-template-columns:1fr 1fr;}
  .app-hero-art{min-height:560px;}
}
@media(max-width:900px){
  .app-hero{display:flex;align-items:flex-start;min-height:0;padding:18px 0 28px;overflow:hidden;}
  .app-hero-grid{gap:12px;}
  .app-hero-art{order:-1;height:clamp(210px,29svh,270px);min-height:0;overflow:hidden;border-radius:24px;}
  .hero-phone{width:auto;height:min(31svh,260px);max-width:58%;object-fit:contain;border-width:5px;border-radius:24px;}
  .hero-phone-left{left:7%;}.hero-phone-right{right:7%;}
  .app-hero-copy .app-badge{width:42px;height:42px;margin-bottom:9px;border-radius:12px;}
  .app-hero-copy .eyebrow{margin-bottom:8px;font-size:.62rem;}
  .app-hero-copy h1{font-size:clamp(2rem,9vw,2.65rem);line-height:1;margin-bottom:.28em;max-width:14ch;}
  .app-hero-copy>p:not(.eyebrow){font-size:.82rem !important;line-height:1.42;margin-bottom:.65em;}
  .app-hero-copy .hero-actions{margin-top:4px;}
  .app-hero-copy .button{padding:10px 16px;font-size:.78rem;}
  .app-hero-copy .pill-row{display:flex;flex-wrap:nowrap;gap:7px;margin-top:10px;overflow-x:auto;scrollbar-width:none;}
  .app-hero-copy .pill-row::-webkit-scrollbar{display:none;}
  .app-hero-copy .pill{flex:0 0 auto;padding:6px 10px;font-size:.62rem;}
}
@media(max-width:760px){
  .brand-assurance{align-items:flex-start;flex-direction:column;}
  .brand-assurance>p{text-align:left;}
  .experience-head{grid-template-columns:1fr;gap:14px;}
  .module-media{height:390px;}
  .module-modal{padding:12px;}
  .module-modal-panel{grid-template-columns:1fr;max-height:calc(100vh - 24px);overflow-y:auto;border-radius:22px;}
  .module-modal-media{padding:18px;border-right:0;border-bottom:1px solid var(--line);}
  .module-modal-media img{max-height:58vh;border-radius:28px;}
  .module-modal-copy{padding:28px 24px 34px;}
  .module-modal-copy h2{font-size:2.25rem;}
}
@media(max-width:600px){
  .module-showcase-grid{grid-template-columns:1fr;}
  .app-hero-art{height:clamp(200px,28svh,245px);min-height:0;overflow:hidden;border-radius:24px;}
  .hero-phone{width:auto;height:min(30svh,238px);max-width:62%;border-radius:20px;}
  .hero-phone-left{left:0;}.hero-phone-right{right:0;}
  .brand-assurance-logo img{width:68px;height:68px;border-radius:16px;}
  .screen-rail{padding-inline:18px;}
  .screen-rail figure{width:min(78vw,280px);}
  .gallery-controls{width:calc(100% - 36px);}
}
@media(prefers-reduced-motion:reduce){
  .hero-phone,.app-hero-art::before,.module-media img,.screen-rail img{animation:none;translate:none;}
}
