/* Raymetry — "gece optik laboratuvarı". Renkler mobile/src/shared/design-system/tokens.ts ile aynıdır. */

@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/Fredoka-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('../fonts/Nunito-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype'); }

:root {
  color-scheme: dark;
  --ink-950: #07051A;
  --ink-900: #0D0A26;
  --ink-850: #120E30;
  --ink-800: #171238;
  --ink-700: #211B4D;
  --line: rgba(196, 181, 253, 0.13);
  --line-strong: rgba(196, 181, 253, 0.26);
  --text: #FBF8FF;
  --soft: #CFC8F0;
  --muted: #8F87BC;
  --beam: #3DF2FF;
  --violet: #9D7DFF;
  --violet-deep: #6547E0;
  --magenta: #FF62D0;
  --gold: #FFC94A;
  --success: #3CF0A0;
  --spectrum: linear-gradient(90deg, var(--beam), var(--violet) 55%, var(--magenta));

  --display: 'Fredoka', 'Nunito', ui-rounded, sans-serif;
  --body: 'Nunito', ui-rounded, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--soft);
  font: 600 17px/1.6 var(--body);
  overflow-x: hidden;
}
/* Sabit yıldız alanı: uygulamadaki ScreenBackground'un web karşılığı. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 46%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 88%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(70% 55% at 80% 0%, rgba(101, 71, 224, .28), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 98, 208, .10), transparent 70%),
    linear-gradient(170deg, #18103F 0%, #0B0823 45%, var(--ink-950) 100%);
}

a { color: var(--beam); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--beam); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--text); line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.hl { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink-800); padding: 8px 14px; }

/* ——— Üst çubuk ——— */
.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 5, 26, .62); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--display); }
.brand svg, .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang { position: relative; display: flex; align-items: center; border-radius: 14px; background: var(--ink-800); border: 1px solid var(--line); }
.lang::after { content: '⌄'; position: absolute; right: 11px; top: 50%; transform: translateY(-56%); color: var(--beam); pointer-events: none; }
[dir="rtl"] .lang::after { right: auto; left: 11px; }
.language-select { appearance: none; min-width: 132px; max-width: 180px; border: 0; background: transparent; color: var(--text); font: 800 14px/1 var(--body); padding: 10px 32px 10px 13px; cursor: pointer; }
[dir="rtl"] .language-select { padding: 10px 13px 10px 32px; }
.language-select option { color: #111; background: #fff; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ——— Hero ——— */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--beam); }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--spectrum); }
.hero h1 { font-size: clamp(54px, 9vw, 112px); margin: 18px 0 22px; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 27em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* Mağaza rozeti. */
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: 16px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.store-badge svg { width: 30px; height: 30px; fill: #fff; }
.store-badge small { display: block; font: 600 12px/1.1 var(--body); opacity: .85; }
.store-badge strong { display: block; font: 700 21px/1.1 var(--display); letter-spacing: .01em; }
.store-badge:hover { color: #fff; border-color: var(--beam); transform: translateY(-2px); }
.ghost-link { font-weight: 800; color: var(--soft); text-decoration: none; padding: 12px 6px; }
.ghost-link:hover { color: var(--text); }
.ghost-link span[aria-hidden] { display: inline-block; transition: transform .2s; }
.ghost-link:hover span[aria-hidden] { transform: translateY(3px); }

.facts { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 44px; padding: 0; list-style: none; }
.facts b { display: block; font: 700 clamp(30px, 3.4vw, 40px)/1 var(--display); color: var(--text); }
.facts span { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Işın: aynalardan yansıyıp hedefleri sırayla yakar. */
.beam-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.beam-core, .beam-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s linear .35s forwards; }
.beam-core { stroke: url(#spectrum); stroke-width: 4; }
.beam-glow { stroke: url(#spectrum); stroke-width: 16; opacity: .35; filter: blur(6px); }
.mirror { stroke: #E8F7FF; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(61, 242, 255, .7)); }
.target circle { fill: var(--ink-850); stroke: var(--muted); stroke-width: 2.5; }
.target text { font: 700 17px var(--display); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
/* Hedef, ışın ona ulaştığı anda yanar; gecikmeler ışın yolundaki mesafeyle eşleşir. */
.target circle, .target text { animation: .45s ease-out var(--at) forwards; }
.target circle { animation-name: lit-ring; }
.target text { animation-name: lit-text; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lit-ring { to { fill: #0B3B2C; stroke: var(--success); filter: drop-shadow(0 0 10px var(--success)); } }
@keyframes lit-text { to { fill: var(--success); } }

.phone { position: relative; width: min(100%, 340px); margin-left: auto; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #3a3550, #121020 40%, #26223a); box-shadow: 0 0 0 2px rgba(255,255,255,.07), 0 40px 90px rgba(0,0,0,.6), 0 0 90px rgba(61, 242, 255, .22); }
.phone img { border-radius: 42px; aspect-ratio: 1320 / 2868; width: 100%; object-fit: cover; background: var(--ink-900); }
.hero .phone { transform: rotate(4deg); margin-right: clamp(0px, 3vw, 40px); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { margin: 10px auto 0; transform: none; width: min(78%, 320px); }
  .beam-field { display: none; }
}

/* ——— Bölümler ——— */
section { position: relative; padding: clamp(60px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(36px, 5.2vw, 60px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; }
/* Bölüm ayırıcı: sahneyi kesen ince spektrum ışını. */
.divider { height: 2px; background: var(--spectrum); opacity: .55; box-shadow: 0 0 18px rgba(157, 125, 255, .6); transform: skewY(-2deg); }

/* Nasıl oynanır: numaralı hedefler. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-bottom: 4px solid var(--ink-700); }
.steps li:nth-child(2) { transform: translateY(26px); }
.steps li:nth-child(3) { transform: translateY(52px); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--success); color: var(--success); background: #0B3B2C; font: 700 20px var(--display); box-shadow: 0 0 20px rgba(60, 240, 160, .35); margin-bottom: 18px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(n) { transform: none; } }

/* Mekanikler */
.mechanics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mech { padding: 30px 28px; background: var(--ink-900); }
.mech svg { width: 56px; height: 56px; margin-bottom: 18px; }
.mech h3 { font-size: 22px; margin-bottom: 6px; }
.mech p { font-size: 16px; color: var(--muted); }
.mech .level { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
@media (max-width: 900px) { .mechanics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mechanics { grid-template-columns: 1fr; } }

/* Galeri: yatay kaydırılan telefon şeridi. */
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 34px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--ink-700) transparent; }
.gallery li { flex: 0 0 auto; scroll-snap-align: center; width: clamp(220px, 24vw, 280px); }
.gallery li:nth-child(even) { margin-top: 44px; }
.gallery .phone { width: 100%; margin: 0; padding: 8px; border-radius: 40px; box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 26px 60px rgba(0,0,0,.55); }
.gallery .phone img { border-radius: 33px; }
.gallery figcaption { margin-top: 16px; font-weight: 800; color: var(--text); text-align: center; }
@media (min-width: 1300px) { .gallery { justify-content: center; } }

/* Modlar: asimetrik iki kolon. */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mode { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--ink-850); border: 1px solid var(--line); }
.mode:first-child { grid-row: span 2; flex-direction: column; background: linear-gradient(160deg, #2A1F66, var(--ink-850) 70%); border-color: var(--line-strong); padding: 32px; }
.mode:first-child h3 { font-size: 34px; }
.mode .dot { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font: 700 22px var(--display); color: #fff; }
.mode h3 { font-size: 22px; margin-bottom: 4px; }
.mode p { font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } .mode:first-child { grid-row: auto; } }

/* Gizlilik çağrısı */
.privacy-call { border-radius: 32px; padding: clamp(34px, 6vw, 72px); background: radial-gradient(80% 120% at 100% 0%, rgba(61, 242, 255, .16), transparent 60%), var(--ink-850); border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: end; }
.privacy-call h2 { font-size: clamp(34px, 5vw, 58px); }
.privacy-call ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.privacy-call li { display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--text); }
.privacy-call li::before { content: ''; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
@media (max-width: 820px) { .privacy-call { grid-template-columns: 1fr; } }

/* SSS / destek */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 700 21px/1.3 var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; line-height: .9; color: var(--beam); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 44em; }
.contact { margin-top: 40px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 18px; background: var(--ink-800); border: 1px solid var(--line); font-weight: 800; }

/* Alt bilgi */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--soft); text-decoration: none; font-weight: 800; }

/* ——— Belge sayfaları (gizlilik) ——— */
.doc { max-width: 760px; padding: clamp(40px, 7vw, 90px) 0 90px; }
.doc h1 { font-size: clamp(42px, 7vw, 72px); margin: 16px 0 12px; }
.doc .updated { color: var(--muted); font-weight: 800; }
.doc .summary { margin: 34px 0 10px; padding: 24px 26px; border-radius: 20px; background: var(--ink-850); border: 1px solid var(--line-strong); color: var(--text); font-weight: 800; font-size: 19px; }
.doc h2 { font-size: 28px; margin: 46px 0 12px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }

/* İndirme yönlendirmesi mağaza URL'si eklenene kadar bu bekleme ekranını gösterir. */
.launch { min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 760px; padding-top: 70px; padding-bottom: 90px; }
.launch-icon { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 30px; box-shadow: 0 20px 60px rgba(61, 242, 255, .22); }
.launch h1 { margin: 18px 0; font-size: clamp(54px, 10vw, 104px); }
.launch > p:not(.eyebrow) { max-width: 35em; font-size: 20px; }
.launch .ghost-link { margin-top: 28px; }
.doc li + li { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam-core, .beam-glow { animation: none; stroke-dashoffset: 0; }
  .target circle, .target text { animation-duration: 0s; animation-delay: 0s; }
}

[data-store][hidden], [data-adsense-placement][hidden] { display: none; }
.site-ad { margin-block: 32px; }

.support-form { display: grid; gap: 14px; max-width: 38rem; margin-top: 16px; }
.support-form label { display: grid; gap: 6px; }
.support-form input, .support-form select, .support-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: inherit;
  background: #15112c;
  border: 1px solid #70638d;
  border-radius: 10px;
  font: inherit;
}
.support-form button {
  justify-self: start;
  padding: 10px 16px;
  background: var(--beam);
  color: #100a23;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.support-form button:disabled { opacity: .65; cursor: wait; }
.support-form [role="status"] { min-height: 1.5em; margin: 0; }
