@font-face {
  font-family: "Jakarta";
  src: url("jakarta.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Uygulama teması (lib/core/theme/video_math_theme.dart) */
  --red: #ce151a;          /* VideomathBrandColors.primaryRed */
  --red-deep: #a10f13;
  --red-soft: #f6d9da;
  --ink: #0e1525;          /* lightOnSurface */
  --ink-2: #3b4254;
  --muted: #676e80;        /* lightLogoGray */
  --line: #d3d5dc;
  --paper: #e6e7ec;        /* surfaceLight */
  --card: #f3f4f7;
  --board: #1f3d33;
  --board-2: #183128;
  --chalk: #f7f4e8;
  --chalk-y: #ffe66d;
  --chalk-c: #64e9ff;
  --chalk-g: #7cff9b;
  --start-a: #00c16a; --start-b: #006b3c;
  --smart-a: #ff8a00; --smart-b: #c24a00;
  --pro-a: #8a3dff;  --pro-b: #4a12b8;
  --radius: 16px;          /* cardTheme */
  --btn-radius: 14px;      /* filledButtonTheme */
  --shadow: 0 18px 40px -26px rgba(14, 21, 37, 0.45);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;          /* darkOnSurface */
    --ink-2: #c9ced8;
    --muted: #9ca4b1;        /* darkLogoGray */
    --line: #2a2a2e;
    --paper: #09090b;        /* surfaceDark */
    --card: #18181a;         /* surfaceDarkElevated */
    --red-soft: #2b0d0f;
    --shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.wordmark { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark .v { font-weight: 300; color: var(--muted); }
.wordmark .m { font-weight: 800; color: var(--muted); }
.wordmark .p { font-weight: 700; font-size: .78em; color: var(--muted); margin-left: 2px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--red); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--btn-radius); border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(206,21,26,.75); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 760px; height: 760px;
  background: radial-gradient(circle at center, rgba(206,21,26,.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red);
  font-weight: 700; font-size: .85rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em;
  margin: 18px 0 18px; font-weight: 800;
}
h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
h1 .hl svg { position: absolute; left: 0; bottom: -0.18em; width: 100%; height: .35em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* ---------- chalkboard demo ---------- */
.stage { position: relative; }
.board {
  position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(160deg, var(--board), var(--board-2));
  box-shadow: 0 30px 70px -30px rgba(10, 40, 30, .8), inset 0 0 0 10px #2b2320, inset 0 0 0 12px #4a3a31;
}
.board::after { /* chalk dust */
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px);
  background-size: 3px 3px; mix-blend-mode: overlay;
}
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .chalk { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.board text { font-family: "Jakarta", sans-serif; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.board.play .draw { animation: draw var(--d, 1s) ease forwards var(--t, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.board.play .pop { animation: pop .5s ease forwards var(--t, 0s); }
@keyframes pop { to { opacity: 1; transform: none; } }
.board.play .q { animation: pop .5s ease forwards 4.1s, out .3s ease forwards 8.4s; }
@keyframes out { to { opacity: 0; } }
.answer { opacity: 0; transform: scale(.85); transform-origin: center; transform-box: fill-box; }
.board.play .answer { animation: ans .6s cubic-bezier(.2,1.4,.4,1) forwards var(--t, 0s); }
@keyframes ans { to { opacity: 1; transform: none; } }
.rec {
  position: absolute; top: 18px; left: 22px; display: flex; gap: 8px; align-items: center;
  color: var(--chalk); font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .85;
}
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; animation: pulse 1.2s infinite; }
.progress { position: absolute; left: 22px; right: 22px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--chalk-y); }
.board.play .progress i { animation: prog var(--total, 11s) linear forwards; }
@keyframes prog { to { width: 100%; } }
.board { z-index: 1; }
.mascot {
  /* Tahtanın ARKASINDA, üst kenardan başını uzatır: içeriği örtmez. */
  position: absolute; z-index: 0; width: 23%; right: 7%; bottom: 78%;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.3));
  animation: peek 5s ease-in-out infinite;
}
@keyframes peek { 0%,100% { transform: translateY(6%) rotate(-3deg) } 50% { transform: translateY(-4%) rotate(3deg) } }
.stage { margin-top: 150px; }
.photo-chip {
  position: absolute; z-index: 2; left: -4%; top: -14%; width: 38%; padding: 10px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow); transform: rotate(-5deg);
  font-size: .78rem; color: var(--ink-2); border: 1px solid var(--line);
}
.photo-chip .ph {
  border-radius: 10px; padding: 10px 12px; background: repeating-linear-gradient(0deg, #fff, #fff 17px, #e8eef6 18px);
  color: #333; font-weight: 600; line-height: 1.5;
}
.photo-chip .ph b { color: var(--red); }
.photo-chip small { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 700; color: var(--red); }
@media (max-width: 900px) { .mascot { width: 24%; right: 6%; bottom: 76%; } .photo-chip { left: 0; top: -12%; width: 52%; } .stage { margin-top: 130px; } }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head .kicker { color: var(--red); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.12; margin: 8px 0 12px; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.step .ico svg { width: 28px; height: 28px; }
.step::after {
  counter-increment: s; content: counter(s);
  position: absolute; top: 18px; right: 22px; font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: color-mix(in srgb, var(--ink) 7%, transparent);
}
.step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.feat h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.feat p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.feat .emoji { font-size: 1.6rem; line-height: 1; }
.feat.wide { grid-column: span 2; display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border: 0; }
.feat.wide p { color: rgba(255,255,255,.85); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.langs span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .8rem; font-weight: 600; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; flex-direction: column; align-items: flex-start; } }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model {
  position: relative; overflow: hidden; padding: 28px; border-radius: 22px; color: #fff; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.6);
}
.model::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  top: -120px; left: -90px; background: rgba(255,255,255,.14);
}
.model::after {
  content: ""; position: absolute; right: -40%; bottom: -55%; width: 120%; height: 90%;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28);
}
.model.start { background: linear-gradient(145deg, var(--start-a), var(--start-b)); }
.model.smart { background: linear-gradient(145deg, var(--smart-a), var(--smart-b)); }
.model.pro   { background: linear-gradient(145deg, var(--pro-a), var(--pro-b)); }
.model .tag { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; position: relative; }
.model h3 { font-size: 1.9rem; margin: 6px 0 4px; letter-spacing: -0.02em; position: relative; }
.model p { margin: 0; opacity: .9; position: relative; }
.model ul { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.model li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.25); font-size: .95rem; }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }

