/* ════════════════════════════════════════════════════════════════════
   StoryMahzeni tanıtım sitesi — storymahzeni.com
   Palet ve tipografi, uygulamanın kendisiyle birebir aynıdır
   (native src/theme.ts): #0E0E12 zemin, #7C5CBF mor, Playfair + DM Sans.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0E0E12;
  --bg2: #121218;
  --panel: #16161F;
  --panel-2: #1A1A24;
  --border: #2A2A38;
  --border-soft: rgba(42, 42, 56, 0.6);
  --fg: #F0EDE6;
  --fg-soft: #C8C3BA;
  --muted: #97948B;
  --primary: #7C5CBF;
  --primary-bright: #A98FE3;
  --accent: #3D8FA6;
  --accent-bright: #6FB5C9;
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-reading: "Lora", Georgia, serif;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124, 92, 191, 0.45); }

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Zemin dokusu: çok hafif tanecik + mor ışıma */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Üst çubuk ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 14, 18, 0.82);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.brand .accent { color: var(--primary-bright); }

.topnav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--fg-soft);
}

.topnav a { transition: color 0.18s; }
.topnav a:hover { color: var(--fg); }

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.top-cta:hover { background: #8d6cd3; transform: translateY(-1px); }

/* ── Mağaza rozetleri ──────────────────────────────────────────────── */
.store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #08080b;
  border: 1px solid #3a3a4a;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-width: 178px;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-bright);
  box-shadow: 0 10px 30px -12px rgba(124, 92, 191, 0.55);
}

.store-btn svg { width: 28px; height: 28px; flex: none; }

