:root {
  --bg: #070c17;
  --bg-elevated: #0b1220;
  --card: #121a2c;
  --card-border: #223050;
  --text: #eef2fb;
  --text-dim: #93a1c2;
  --text-dimmer: #647094;
  --accent: #34d399;
  --accent-2: #5eead4;
  --accent-dark: #10b981;
  --accent-ink: #04140d;
  --radius: 16px;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  --eth-bg: #12131a;
  --eth-c1: #8a92b2;
  --eth-c2: #62688f;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-border: #dde3ef;
  --text: #111827;
  --text-dim: #55617d;
  --text-dimmer: #8891a8;
  --accent: #0d9c6f;
  --accent-2: #10b981;
  --accent-dark: #047857;
  --accent-ink: #ffffff;
  --shadow: 0 20px 40px -24px rgba(20,30,60,.18);
  --eth-bg: #bfdbfe;
  --eth-c1: #1e3a8a;
  --eth-c2: #3b82f6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
#piyasalar, #markets, #guven, #why, #nasil-calisir, #how-it-works { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- background mesh ---------- */
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 18s ease-in-out infinite; }
html[data-theme="light"] .mesh span { opacity: .16; }
.mesh span:nth-child(1) { width: 480px; height: 480px; background: #10b981; top: -160px; left: -120px; }
.mesh span:nth-child(2) { width: 420px; height: 420px; background: #2563eb; top: 40%; right: -160px; animation-delay: 4s; }
.mesh span:nth-child(3) { width: 360px; height: 360px; background: #0891b2; bottom: -180px; left: 30%; animation-delay: 8s; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  opacity: 1; transition: opacity .35s ease;
  contain: strict;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-logo .em-logo-img { animation: splash-spin .8s cubic-bezier(.4,0,.2,1); }
@keyframes splash-spin { from { transform: rotate(0deg) scale(.8); opacity: 0; } to { transform: rotate(360deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo .em-logo-img { animation: none; }
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .25s;
}
header.scrolled { border-bottom-color: var(--card-border); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* two pre-rendered copies of the same logo file: logo.png has the stock
   "exchange" wordmark (silver, reads fine on a dark page); logo-light.png is a
   one-time pixel edit of that exact file with only the wordmark recolored
   solid black (everything else byte-identical). Both sit in the DOM at once;
   the theme attribute just toggles which is visible — no re-render, no font. */
.em-logo-badge { display: inline-flex; align-items: center; }
.em-logo-img { width: auto; display: block; }
.em-logo-img.logo-light { display: none; }
html[data-theme="light"] .em-logo-img.logo-dark { display: none; }
html[data-theme="light"] .em-logo-img.logo-light { display: block; }
.em-logo-badge--sm .em-logo-img { height: 54px; }
.em-logo-badge--lg .em-logo-img { height: 74px; }
.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks a.navlink { color: var(--text-dim); text-decoration: none; font-size: .92rem; transition: color .2s; white-space: nowrap; }
.navlinks a.navlink:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--card-border); color: var(--text);
  cursor: pointer; font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
html[data-theme="light"] .icon-btn { background: rgba(0,0,0,.03); }
.icon-btn:hover { background: rgba(255,255,255,.09); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { width: auto; padding: 0 12px; letter-spacing: .02em; }
.header-actions .login-signup-mobile { display: none; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; padding: 4px; }

/* theme toggle: a static sun/moon slider — both icons always rendered, only
   the thumb's position (driven by html[data-theme]) shows which is active */
.theme-btn {
  position: relative; width: 52px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255,255,255,.04); border: 1px solid var(--card-border); padding: 0; cursor: pointer;
}
html[data-theme="light"] .theme-btn { background: rgba(0,0,0,.03); }
.theme-icon { position: absolute; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; }
.theme-icon--sun { left: 7px; color: #fbbf24; }
.theme-icon--moon { right: 7px; color: #93a1c2; }
.theme-thumb {
  position: absolute; top: 3px; left: 27px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); transition: left .25s ease; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
html[data-theme="light"] .theme-thumb { left: 3px; }

/* mobile nav dropdown */
@media (max-width: 860px) {
  .navlinks {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg-elevated); border-bottom: 1px solid var(--card-border);
    padding: 10px 24px 18px;
  }
  .navlinks.open { display: flex; }
  .navlinks a.navlink { padding: 10px 0; width: 100%; }
  .menu-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: .92rem;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent-dark)); color: var(--accent-ink); box-shadow: 0 8px 24px -8px rgba(16,185,129,.5); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(16,185,129,.65); }
.btn.ghost { background: rgba(127,127,127,.08); border: 1px solid var(--card-border); color: var(--text); }
.btn.ghost:hover { background: rgba(127,127,127,.14); }
.btn.sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding: 90px 24px 50px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: var(--accent);
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin: 0 auto 32px; line-height: 1.6; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.trustline { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--text-dimmer); font-size: .82rem; }
.trustline span { display: flex; align-items: center; gap: 7px; }
.trustline svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ---------- rate ticker ---------- */
.ticker-shell { position: relative; z-index: 1; margin: 0 auto 16px; max-width: 920px; padding: 0 24px; }
.ticker {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--card-border); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.rate-tile { background: var(--card); padding: 20px 18px; text-align: center; transition: background .3s; }
.rate-tile.flash-up { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.rate-tile.flash-down { background: color-mix(in srgb, var(--danger, #f87171) 12%, var(--card)); }
.rate-tile .asset { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.rate-tile .asset .coin { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: #fff; }
.rate-tile .asset .coin-icon { width: 20px; height: 20px; flex-shrink: 0; }
.rate-tile .price { font-size: 1.7rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.rate-tile .price .cur { font-size: 1rem; font-weight: 600; color: var(--text-dimmer); margin-left: 3px; }
.rate-tile .price-note { color: var(--text-dimmer); font-size: .72rem; margin-top: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ticker-meta { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-dimmer); font-size: .74rem; margin-bottom: 70px; }
.ticker-meta .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 30px 24px 90px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--text-dim); margin: 0; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.feature { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px 24px; transition: border-color .25s, transform .25s; }
.feature:hover { border-color: rgba(52,211,153,.4); transform: translateY(-3px); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(52,211,153,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent); }
.feature h3 { margin: 0 0 8px; font-size: 1rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: .88rem; line-height: 1.55; }

/* steps */
.steps-wrap { max-width: 980px; margin: 0 auto; position: relative; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 8px; }
.step { text-align: center; position: relative; width: 170px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-weight: 700; font-size: 1rem;
}
.step.active .num { background: linear-gradient(135deg, var(--accent-2), var(--accent-dark)); color: var(--accent-ink); border-color: transparent; }
.step h4 { font-size: .92rem; margin: 0 0 6px; }
.step p { color: var(--text-dimmer); font-size: .8rem; margin: 0; line-height: 1.5; }

/* cta band */
.cta-band {
  max-width: 1080px; margin: 0 auto; padding: 56px 40px; border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-elevated)), var(--bg-elevated) 60%);
  border: 1px solid rgba(52,211,153,.25);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  text-align: left;
}
.cta-band h2 { margin: 0 0 8px; font-size: 1.6rem; }
.cta-band p { margin: 0; color: var(--text-dim); max-width: 420px; }

/* FAQ accordion (used on homepage teaser + /sss) */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: .95rem; font-weight: 600; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .plus { transition: transform .2s; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; margin: 0; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1080px; margin: 0 auto; }
.blog-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); border-color: rgba(52,211,153,.4); }
.blog-card .tag { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.blog-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.blog-card p { color: var(--text-dim); font-size: .88rem; line-height: 1.55; margin: 0; flex: 1; }
.blog-card .read-more { margin-top: 16px; color: var(--accent); font-size: .85rem; font-weight: 600; }

.pagination { max-width: 1080px; margin: 40px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: flex; gap: 6px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--card-border); background: var(--card); color: var(--text-dim);
  text-decoration: none; font-size: .86rem; transition: border-color .2s, color .2s, background .2s;
}
.page-link:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.page-link.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.page-link.disabled { opacity: .4; pointer-events: none; }

.article { max-width: 720px; margin: 0 auto; }
.article .kicker { color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 12px 0 20px; }
.article p { color: var(--text-dim); line-height: 1.75; font-size: 1rem; margin: 0 0 20px; }
.article h2 { font-size: 1.3rem; margin: 36px 0 14px; }
.article ul { color: var(--text-dim); line-height: 1.75; padding-left: 20px; }
.article .related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--card-border); }
.article .related a { color: var(--accent); display: block; margin-bottom: 10px; text-decoration: none; font-size: .92rem; }
.article .related a:hover { text-decoration: underline; }

.legal-notice { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: #b98a1e; padding: 14px 18px; border-radius: 10px; font-size: .85rem; margin-bottom: 30px; }
html[data-theme="dark"] .legal-notice, :root:not([data-theme="light"]) .legal-notice { color: #fbbf24; }

/* footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--card-border); padding: 50px 24px 30px; }
.footer-grid { max-width: 1180px; margin: 0 auto 30px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-dimmer); font-size: .82rem; max-width: 240px; line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dimmer); text-decoration: none; font-size: .85rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--card-border); color: var(--text-dimmer); font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* mobile */
@media (max-width: 860px) {
  .ticker { grid-template-columns: 1fr; }
  .cta-band { text-align: center; justify-content: center; }
  .em-logo-badge--sm .em-logo-img { height: 42px; }
}
@media (max-width: 480px) {
  .hero { padding: 70px 16px 40px; }
  section { padding: 20px 16px 60px; }
  header { padding-left: 14px; padding-right: 14px; }
  .header-actions { gap: 4px; }
  .btn.sm { padding: 8px 12px; font-size: .8rem; }
  .em-logo-badge--sm .em-logo-img { height: 29px; }
  .theme-btn { width: 42px; height: 24px; }
  .theme-btn .theme-thumb { width: 16px; height: 16px; left: 23px; }
  html[data-theme="light"] .theme-btn .theme-thumb { left: 3px; }
  .theme-icon { width: 11px; height: 11px; }
  .theme-icon--sun { left: 5px; }
  .theme-icon--moon { right: 5px; }
  .header-actions .login-link-desktop { display: none; }
  .header-actions .lang-btn { display: none; }
  .header-actions .signup-btn { display: none; }
  .header-actions .login-signup-mobile { display: inline-flex; padding: 6px 8px; font-size: .66rem; white-space: nowrap; }
}
.navlinks .login-link-mobile { display: none; }
@media (max-width: 480px) {
  .navlinks .login-link-mobile { display: block; border-top: 1px solid var(--card-border); margin-top: 6px; padding-top: 14px !important; }
}

/* utility classes (avoid inline style="" — blocked by CSP style-src) */
.page-pad-top { padding-top: 40px; }
.mt-0 { margin-top: 0; }
.center-cta { text-align: center; margin-top: 24px; }
.link-accent { color: var(--accent); text-decoration: none; font-weight: 600; }

/* legal document hub: list on the left, one open document filling a large pane on the right */
.legal-page { max-width: 1280px; margin: 0 auto; display: flex; gap: 32px; align-items: flex-start; }
.legal-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.legal-sidebar-group { margin-bottom: 22px; }
.legal-sidebar-group h5 { font-size: .74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.legal-sidebar-group ul { list-style: none; margin: 0; padding: 0; }
.legal-sidebar-group a {
  display: block; padding: 8px 12px; margin-bottom: 2px; border-radius: 7px;
  color: var(--text-dim); text-decoration: none; font-size: .86rem; line-height: 1.4;
  border-left: 2px solid transparent; cursor: pointer;
}
.legal-sidebar-group a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.legal-sidebar-group a.active { color: var(--accent); border-left-color: var(--accent); background: var(--card); font-weight: 600; }

.legal-content {
  flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 44px 48px; min-height: 75vh;
}
.legal-doc { display: none; }
.legal-doc.active { display: block; }
.legal-doc .legal-doc-title { font-size: 1.6rem; margin: 0 0 28px; }

@media (max-width: 980px) {
  .legal-page { flex-direction: column; }
  .legal-sidebar { position: static; width: 100%; max-height: none; margin-bottom: 20px; }
  .legal-content { padding: 28px 24px; min-height: 0; width: 100%; }
}
