/*
 * offline20.com tanıtım sayfası.
 *
 * ## Neden derleme adımı YOK
 *
 * Bu sayfa tek bir HTML, tek bir CSS ve hiç JavaScript. Vite eklemek altıncı
 * bir derleme, altıncı bir kilit dosyası girdisi ve dağıtımda altıncı bir
 * kırılma noktası demekti — karşılığında kazanacağı tek şey bir modül
 * paketleyicisi ve burada paketlenecek modül yok.
 *
 * ## Renkler NEDEN kopyalanmış
 *
 * Doğrusu `packages/config/tailwind.css` ve buradaki değerler oradan alındı.
 * İçe aktarılamıyor: import etmek Tailwind'i, Tailwind derleme adımını,
 * derleme adımı da yukarıdaki bedeli geri getirirdi.
 *
 * Bedeli açık ve burada yazılı olması bunun için: marka rengi değişirse bu
 * dosya da değişmek zorunda. Sessiz bir tuzak olmasın diye söylüyorum —
 * kopyanın kendisi kusur değil, unutulması kusur.
 *
 * ## Koyu tema BİLİNÇLİ, varsayılan değil
 *
 * Ürünün kendi platform konsolu koyu ve sebebi burada da geçerli: bu bir
 * akşam servisi ürünü. Karar, "koyu tema moda" olduğu için değil, tanıtım
 * sayfasının ürünle aynı odada durması için alındı.
 */

/* --- Marka fontu — KENDİ SUNUCUMUZDAN ---------------------------------------
 *
 * Google Fonts'tan çekilemez: kenar katmanının içerik güvenlik politikası
 * `font-src 'self'` diyor ve dış kaynak sessizce engellenir, sayfa sistem
 * fontuna düşerdi. Dosyalar edge imajına `node_modules/@fontsource-variable`
 * içinden kopyalanıyor (docker/frontend/Dockerfile).
 *
 * İki alt küme de gerekiyor: `ş ğ ı İ` latin-ext'te, `ç ö ü` latin'de.
 * Yalnızca birini almak, Türkçe bir sayfada harflerin yarısını yedek fonta
 * düşürürdü.
 */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329,
    u+2000-206f, u+2074, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329,
    u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f,
    u+a720-a7ff;
}

:root {
  /* Ürün paleti — doğrusu packages/config/tailwind.css (yukarıdaki not). */
  --brand: oklch(24% 0.045 258);
  --brand-strong: oklch(18% 0.04 258);
  --accent: oklch(72% 0.11 78);
  --accent-strong: oklch(63% 0.115 72);
  --on-accent: oklch(20% 0.03 258);

  /* Koyu yüzey merdiveni: zemin → kart → yükseltilmiş kart. */
  --canvas: oklch(15% 0.028 258);
  --surface: oklch(19% 0.03 258);
  --surface-raised: oklch(23% 0.032 258);
  --border: oklch(30% 0.025 258);
  --border-strong: oklch(40% 0.03 258);

  --fg: oklch(97% 0.006 95);
  --fg-muted: oklch(78% 0.012 258);
  --fg-subtle: oklch(64% 0.014 258);

  /*
   * Akıcı tipografi: en küçük ekranda okunabilir, en büyüğünde başlık
   * gerçekten başlık gibi duruyor. Ölçek kontrastı bu sayfanın hiyerarşisini
   * taşıyan ana araç — kutu çizmeden hiyerarşi kuruyor.
   */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.24vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 9rem);
  --radius: 1rem;
  --radius-lg: 1.75rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family:
    'Inter var',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * Atmosfer: iki geniş ve çok düşük yoğunluklu ışık havuzu. Görsel bir dosya
 * DEĞİL — indirilecek bir şey yok ve ölçeklendiğinde bozulmuyor.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70ch 50ch at 78% -10%, oklch(72% 0.11 78 / 0.14), transparent 70%),
    radial-gradient(60ch 45ch at 5% 12%, oklch(48% 0.09 258 / 0.22), transparent 70%);
  pointer-events: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 620;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

svg {
  display: block;
}

/*
 * `hidden` özniteliği GERÇEKTEN gizlesin.
 *
 * Yukarıdaki `svg { display: block }` bir YAZAR kuralı; tarayıcının kendi
 * `[hidden] { display: none }` kuralı ise kullanıcı-ajanı katmanında ve yazar
 * kuralı özgüllükten bağımsız olarak onu eziyor. Sonucu ölçüldü: ikon
 * tanımlarını taşıyan `<svg hidden>` bloğu, sayfanın en üstünde 150 piksellik
 * boş bir bant olarak çiziliyordu.
 */