.store-btn .s { display: block; font-size: 0.68rem; color: var(--muted); line-height: 1.2; letter-spacing: 0.3px; }
.store-btn .b { display: block; font-size: 1.06rem; font-weight: 700; line-height: 1.25; color: var(--fg); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 84px 0 40px;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: -320px;
  right: -240px;
  background: radial-gradient(closest-side, rgba(124, 92, 191, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 640px;
  height: 640px;
  bottom: -380px;
  left: -260px;
  background: radial-gradient(closest-side, rgba(61, 143, 166, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 12px 2px rgba(169, 143, 227, 0.8);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--primary-bright), #c9b3f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.16rem;
  color: var(--fg-soft);
  max-width: 34em;
  margin-bottom: 34px;
}

.hero .store-row { margin-bottom: 30px; }

.hero-props {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-props span { display: inline-flex; align-items: center; gap: 8px; }

.hero-props svg { width: 16px; height: 16px; color: var(--accent-bright); flex: none; }

/* Telefon çerçevesi */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.phone {
  width: min(320px, 78vw);
  aspect-ratio: 1080 / 2245;
  background: #050507;
  border: 1px solid #343444;
  border-radius: 42px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(8, 8, 11, 0.9),
    0 34px 70px -20px rgba(0, 0, 0, 0.85),
    0 0 90px -12px rgba(124, 92, 191, 0.38);
  position: relative;
  z-index: 2;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 7px;
  border-radius: 999px;
  background: #1c1c26;
  z-index: 3;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 22, 31, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
  animation: floaty 7s ease-in-out infinite;
}

.float-chip svg { width: 19px; height: 19px; flex: none; }

.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; line-height: 1.25; }

.chip-likes { top: 17%; left: max(-8px, 2vw - 30px); animation-delay: 0.6s; color: var(--primary-bright); }
.chip-anon { bottom: 13%; right: max(-14px, 2vw - 36px); color: var(--accent-bright); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── Kategori kayan şeridi ─────────────────────────────────────────── */
.marquee {
  padding: 34px 0 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes slide {
  to { transform: translateX(-50%); }
}

.cat-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border-radius: 16px;
  padding: 12px 22px;
  white-space: nowrap;
}

.cat-chip b {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.cat-chip span { font-size: 0.82rem; color: var(--muted); }

/* ── Bölüm iskeleti ────────────────────────────────────────────────── */
section.block { padding: 88px 0; position: relative; }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.sec-head p { color: var(--fg-soft); font-size: 1.05rem; }

/* ── Özellik kartları ──────────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat {
  background: linear-gradient(165deg, var(--panel), rgba(22, 22, 31, 0.55));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.22s, border-color 0.22s;
}

.feat:hover { transform: translateY(-4px); border-color: rgba(124, 92, 191, 0.55); }

.feat-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 191, 0.14);
  border: 1px solid rgba(124, 92, 191, 0.35);
  margin-bottom: 18px;
}

.feat-ic svg { width: 23px; height: 23px; color: var(--primary-bright); }

.feat.teal .feat-ic { background: rgba(61, 143, 166, 0.13); border-color: rgba(61, 143, 166, 0.4); }
.feat.teal .feat-ic svg { color: var(--accent-bright); }

.feat h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 0.95rem; color: var(--muted); }

/* ── Ekran görüntüleri ─────────────────────────────────────────────── */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}

.screen-card { text-align: center; }

.screen-card .phone {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 22px;
  box-shadow:
    0 0 0 1px rgba(8, 8, 11, 0.9),
    0 26px 54px -18px rgba(0, 0, 0, 0.8);
}

.screen-card:nth-child(2) { transform: translateY(30px); }

.screen-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 7px; }
.screen-card p { font-size: 0.93rem; color: var(--muted); max-width: 30ch; margin: 0 auto; }

/* ── Kategori mozaiği ──────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.cat-col { display: grid; gap: 16px; }
.cat-col.push { padding-top: 34px; }

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: var(--ar, 0.95);
  transition: transform 0.22s;
}

.cat-card:hover { transform: translateY(-4px) scale(1.012); }

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cat-card:hover img { transform: scale(1.06); }

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.05) 30%, rgba(14, 14, 18, 0.88) 100%);
}

.cat-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
}

.cat-label b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
}

.cat-label span { font-size: 0.82rem; color: var(--fg-soft); }

/* ── Alıntı bandı ──────────────────────────────────────────────────── */
.quote {
  text-align: center;
  padding: 20px 0 8px;
}

.quote blockquote {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--fg-soft);
  max-width: 24em;
  margin: 0 auto 14px;
  line-height: 1.5;
}

.quote figcaption {
  font-size: 0.86rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Mahzen Plus ───────────────────────────────────────────────────── */
.plus-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.plus-list { display: grid; gap: 16px; margin-top: 30px; }

.plus-item { display: flex; gap: 14px; align-items: flex-start; }

.plus-item svg { width: 21px; height: 21px; color: var(--primary-bright); flex: none; margin-top: 3px; }

.plus-item b { display: block; font-size: 1rem; }
.plus-item span { font-size: 0.92rem; color: var(--muted); }

.price-card {
  position: relative;
  background: linear-gradient(170deg, #1b1626, #14141d 60%);
  border: 1px solid rgba(124, 92, 191, 0.5);
  border-radius: 26px;
  padding: 38px 36px;
  box-shadow: 0 30px 80px -30px rgba(124, 92, 191, 0.45);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -190px;
  right: -120px;
  background: radial-gradient(closest-side, rgba(124, 92, 191, 0.35), transparent 70%);
}

.price-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary-bright);
  border: 1px solid rgba(124, 92, 191, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.price-main small { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); }

.price-alt {
  margin-top: 10px;
  color: var(--fg-soft);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.save-pill {
  background: rgba(74, 140, 111, 0.16);
  border: 1px solid rgba(74, 140, 111, 0.45);
  color: #8fd0b2;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.price-feats { margin: 26px 0 30px; display: grid; gap: 11px; font-size: 0.95rem; color: var(--fg-soft); }
.price-feats li { list-style: none; display: flex; gap: 10px; align-items: center; }
.price-feats svg { width: 17px; height: 17px; color: #8fd0b2; flex: none; }

.fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 18px; }

/* ── SSS ───────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: border-color 0.2s;
}

.faq details[open] { border-color: rgba(124, 92, 191, 0.5); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  font-weight: 600;
  font-size: 1.01rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-bright);
  transition: transform 0.25s;
  flex: none;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 0.96rem; }

/* ── Kapanış CTA ───────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 100px 0 110px;
  position: relative;
  overflow: clip;
}

.cta-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 92, 191, 0.22), transparent 70%);
  pointer-events: none;
}

.cta h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 17em; margin-inline: auto; }

.cta .lead { margin: 18px auto 36px; }

.cta .store-row { justify-content: center; }

/* ── Altbilgi ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 54px 0 40px;
  background: rgba(10, 10, 14, 0.6);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foot-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 30em; }

.foot-col h4 {
  font-size: 0.8rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.foot-col a {
  display: block;
  color: var(--fg-soft);
  font-size: 0.95rem;
  padding: 5px 0;
  transition: color 0.18s;
}

.foot-col a:hover { color: var(--fg); }

.foot-base {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Yasal sayfa düzeni ────────────────────────────────────────────── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 70px 24px 90px; position: relative; z-index: 1; }

.legal-wrap h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }

.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

.legal-intro {
  font-size: 1.08rem;
  color: var(--fg-soft);
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 44px;
}

.legal-sec { margin-bottom: 34px; }

.legal-sec h2 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.legal-sec p { color: var(--fg-soft); font-size: 0.99rem; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-bright);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 34px;
}

/* ── Duyarlılık ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 56px; }
  .lead { margin-inline: 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: 1fr; gap: 44px; }
  .screen-card:nth-child(2) { transform: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .plus-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .topnav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .store-btn { flex: 1; justify-content: center; min-width: 0; }
  .float-chip { display: none; }
  .top-cta { margin-left: auto; font-size: 0.84rem; padding: 8px 14px; }
  section.block { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  * { transition: none !important; }
}
