/* nfcard tanıtım sitesi — düz, sade, tipografi odaklı tema.
   Kural: gradient, gölge, ışıma ve bulanıklık yok; düz renkler ve 1px kenarlıklar. */
:root {
  --ink: #0a0a0a;      /* sayfa zemini (logodaki siyah) */
  --ink-2: #121212;    /* yüzey */
  --ink-3: #191919;    /* yükseltilmiş yüzey */
  --line: #262626;     /* kenarlık */
  --line-2: #363636;   /* belirgin kenarlık */
  --text: #ededea;
  --muted: #9b9b96;
  --dim: #6b6b67;
  --gold: #daaa32;     /* marka rengi: logodaki hardal sarısı */
  --gold-2: #e5b941;   /* marka rengi, üzerine gelince */
  --gold-3: #ededea;
  --gold-soft: #1d180c;
  --ok: #7fb894;
  --err: #e08a80;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --r: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body.site {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.site ::selection { background: var(--gold); color: #0a0a0a; }
.site a { color: inherit; text-decoration: none; }
.site button, .site input, .site textarea, .site select { font: inherit; color: inherit; }
.site img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografi ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: .95;
  font-size: clamp(48px, 9vw, 128px);
}
.display em, .h2 em, .h3 em { font-style: italic; color: var(--gold); font-weight: 500; }
.lead em { font-style: normal; color: var(--gold); }
.h2 { font-family: var(--serif); font-weight: 500; line-height: 1; font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -0.01em; }
.h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; font-size: clamp(26px, 3vw, 40px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--line-2); }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 560px; }
.muted { color: var(--muted); }

