/* Local fonts (CSP: no external fonts). Inter + JetBrains Mono, SIL OFL 1.1, from @fontsource. */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/inter-latin-ext-400-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}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/inter-latin-400-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/inter-latin-ext-600-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}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/inter-latin-600-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/inter-latin-ext-700-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}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/inter-latin-700-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/jetbrains-mono-latin-ext-400-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}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/jetbrains-mono-latin-400-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/jetbrains-mono-latin-ext-600-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}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/jetbrains-mono-latin-600-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ═══════════════════════════════════════════════════════════════════════════
   Chartyon design tokens
   Prefix: --cy-
   Dark theme is the default on :root.
   Light theme: [data-theme="light"] on <html> or any ancestor.
   Candles default to muted functional color.
   Pure mono candles (hollow up / filled down): [data-candle="mono"].
   Brand decision: no chromatic brand color. Accents, buttons and focus
   are grayscale. Green/red appear only as chart/alert semantics.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Google Fonts @import kaldırıldı (CSP) — fontlar yerel: /fonts/ */

:root {
  /* ── typography ── */
  --cy-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cy-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --cy-fs-xs: 11px;
  --cy-fs-sm: 12px;
  --cy-fs-md: 13px;
  --cy-fs-base: 14px;
  --cy-fs-lg: 16px;
  --cy-fs-xl: 18px;
  --cy-fs-2xl: 22px;
  --cy-fs-3xl: 28px;
  --cy-fs-4xl: 36px;
  --cy-fs-5xl: 48px;

  --cy-lh-tight: 1.2;
  --cy-lh-snug: 1.35;
  --cy-lh-normal: 1.45;
  --cy-lh-loose: 1.6;

  --cy-fw-regular: 400;
  --cy-fw-medium: 500;
  --cy-fw-semibold: 600;
  --cy-fw-bold: 700;
  --cy-fw-extrabold: 800;

  --cy-trk-tight: -0.03em;
  --cy-trk-snug: -0.02em;
  --cy-trk-normal: 0;
  --cy-trk-wide: 0.06em;
  --cy-trk-caps: 0.08em;

  /* ── spacing (4px base) ── */
  --cy-space-0: 0px;
  --cy-space-1: 4px;
  --cy-space-2: 8px;
  --cy-space-3: 12px;
  --cy-space-4: 16px;
  --cy-space-5: 20px;
  --cy-space-6: 24px;
  --cy-space-8: 32px;
  --cy-space-10: 40px;
  --cy-space-12: 48px;
  --cy-space-16: 64px;
  --cy-space-20: 80px;
  --cy-space-24: 96px;

  /* ── radii ── */
  --cy-radius-xs: 4px;
  --cy-radius-sm: 6px;
  --cy-radius-md: 8px;
  --cy-radius-lg: 12px;
  --cy-radius-xl: 16px;
  --cy-radius-2xl: 20px;
  --cy-radius-full: 999px;

  /* ── z-index ── */
  --cy-z-base: 0;
  --cy-z-raised: 10;
  --cy-z-dropdown: 100;
  --cy-z-sticky: 200;
  --cy-z-overlay: 300;
  --cy-z-modal: 400;
  --cy-z-toast: 500;
  --cy-z-tooltip: 600;

  /* ── breakpoints (for JS / documentation; media queries cannot read these) ── */
  --cy-bp-xs: 390px;
  --cy-bp-sm: 640px;
  --cy-bp-md: 768px;
  --cy-bp-lg: 1024px;
  --cy-bp-xl: 1280px;
  --cy-bp-2xl: 1440px;

  /* ── motion ── */
  --cy-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --cy-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --cy-dur-fast: 120ms;
  --cy-dur-normal: 180ms;
  --cy-dur-slow: 260ms;

  /* ── chrome ── */
  --cy-nav: 58px;
  --cy-sat: env(safe-area-inset-top, 0px);
  --cy-sab: env(safe-area-inset-bottom, 0px);

  /* ── color: dark theme (default) ── */
  --cy-bg: #0c0c0c;
  --cy-bg-subtle: #141414;
  --cy-surface: #1a1a1a;
  --cy-surface-2: #222222;
  --cy-surface-3: #2a2a2a;
  --cy-border: #2c2c2c;
  --cy-border-strong: #3d3d3d;
  --cy-text: #f2f2f2;
  --cy-text-2: #9a9a9a;
  --cy-text-3: #6b6b6b;
  --cy-text-inv: #0c0c0c;
  --cy-accent: #ffffff;
  --cy-accent-hover: #e8e8e8;
  --cy-accent-muted: #ffffff1a;
  --cy-accent-on: #0c0c0c;
  --cy-focus: #ffffff;
  --cy-focus-ring: #ffffff33;

  /* Functional chart / alert semantics — muted, desaturated */
  --cy-bull: #6b8f7a;
  --cy-bull-muted: #6b8f7a26;
  --cy-bear: #a56b6b;
  --cy-bear-muted: #a56b6b26;
  --cy-warn: #a09060;
  --cy-warn-muted: #a0906026;
  --cy-info: #8a8a8a;
  --cy-info-muted: #8a8a8a26;

  --cy-chart-bg: #0c0c0c;
  --cy-chart-grid: #1f1f1f;
  --cy-chart-axis: #3d3d3d;
  --cy-chart-cross: #6b6b6b;

  --cy-candle-up-fill: #6b8f7a;
  --cy-candle-up-stroke: #6b8f7a;
  --cy-candle-down-fill: #a56b6b;
  --cy-candle-down-stroke: #a56b6b;

  /* ── shadows (dark) ── */
  --cy-shadow-xs: 0 1px 0 #ffffff0a inset;
  --cy-shadow-sm: 0 4px 12px -4px #00000088;
  --cy-shadow-md: 0 1px 0 #ffffff0a inset, 0 12px 28px -16px #000000a8;
  --cy-shadow-lg: 0 24px 48px -20px #000000c0;
  --cy-shadow-focus: 0 0 0 3px var(--cy-focus-ring);
}