[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - calc(var(--gutter) * 2), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* --- Odak: her yerde aynı ve GÖRÜNÜR ---------------------------------------
 * Kendi başına duran her denetimin odak halkası var; klavye kullanıcısının
 * sayfada nerede olduğunu kaybetmesi, tasarımın sessizce kırıldığı yerdir. */
:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

/* --- Başlık ----------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: oklch(15% 0.028 258 / 0.72);
  border-bottom: 1px solid var(--border);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: var(--step-1);
}

.mark svg {
  width: 2rem;
  height: 2rem;
  color: var(--fg);
}

.mark__num {
  color: var(--accent);
}

.top nav {
  display: none;
  margin-inline-start: auto;
  gap: 1.75rem;
}

.top nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--step--1);
  transition: color var(--dur) var(--ease);
}

.top nav a:hover {
  color: var(--fg);
}

.top__cta {
  margin-inline-start: auto;
}

@media (min-width: 56rem) {
  .top nav {
    display: flex;
  }

  .top__cta {
    margin-inline-start: 0;
  }
}

/* --- Düğmeler ---------------------------------------------------------------
 * Dokunma hedefi 44 px: WCAG 2.2 SC 2.5.8'in 24 px eşiğinin üstünde ve
 * ürünün kendi düğmeleriyle aynı ölçüde. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Kahraman --------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) var(--section);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--fg-muted);
  background: var(--surface);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(72% 0.11 78 / 0.18);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--step-4);
  font-weight: 660;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--fg-muted);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--fg-subtle);
}

/* --- Kahraman görseli ------------------------------------------------------- */
.vignette {
  position: relative;
  isolation: isolate;
}

.vignette svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px oklch(10% 0.02 258 / 0.55));
}

/* --- Bölüm başlıkları -------------------------------------------------------- */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

.section__head {
  max-width: 54ch;
}

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  font-size: var(--step-3);
}

.section__lead {
  margin-top: 1.1rem;
  color: var(--fg-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* --- İki yol ----------------------------------------------------------------
 * Kullanıcının ilk sorusu "bu benim için mi": iki yolu yan yana ve EŞİT
 * ağırlıkta koymak, o soruyu bir seçime çeviriyor. */
.paths {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 52rem) {
  .paths {
    grid-template-columns: 1fr 1fr;
  }
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-raised), var(--surface) 60%);
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.path:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.path::after {
  content: '';
  position: absolute;
  inset-inline-end: -6rem;
  inset-block-start: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(72% 0.11 78 / 0.16), transparent 65%);
  pointer-events: none;
}

.path__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  color: var(--accent);
}

.path__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.path h3 {
  font-size: var(--step-2);
}

.path p {
  color: var(--fg-muted);
}

.path ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--fg-muted);
  font-size: var(--step--1);
}

.path li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.path li svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  color: var(--accent);
}

.path__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --- Modül bento ------------------------------------------------------------
 * Eşit kutulardan oluşan bir ızgara, hangi modülün ürünün kalbi olduğunu
 * söylemezdi. İlk iki kart geniş: misafir akışı ve servis akışı diğerlerini
 * taşıyor. */
.bento {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento > :nth-child(1),
  .bento > :nth-child(2) {
    grid-column: span 2;
  }
}

@media (min-width: 68rem) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento > :nth-child(1) {
    grid-column: span 4;
  }

  .bento > :nth-child(2) {
    grid-column: span 2;
  }

  .bento > :nth-child(n + 3) {
    grid-column: span 2;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.tile:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: oklch(72% 0.11 78 / 0.12);
  color: var(--accent);
}

.tile__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.tile h3 {
  font-size: var(--step-1);
}

.tile p {
  color: var(--fg-muted);
  font-size: var(--step--1);
  line-height: 1.55;
}

.tile--wide {
  background: linear-gradient(150deg, var(--surface-raised), var(--surface) 70%);
}

.tile__art {
  margin-top: auto;
  padding-top: 1rem;
}

.tile__art svg {
  width: 100%;
  height: auto;
}

/* --- Adımlar ----------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--step-2);
  font-weight: 660;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--fg-muted);
  font-size: var(--step--1);
}

/* --- Ayırt edici özellikler --------------------------------------------------- */
.facts {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 46rem) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 70rem) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.fact h3 {
  font-size: var(--step-0);
  margin-bottom: 0.45rem;
}

.fact p {
  color: var(--fg-subtle);
  font-size: var(--step--1);
  line-height: 1.55;
}

/* --- Kapanış çağrısı ---------------------------------------------------------- */
.close {
  position: relative;
  margin-block: var(--section);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50ch 30ch at 80% 0%, oklch(72% 0.11 78 / 0.18), transparent 70%),
    linear-gradient(160deg, var(--surface-raised), var(--surface));
  text-align: center;
}

.close h2 {
  font-size: var(--step-3);
  max-width: 22ch;
  margin-inline: auto;
}

.close p {
  margin-top: 1.1rem;
  margin-inline: auto;
  max-width: 52ch;
  color: var(--fg-muted);
}

.close .hero__actions {
  justify-content: center;
}

/* --- Alt bilgi ---------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding-block: 3rem 4rem;
  font-size: var(--step--1);
}

.foot__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .foot__grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

.foot h2 {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
  font-weight: 620;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.foot a {
  color: var(--fg-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color var(--dur) var(--ease);
}

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

.foot__note {
  margin-top: 1rem;
  color: var(--fg-subtle);
  max-width: 40ch;
}

.foot__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
}

/* --- Hareket: bilgi taşıdığı yerde, süs olduğu yerde değil -------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