/* ---------- butonlar ---------- */
.sbtn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.sbtn svg { width: 18px; height: 18px; flex: none; }
.sbtn.gold { background: var(--gold); color: #0a0a0a; }
.sbtn.gold:hover { background: var(--gold-2); }
.sbtn.line { border-color: var(--line-2); color: var(--text); background: transparent; }
.sbtn.line:hover { border-color: var(--text); }
.sbtn.small { --h: 40px; padding: 0 16px; font-size: 14px; }
.sbtn.block { width: 100%; }
.sbtn:disabled { opacity: .5; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 30px; width: auto; }
@media (max-width: 980px) { .logo-img { height: 26px; } }

/* ---------- üst menü ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--ink); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav-item:hover .nav-link svg, .nav-item:focus-within .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 270px; padding: 8px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; transition: background .2s; }
.dropdown a:hover { background: var(--ink-3); }
.dropdown a strong { font-size: 14.5px; font-weight: 600; }
.dropdown a span { font-size: 12.5px; color: var(--muted); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-big { font-family: var(--serif); font-size: 38px; line-height: 1.15; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.mobile-menu .mm-sub a { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.mobile-menu .mm-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .hide-m { display: none; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .nav { height: 64px; }
}

/* ---------- WhatsApp butonu ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; border: 1px solid #1fb457;
}
.wa-float svg { width: 26px; height: 26px; }

/* ---------- alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; }
.footer-big {
  font-family: var(--serif); font-size: clamp(72px, 20vw, 300px); line-height: .8; letter-spacing: -0.04em;
  color: var(--ink-3); text-align: center; margin-top: 56px; user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- açılış perdesi ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: opacity .6s ease .1s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader .logo { opacity: 0; animation: loaderIn .6s var(--ease) forwards; }
.loader .logo-img { height: 52px; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- görünürlük animasyonları ---------- */
/* HTML'deki statik kopya (botlar için) JS sayfayı kurana kadar gizli kalır */
body:not(.site) #main { visibility: hidden; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.in .split-word > span, .split-word.in > span { transform: none; }

/* ---------- sayfa başlığı (iç sayfalar) ---------- */
.page-hero { padding: 168px 0 72px; border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.page-hero .display { font-size: clamp(46px, 7.5vw, 104px); margin: 18px 0 22px; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 52px; }

/* ---------- ortak kartlar ---------- */
.glass { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.spot { position: relative; }
a.glass:hover, .glass.spot:hover { border-color: var(--line-2); }

/* ---------- ürün kartı (liste) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.p-card { display: flex; flex-direction: column; padding: 14px; }
.p-card .art-box { aspect-ratio: 1 / 1; border-radius: 8px; }
.p-card-body { padding: 22px 8px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card-body .h3 { font-size: 32px; }
.p-card-body p { color: var(--muted); font-size: 15px; }
.p-card-actions { display: flex; gap: 18px; align-items: center; margin-top: auto; padding-top: 14px; }

/* ---------- ürün görselleri (düz çizim) ---------- */
.art-box { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line); perspective: 1200px; }
.art { position: relative; width: 78%; max-width: 420px; aspect-ratio: 4 / 3; transform-style: preserve-3d; }
.art > * { position: absolute; }

/* NFC kart (her yerde ortak) */
.ncard {
  width: 100%; aspect-ratio: 1100 / 607; border-radius: 4.5% / 8%;
  background: #0a0a0a; border: 1px solid #2a2a2a; overflow: hidden;
}
.ncard img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* iki yüzlü kart: arka yüz 180° dönük durur, kart döndürülünce görünür */
.ncard.flip { overflow: visible; border: 0; background: none; transform-style: preserve-3d; }
.ncard .nc-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; border: 1px solid #2a2a2a; background: #0a0a0a; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ncard .nc-back { transform: rotateY(180deg); }

/* sahne: kartvizit (yaka kartı fotoğrafı gibi beyaz zemin, ön yüz önde) */
.art-box:has(> .art-kartvizit) { background: #fff; border-color: #e6e6e6; }
.art.art-kartvizit { width: 92%; max-width: 560px; }
.art-kartvizit .ncard { width: 74%; left: 13%; top: 21%; transition: transform .6s var(--ease); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
.art-kartvizit .ncard.back { z-index: 1; transform: rotate(4deg) translate(15%, 26%); }
.art-kartvizit .ncard.front { z-index: 2; transform: rotate(-6deg) translate(-15%, -26%); }
.art-box:hover .art-kartvizit .ncard.back { transform: rotate(6deg) translate(18%, 30%); }
.art-box:hover .art-kartvizit .ncard.front { transform: rotate(-8deg) translate(-18%, -30%); }


/* ürün fotoğrafı (brand.js photo) */
/* fotoğraflar kare: kutu da kare olur, fotoğraf hiç kırpılmaz */
.art-box:has(> .art-photo) { aspect-ratio: 1 / 1; height: auto !important; width: min(100%, 70vh); justify-self: center; }
.art-box .art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- telefon çerçevesi ---------- */
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.3; border-radius: 44px; padding: 10px; background: #111; border: 1px solid var(--line-2); }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }

/* iframe'li telefon (site.js > setupPhones): üstte durum çubuğu, altta sayfa
   gerçek telefon genişliğinde (390px) çizilip çerçeveye ölçeklenir */
.phone-screen.framed { display: flex; flex-direction: column; }
.phone-status {
  flex: none; height: 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 22px 0 30px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--sb-bg, #0a0a0a); color: var(--sb-fg, #ededea); transition: background .3s, color .3s;
}
.phone-status .ps-icons { display: flex; align-items: center; gap: 5px; }
.phone-status svg { display: block; height: 11px; width: auto; }
.phone-viewport { position: relative; flex: 1; overflow: hidden; background: var(--sb-bg, #0a0a0a); }
.phone-viewport iframe {
  position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--s, 1));
  transform: scale(var(--s, 1)); transform-origin: 0 0; border: 0; background: transparent;
}
/* dokunmatikte demo kilidi (site.js > touchGuard): sayfa kaydırması telefona takılmaz */
.phone-guard { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32%; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phone-guard span { padding: 10px 18px; border-radius: 999px; background: rgba(10, 10, 10, .78); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s; }
.phone-viewport.live .phone-guard { display: none; }

/* ---------- formlar (giriş / kayıt / panel) ---------- */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 56px 56px; border-right: 1px solid var(--line); background: var(--ink-2); }
.auth-side .ncard { position: absolute; width: 58%; left: 21%; top: 22%; transform: rotate(-6deg); }
.auth-side .h2 { position: relative; font-size: clamp(34px, 3.8vw, 54px); }
.auth-main { display: grid; place-items: center; padding: 110px var(--gutter) 60px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .h2 { font-size: clamp(36px, 3.8vw, 50px); margin: 14px 0 10px; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }

.sform { display: grid; gap: 16px; margin-top: 30px; }
.sfield { display: grid; gap: 7px; }
.sfield label { font-size: 13px; font-weight: 600; color: var(--muted); }
.sfield input, .sfield textarea, .sfield select {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ink);
  outline: none; transition: border-color .2s; font-size: 15px;
}
.sfield textarea { resize: vertical; min-height: 80px; }
.sfield input:focus, .sfield textarea:focus, .sfield select:focus { border-color: var(--text); }
.sfield input[readonly] { color: var(--muted); }
.sfield .hint { font-size: 12.5px; color: var(--dim); }
.sfield .hint.ok { color: var(--ok); } .sfield .hint.err { color: var(--err); }
.sfield .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .03em; }
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .srow { grid-template-columns: 1fr; } }
.smsg { font-size: 14px; padding: 12px 14px; border-radius: 8px; display: none; }
.smsg.show { display: block; }
.smsg.err { background: var(--ink-2); color: var(--err); border: 1px solid #4a2c28; }
.smsg.ok { background: var(--ink-2); color: var(--ok); border: 1px solid #2c4434; }
.auth-alt { margin-top: 22px; font-size: 14.5px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.text-btn { background: none; border: 0; color: var(--text); cursor: pointer; font-weight: 600; font-size: 13.5px; padding: 0; border-bottom: 1px solid var(--line-2); }

/* ---------- toast (utils.js) ---------- */
.site .toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 8px; background: var(--text); color: var(--ink); font-weight: 600; font-size: 14px;
  transition: opacity .25s, transform .3s var(--ease);
}
.site .toast.show { opacity: 1; transform: translate(-50%, 0); }
.site .toast.err { background: var(--err); }

.hidden { display: none !important; }

/* maske ikon: <span class="sic" style="--i:url(...svg)"> */
.sic { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], .split-word > span { opacity: 1 !important; transform: none !important; }
}
