:root {
  --bg: #07080c;
  --ink: #f4f1ea;
  --muted: #a8a29a;
  --gold: #e8b923;
  --gold-2: #f0c94a;
  --gold-deep: #c9a227;
  --line: rgba(232, 185, 35, 0.28);
  --glass: rgba(12, 14, 20, 0.72);
  --radius: 18px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e8b92388 transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e8b923, #c9a227);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f0c94a, #e8b923);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(0,0,0,.55), rgba(0,0,0,.35)),
    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1800&q=70") center/cover no-repeat;
  filter: brightness(.42) saturate(1.05) contrast(1.05);
  transform: scale(1.04);
}

.page-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 18% 30%, rgba(232,185,35,.12), transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 42%, rgba(20,24,40,.55), transparent 60%),
    linear-gradient(180deg, rgba(7,8,12,.55) 0%, rgba(7,8,12,.82) 55%, rgba(7,8,12,.96) 100%);
}

/* ——— Nav ——— */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem 0.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  max-width: min(360px, 48vw);
}

.nav__logo {
  display: block;
  max-height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}

.nav__mark { color: #fff; display: grid; place-items: center; }
.nav__name { font-size: 1.15rem; }
.nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1405;
  font-size: .72rem;
  font-weight: 800;
}

.nav__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(244,241,234,.78);
}

.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: var(--gold); }

.nav__actions { display: flex; align-items: center; gap: .65rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .7rem 1.15rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--gold-2);
}
.btn--ghost:hover { background: rgba(232,185,35,.08); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1405;
  box-shadow: 0 10px 28px rgba(232,185,35,.28);
}
.btn--gold:hover { box-shadow: 0 14px 34px rgba(232,185,35,.38); }
.btn--lg { padding: .85rem 1.35rem; font-size: .95rem; }

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 2rem 1.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  overflow: visible;
}

.hero__copy { min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1rem;
  background: rgba(232,185,35,.06);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.feats {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem .75rem;
}
.feats li {
  display: grid;
  gap: .55rem;
  justify-items: start;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(244,241,234,.92);
}
.feats__ico {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232,185,35,.35);
  border-radius: 12px;
  background: rgba(232,185,35,.08);
}

/* ——— Themes ——— */
.themes__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: .9rem;
}
.themes__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
}
.themes__head p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.themes__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.1rem;
}

.theme-card {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #14161d;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.theme-card:hover img { transform: scale(1.05); }
.theme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.88) 100%);
}
.theme-card__label {
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .55rem;
  z-index: 1;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.theme-card__check {
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
  background: var(--gold);
  color: #1a1405;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .18s ease, transform .18s ease;
}
.theme-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(232,185,35,.35), 0 12px 30px rgba(0,0,0,.35);
}
.theme-card.is-active .theme-card__check {
  opacity: 1;
  transform: scale(1);
}

.themes__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ——— Phone preview (iPhone 16 Pro Max: 440×956 logical) ——— */
.hero__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem;
  padding-top: .5rem;
  min-height: 720px;
  /* soldaki boşlukta canlı önizleme etiketi için alan */
  margin-left: -.5rem;
}

.preview-tools {
  display: flex;
  justify-content: flex-end;
  width: min(100%, 402px);
}

.preview-tools__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--gold-2);
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.preview-tools__btn:hover {
  background: rgba(232,185,35,.12);
  transform: translateY(-1px);
}
.preview-tools__btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1405;
  border-color: transparent;
}

/* Kare telefon çerçevesi — köşe oval/kırpma yok */
.phone {
  --phone-w: 402px;
  position: relative;
  width: min(100%, var(--phone-w));
  border-radius: 0;
  overflow: hidden;
  background: #1a1c20;
  border: none;
  box-shadow: 0 24px 55px rgba(0,0,0,.45);
  animation: phone-in .7s ease both;
  transition: width .28s ease, transform .28s ease;
}
.phone.is-large {
  --phone-w: 440px;
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.phone__bezel {
  position: relative;
  padding: 10px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(160deg, #2c2f36, #121418 55%, #1a1c20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 0 3px #0a0b0e;
  overflow: hidden;
}

.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 956;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background: #0f1115;
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

.phone__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.phone__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8,8,12,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2;
}
.phone__loader.is-on { opacity: 1; }
.phone__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(232,185,35,.25);
  border-top-color: var(--gold);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.live-tag {
  position: absolute;
  left: 0;
  top: 2.6rem; /* Büyüt butonunun hemen altı / telefon üstü */
  z-index: 4;
  display: grid;
  justify-items: start;
  gap: .1rem;
  pointer-events: none;
  animation: floaty 3.2s ease-in-out infinite;
  max-width: 9.5rem;
  /* telefonun soluna taşır, çerçeveye binmez */
  transform: translateX(calc(-100% - .75rem));
}
@keyframes floaty {
  0%, 100% { transform: translateX(calc(-100% - .75rem)) translateY(0); }
  50% { transform: translateX(calc(-100% - .75rem)) translateY(-6px); }
}
.live-tag__arrow {
  opacity: .95;
  margin-left: .35rem;
  margin-top: -.15rem;
}
.live-tag__text {
  font-family: var(--font-display);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.live-tag__text strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.live-tag__sparks {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .2em;
}

@media (min-width: 1101px) {
  .hero__preview {
    overflow: visible;
  }
  .live-tag {
    top: 2.4rem;
    left: 0;
  }
}

/* ——— Zoom modal ——— */
.zoom-modal[hidden] { display: none !important; }
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.zoom-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,5,8,.78);
  backdrop-filter: blur(8px);
}
.zoom-modal__panel {
  position: relative;
  z-index: 1;
  max-height: 96vh;
  overflow: auto;
  padding: .5rem;
}
.zoom-modal__close {
  position: absolute;
  top: .15rem;
  right: .15rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.phone--xl {
  --phone-w: min(92vw, 440px);
  width: var(--phone-w);
  border-radius: 0;
  animation: none;
}
.phone--xl .phone__screen {
  aspect-ratio: 440 / 956;
  height: auto;
  max-height: 86vh;
}

/* ——— Lower bands ——— */
.band {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3.5rem 1.5rem;
}
.band--alt { background: rgba(255,255,255,.02); }
.band__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.band__inner--center { text-align: center; }
.band h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.band__lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  display: grid;
  gap: .45rem;
}
.steps li::before {
  content: "0" counter(step);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
}
.steps strong { font-family: var(--font-display); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.mods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mods article {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
  transition: border-color .18s ease, transform .18s ease;
}
.mods article:hover {
  border-color: rgba(232,185,35,.35);
  transform: translateY(-2px);
}
.mods h3 {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--gold-2);
}
.mods p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.foot {
  padding: 1.5rem;
  text-align: center;
  color: rgba(244,241,234,.45);
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "links links";
  }
  .nav__brand { grid-area: brand; }
  .nav__actions { grid-area: actions; }
  .nav__links { grid-area: links; justify-content: flex-start; padding-top: .35rem; }
  .hero { grid-template-columns: 1fr; }
  .hero__preview { order: -1; min-height: auto; padding-bottom: 1rem; }
  .live-tag { display: none; }
  .phone { --phone-w: 320px; }
  .phone.is-large { --phone-w: 360px; }
  .preview-tools { width: min(100%, 320px); }
}

@media (max-width: 860px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps, .mods { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding-inline: 1rem; }
  .hero { padding-inline: 1rem; }
  .themes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { max-width: none; }
}