/* ── light theme ── */
[data-theme="light"] {
  --cy-bg: #f5f5f5;
  --cy-bg-subtle: #ebebeb;
  --cy-surface: #ffffff;
  --cy-surface-2: #f0f0f0;
  --cy-surface-3: #e6e6e6;
  --cy-border: #e2e2e2;
  --cy-border-strong: #c8c8c8;
  --cy-text: #111111;
  --cy-text-2: #5c5c5c;
  --cy-text-3: #8a8a8a;
  --cy-text-inv: #f5f5f5;
  --cy-accent: #111111;
  --cy-accent-hover: #2a2a2a;
  --cy-accent-muted: #11111114;
  --cy-accent-on: #ffffff;
  --cy-focus: #111111;
  --cy-focus-ring: #1111112e;

  --cy-bull: #4e7a5e;
  --cy-bull-muted: #4e7a5e24;
  --cy-bear: #8e4f4f;
  --cy-bear-muted: #8e4f4f24;
  --cy-warn: #8a7a40;
  --cy-warn-muted: #8a7a4024;
  --cy-info: #6b6b6b;
  --cy-info-muted: #6b6b6b24;

  --cy-chart-bg: #ffffff;
  --cy-chart-grid: #e6e6e6;
  --cy-chart-axis: #c8c8c8;
  --cy-chart-cross: #8a8a8a;

  --cy-candle-up-fill: #4e7a5e;
  --cy-candle-up-stroke: #4e7a5e;
  --cy-candle-down-fill: #8e4f4f;
  --cy-candle-down-stroke: #8e4f4f;

  --cy-shadow-xs: 0 1px 0 #ffffff inset;
  --cy-shadow-sm: 0 4px 12px -4px #0000001a;
  --cy-shadow-md: 0 1px 0 #ffffff inset, 0 12px 28px -16px #00000024;
  --cy-shadow-lg: 0 24px 48px -20px #0000002e;
  --cy-shadow-focus: 0 0 0 3px var(--cy-focus-ring);
}

/* ── monochrome candles: hollow up, filled down ── */
[data-candle="mono"] {
  --cy-candle-up-fill: transparent;
  --cy-candle-up-stroke: #e8e8e8;
  --cy-candle-down-fill: #e8e8e8;
  --cy-candle-down-stroke: #e8e8e8;
}

[data-theme="light"][data-candle="mono"],
[data-theme="light"] [data-candle="mono"] {
  --cy-candle-up-fill: transparent;
  --cy-candle-up-stroke: #111111;
  --cy-candle-down-fill: #111111;
  --cy-candle-down-stroke: #111111;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --cy-dur-fast: 0ms;
    --cy-dur-normal: 0ms;
    --cy-dur-slow: 0ms;
  }
}