.levels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.levels span {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font-weight: 700;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

.final {
  border-radius: 32px; padding: 56px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #ea2a2f, var(--red) 40%, var(--red-deep));
  color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 24px;
}
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.final .btn-primary { background: #fff; color: var(--red); box-shadow: none; }
.final .btn-primary:hover { background: #ffe9ee; }
.final img { width: 70%; margin-left: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .final { grid-template-columns: 1fr; padding: 32px 24px; } .final img { width: 55%; margin: 0 auto; } }

footer { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--red); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal .lang-switch { display: inline-flex; gap: 6px; margin-bottom: 18px; }
.legal .lang-switch a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink-2); }
.legal .lang-switch a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.callout { padding: 20px 22px; border-radius: 18px; background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.callout p { margin: 6px 0 0; color: var(--ink); }
.steps-list { counter-reset: n; list-style: none; padding: 0; }
.steps-list li { counter-increment: n; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); }
.steps-list li::before {
  content: counter(n); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .pop, .answer, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- mağaza düğmeleri ---------- */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 10px 18px 10px 14px; border-radius: var(--btn-radius);
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.01em; }
.store.soon { opacity: .72; }
.final .store { background: #fff; color: var(--ink); }
.ask-orb { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--ink), 0 10px 20px -8px rgba(0,0,0,.5); }
.pro-badge { height: 1.1em; display: inline-block; vertical-align: -0.12em; }

/* ---------- tanıtım videosu ---------- */
.promo { padding-top: 40px; }
.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: #000; box-shadow: 0 30px 70px -34px rgba(14, 21, 37, .7); max-width: 980px; margin: 0 auto;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.yt:hover img { transform: scale(1.03); opacity: .9; }
.yt button {
  position: absolute; right: 22px; bottom: 20px; width: 96px; height: 68px; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); transition: transform .2s ease;
}
.yt:hover button { transform: scale(1.08); }
.yt button svg { width: 100%; height: 100%; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- telefon ---------- */
.nav .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .nav .wrap { height: 60px; }
  .nav .btn { padding: 10px 14px; }
  .nav .btn .long { display: none; }
  .wordmark { font-size: 1.25rem; }
  .brand img { width: 32px; height: 32px; }
  .photo-chip { width: 46%; top: -22%; left: -1%; padding: 7px; font-size: .64rem; }
  .photo-chip .ph { padding: 6px 8px; line-height: 1.35; }
  .photo-chip small { margin-top: 5px; }
  .stage { margin-top: 110px; }
  .yt button { width: 64px; height: 45px; right: 14px; bottom: 12px; }
  .final { padding: 28px 20px; }
  section { padding: 64px 0; }
}

/* ---------- dil seçici ---------- */
.lang-select {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; font-size: .9rem;
  color: var(--ink); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676e80' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1.5px solid var(--line); border-radius: var(--btn-radius); padding: 9px 32px 9px 12px; cursor: pointer; max-width: 150px;
}
[dir="rtl"] .lang-select { background-position: left 10px center; padding: 9px 12px 9px 32px; }
.nav .btn .short { display: none; }
@media (max-width: 600px) {
  .nav .btn .short { display: inline; }
  .lang-select { max-width: 104px; padding: 8px 26px 8px 10px; font-size: .82rem; }
  .nav-links { gap: 8px; }
}
[dir="rtl"] .eyebrow, [dir="rtl"] .hero .wrap > div:first-child { text-align: right; }
[dir="rtl"] .photo-chip { direction: rtl; }
/* Matematik ifadeleri RTL dillerde de soldan sağa kalsın. */
.board svg text { direction: ltr; unicode-bidi: isolate; }
.photo-chip .ph b { direction: ltr; unicode-bidi: isolate; }
