:root {
  --ink: #10151c;
  --ink2: #3c4450;
  --muted: #7b746c;
  --line: rgba(16, 21, 28, .1);
  --paper: #f3efe7;
  --paper2: #e7e1d6;
  --white: #fbfaf7;
  --navy: #1e3a5f;
  --blue: #2f6fad;
  --green: #0e8f62;
  --header: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(251, 250, 247, .92);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.brand .mg-logo { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.nav a:not(.mg-giris) { text-decoration: none; font-size: 13px; opacity: .82; white-space: nowrap; }
.nav a:not(.mg-giris):hover { opacity: 1; }
.mg-giris {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
}

.hero {
  min-height: 100svh;
  background:
    radial-gradient(900px 480px at 85% 40%, rgba(47, 111, 173, .08), transparent 62%),
    var(--white);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: center;
  padding: calc(var(--header) + 20px) 4vw 48px;
}
.kicker {
  margin: 0 0 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.ink .kicker, .end .kicker { color: #9ec4ea; }
.hero h1, .copy h2, .end h2, .explorer h2, .hesap h2, .roles h2, .iletisim h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(46px, 5.6vw, 84px); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--navy); }
.lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 38rem; color: var(--ink2); margin: 0 0 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink2); }
.frame {
  background: #0c1016;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
  transform: translateY(var(--shift, 0px));
}
.frame .bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #171d27; }
.frame .bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a4454; display: block; }
.frame video, .frame img.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center top;
  background: #0b0f14;
}

.band { padding: 9vh 4vw; }
.band.paper { background: var(--paper); }
.band.white { background: var(--white); }
.band.ink { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr); gap: 40px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.42fr) minmax(240px, .58fr); }
.split.flip .copy { order: 2; }
.copy h2 { font-size: clamp(36px, 4vw, 60px); }
.copy p, .copy li { color: var(--ink2); font-size: 17px; }
.ink .copy p, .ink .copy li { color: rgba(255,255,255,.76); }
.copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.copy li { padding: 8px 0 8px 18px; position: relative; }
.copy li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ink .kicker { color: #9ec4ea; }
.note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.phone {
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 36px;
  background: #0e131b;
  box-shadow: 0 30px 70px rgba(16,21,28,.25);
}
.phone video { border-radius: 26px; width: 100%; aspect-ratio: 824 / 1720; object-fit: contain; object-position: top; background: #fff; }
.mobiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.mobile { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; padding: 0 32px; }
.mobile + .mobile { border-left: 1px solid var(--line); }
.mobile .phone { width: 230px; margin: 0; }
.mobile .copy h2 { font-size: clamp(28px, 2.5vw, 42px); }
#telefon {
  scroll-margin-top: var(--header);
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
#telefon .mobiles { width: 100%; }
@media (min-width: 981px) {
  #telefon .mobile {
    grid-template-columns: minmax(240px, min(320px, calc((100svh - var(--header) - 32px) / 2.2))) 1fr;
  }
  #telefon .mobile .phone { width: 100%; }
}

.explorer .capline { margin: 0 0 18px; color: var(--ink2); font-size: 17px; }
.explorer .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.explorer .tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--ink2);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px;
}
.explorer .tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.explorer .frame img.shot {
  object-fit: cover;
  object-position: center top;
  background: #eef0f4;
}

.roles h2 { font-size: clamp(36px, 4vw, 56px); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.role { background: var(--white); border-radius: 18px; padding: 26px 22px; min-height: 180px; }
.role b { display: block; font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.role p { margin: 0; color: var(--ink2); font-size: 15px; }

.hesap h2 { font-size: clamp(36px, 4vw, 56px); }
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: stretch; margin-top: 12px; }
.knobs, .result { background: var(--white); border-radius: 22px; padding: 22px 24px; }
.knob { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.knob span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.knob input[type=range] { width: 100%; accent-color: var(--navy); }
.knob input[type=number] { width: 92px; border: 0; background: var(--paper); border-radius: 8px; padding: 6px 8px; text-align: right; font-size: 16px; }
.knob em { font-style: normal; color: var(--muted); font-size: 13px; }
.result { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.result small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.result strong { font-family: Fraunces, Georgia, serif; font-size: clamp(32px, 3vw, 48px); font-weight: 500; letter-spacing: -.03em; }
.result .won strong { color: var(--green); }
.fine { margin-top: 16px; color: var(--muted); font-size: 13px; }

.deck {
  height: 100svh;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding-top: var(--header);
  box-sizing: border-box;
}
.deck-stage { position: relative; flex: 1; min-height: 0; }
.deck .slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 8px 2.5vw 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
}
.deck .slide.on { opacity: 1; pointer-events: auto; }
.deck .slide .frame {
  width: min(1560px, 96%, calc((100svh - var(--header) - 200px) * 16 / 9));
  margin: auto auto 10px;
  box-shadow: 0 24px 60px rgba(16, 21, 28, .14);
}
.deck .slide .frame img.shot {
  width: 100%;
  max-height: calc(100svh - var(--header) - 200px);
  aspect-ratio: 16 / 9;
  background: #fff;
}
.deck .cap { text-align: center; max-width: 42rem; }
.deck h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 8px;
}
.deck .cap p { margin: 0; color: var(--ink2); font-size: 16px; }
.deck-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.deck-tabs button {
  position: relative;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 18px 8px 20px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}
.deck-tabs button.on { color: var(--ink); }
.deck-tabs .bar {
  position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--navy);
}
.deck-tabs button.on .bar { width: 100%; transition: width 6.5s linear; }
.iletisim h2 { font-size: clamp(36px, 4vw, 56px); }
.iletisim .sub { margin: 0; color: var(--ink2); font-size: 17px; }
#iletisim {
  height: 100svh;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .75fr);
  align-items: center;
  gap: 4vw;
  padding: calc(var(--header) + 24px) 6vw 40px;
  scroll-margin-top: 0;
}
#iletisim .grid4 { margin-top: 22px; grid-template-columns: 1fr 1fr; }
#iletisim .role { min-height: 0; }
.iletisim-mark {
  width: min(460px, 100%);
  height: auto;
  display: block;
  justify-self: center;
}

.end {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh 7vw;
  background: var(--ink); color: #fff;
}
.end h2 { font-size: clamp(42px, 6vw, 80px); max-width: 14ch; }
.end p { max-width: 36rem; color: rgba(255,255,255,.72); font-size: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .nav a:not(.mg-giris) { display: none; }
}
@media (max-width: 980px) {
  .hero, .split, .split.flip, .calc, .grid4, .mobiles, .mobile { grid-template-columns: 1fr; }
  .split.flip .copy { order: 0; }
  .deck-tabs button { letter-spacing: .06em; font-size: 11px; padding: 14px 4px 16px; }
  .deck .slide .frame { width: min(100%, calc((100svh - var(--header) - 230px) * 16 / 9)); }
  .deck .slide .frame img.shot { max-height: calc(100svh - var(--header) - 230px); }
  .hero { padding-top: calc(var(--header) + 12px); }
  .phone { width: min(340px, 78%); }
  .mobile { padding: 28px 0; }
  .mobile + .mobile { border-left: 0; border-top: 1px solid var(--line); }
  .mobile .phone { width: min(280px, 70%); margin: 0 auto; }
  #iletisim { height: auto; min-height: 100svh; grid-template-columns: 1fr; }
  .iletisim-mark { width: min(220px, 58%); margin: 8px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .deck .slide { transition: none; }
  .deck-tabs button.on .bar { transition: none; }
}