/* Chartyon marketing landing — uses tokens.css */
html, body { margin: 0; background: var(--cy-bg); color: var(--cy-text); }
body {
  font-family: var(--cy-font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: var(--cy-lh-normal);
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }


.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px;
  background: color-mix(in srgb, var(--cy-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cy-border);
}
.nav .word { height: 28px; display: block; }
.nav .links { display: flex; gap: 22px; margin-left: 12px; }
.nav .links a { font-size: 13px; font-weight: 600; color: var(--cy-text-2); }
.nav .links a:hover { color: var(--cy-text); }
.nav .grow { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.btn-primary { background: var(--cy-accent); color: var(--cy-accent-on); }
.btn-ghost { color: var(--cy-text-2); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

.hero { padding: 72px 0 32px; }
@media (max-width: 640px) { .hero { padding: 40px 0 16px; } }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cy-text-3); margin: 0 0 16px;
}
.hero h1 {
  font-size: 64px; line-height: 1.02; letter-spacing: -0.04em; font-weight: 800;
  margin: 0 0 20px; max-width: 16ch;
}
@media (max-width: 800px) { .hero h1 { font-size: 40px; } }
.hero .lede {
  font-size: 18px; color: var(--cy-text-2); max-width: 38rem; margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-frame {
  border: 1px solid var(--cy-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cy-surface);
  box-shadow: var(--cy-shadow-lg);
}
.hero-frame .bar {
  height: 36px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-bottom: 1px solid var(--cy-border);
  font-size: 12px; font-weight: 600;
}
.hero-frame .bar img { width: 16px; height: 16px; }
.hero-frame svg { display: block; width: 100%; height: auto; background: var(--cy-chart-bg); }

.section { padding: 72px 0; }
.section h2 {
  font-size: 32px; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 0 8px;
}
.section .sub { color: var(--cy-text-2); margin: 0 0 32px; max-width: 36rem; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feat {
  background: var(--cy-surface);
  border: 1px solid var(--cy-border);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: var(--cy-shadow-xs);
}
.feat .ic {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--cy-accent-muted); margin-bottom: 14px;
}
.feat .ic svg { width: 16px; height: 16px; }
.feat h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.02em; }
.feat p { margin: 0; color: var(--cy-text-2); font-size: 14px; }

.compare {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare th, .compare td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--cy-border);
}
.compare th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cy-text-3); font-weight: 700; }
.compare td:nth-child(2), .compare th:nth-child(2),
.compare td:nth-child(3), .compare th:nth-child(3) { text-align: center; }
.compare td:nth-child(3) { font-weight: 600; }
.compare .yes { font-weight: 700; }
.compare .no { color: var(--cy-text-3); }

.cta-band {
  margin: 24px 0 80px;
  padding: 48px 40px;
  border: 1px solid var(--cy-border);
  border-radius: 20px;
  background: var(--cy-surface);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.cta-band p { margin: 0; color: var(--cy-text-2); }
.cta-band .btn { margin-left: auto; }
@media (max-width: 700px) {
  .cta-band { padding: 28px 22px; }
  .cta-band .btn { margin-left: 0; }
}

footer.site {
  border-top: 1px solid var(--cy-border);
  padding: 28px 0 40px;
  display: flex; align-items: center; gap: 16px;
  color: var(--cy-text-3); font-size: 13px;
}
footer.site img { height: 20px; }
footer.site .grow { flex: 1; }

/* Chartyon build additions */
.nav .word{height:26px;width:auto;color:var(--cy-text)}
.nav .tgl{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;color:var(--cy-text-2);border:1px solid var(--cy-border)}
.nav .tgl svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav .lng{font-size:12px;font-weight:700;color:var(--cy-text-2);font-family:var(--cy-font-mono)}
@media (max-width:640px){.nav .links{display:none}.nav .lng{display:none}}
.hero-frame .bar .logo{width:16px;height:16px;color:var(--cy-text)}
.hero-frame .bar .grow{flex:1}
#lchart{height:380px;background:var(--cy-chart-bg);position:relative}
@media (max-width:640px){#lchart{height:260px}}
#lchart .msg{position:absolute;inset:0;display:grid;place-items:center;color:var(--cy-text-3);font-size:13px}
.feat .ic svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compare-wrap{overflow-x:auto}
.legal{border-top:1px solid var(--cy-border);padding:22px 0 8px;color:var(--cy-text-3);font-size:12.5px;line-height:1.6}
.legal a{color:var(--cy-text-2);text-decoration:underline}
footer.site .word{height:20px;width:auto;color:var(--cy-text)}
footer.site a{color:var(--cy-text-2)}
footer.site{flex-wrap:wrap}
.up{color:var(--cy-bull)}.dn{color:var(--cy-bear)}
