:root {
  --yellow: #ffd54a;
  --ink: #2b2140;
  --paper: #fffaf0;
  --mint: #b9f0c2;
  --sky: #bfe6ff;
  --pink: #ffc9d6;
  --green: #3ecf6e;
  --green-dark: #25a34f;
  --muted: #554a6b;
  --line: rgba(43, 33, 64, 0.18);
  --display: ui-rounded, 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html[lang='tr'] [data-l='en'],
html[lang='en'] [data-l='tr'] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px #fff;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  min-width: 0;
}
.brand img { width: 34px; height: 34px; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-switch {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 14px;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
}
.lang-switch button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

/* buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.8em 1.6em;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--green-dark);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--green-dark); }

/* hero */
.hero { padding-block: 24px 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: 'text mascot';
  gap: 24px 40px;
  align-items: center;
}
.hero-text { grid-area: text; }
.hero-text .lead { font-size: 1.2rem; max-width: 34em; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 20px 0 0; }
.hero-mascot { grid-area: mascot; justify-self: center; width: min(300px, 70%); }
.hero-mascot svg { width: 100%; height: auto; animation: bob 3.2s ease-in-out infinite; overflow: visible; }

.eyes { transform-origin: 18px 15.5px; animation: blink 5s infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* live demo */
.demo {
  margin-top: 40px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--yellow);
  padding: 20px clamp(16px, 4vw, 40px) 24px;
}
.demo-label { font-size: 0.85rem; color: var(--muted); margin: 0 0 4px; }
.demo-text {
  position: relative;
  margin: 0;
  padding-top: 36px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 2.4;
}
.demo-text .w {
  display: inline-block;
  padding: 0 0.14em;
  border-radius: 0.3em;
  transition: background-color 0.15s;
}
.demo-text .w.done { background: var(--mint); }
.demo-text .w.now { background: var(--yellow); box-shadow: inset 0 -3px 0 var(--ink); }

.walker {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.3, 0.8, 0.4, 1);
  will-change: transform;
}
.walker.run { transition-duration: 0.2s; }
.walker.fly { transition-duration: 0.9s; transition-timing-function: cubic-bezier(0.5, -0.4, 0.4, 1.2); }
.walker svg { width: 100%; height: 100%; overflow: visible; }
.walker.hop svg { animation: hop 0.34s ease-out; }
.walker.flip svg { animation: flip 0.55s ease-in-out; }
.walker.fly svg { animation: flip 0.9s ease-in-out; }

@keyframes hop {
  0% { transform: translateY(0) scale(1.08, 0.9); }
  45% { transform: translateY(-9px) scale(0.95, 1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes flip {
  from { transform: rotate(0) translateY(0); }
  50% { transform: rotate(-180deg) translateY(-12px); }
  to { transform: rotate(-360deg) translateY(0); }
}

/* sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { max-width: 40em; margin-bottom: 32px; }

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  border-radius: 24px;
  padding: clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.tile h3 { margin-bottom: 0.3em; }
.tile p { margin: 0; }
.tile-a { grid-column: span 4; background: var(--mint); }
.tile-b { grid-column: span 2; background: var(--sky); }
.tile-c { grid-column: span 2; background: var(--pink); }
.tile-d { grid-column: span 4; background: #fff; border: 2px solid var(--ink); }
.tile-d .pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }

.shot {
  margin: 0;
  background: repeating-linear-gradient(45deg, rgba(43, 33, 64, 0.06) 0 10px, transparent 10px 20px);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 10;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.popup { aspect-ratio: auto; min-height: 120px; width: 160px; }
.shot.popup img { height: auto; }
.shot.missing img { visibility: hidden; }

/* yellow full-bleed */
.yellow { background: var(--yellow); }
.yellow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px 48px;
  align-items: center;
}
.yellow .shot { background-color: rgba(255, 255, 255, 0.5); }
.damla-small { width: 72px; margin-bottom: 12px; }
.damla-small svg { overflow: visible; animation: bob 3.2s ease-in-out infinite; }

/* privacy block */
.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 56px;
}
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  padding: 14px 0 14px 28px;
  border-top: 2px solid var(--line);
  position: relative;
}
.facts li:last-child { border-bottom: 2px solid var(--line); }
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--mint);
  border: 2px solid var(--ink);
}
.facts li:nth-child(3n + 2)::before { background: var(--sky); }
.facts li:nth-child(3n + 3)::before { background: var(--pink); }

/* video */
.video-frame {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--sky);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* install */
.install { background: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.keys { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; }
.keys dt { margin: 0; }
.keys dd { margin: 0; }
kbd {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* footer */
.site-footer { padding-block: 32px 48px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }

/* prose (privacy) */
.prose { max-width: 42em; padding-block: 24px 64px; margin-left: max(16px, calc((100% - 1120px) / 2)); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .date { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'mascot' 'text'; }
  .hero-mascot { justify-self: start; width: 130px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: auto; }
  .yellow-grid, .voice-grid, .install-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .tile-d .pair { grid-template-columns: minmax(0, 1fr); }
  .shot.popup { width: 150px; }
  .brand span { font-size: 0.95rem; }
  .btn { display: block; text-align: center; }
  .keys { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .keys dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot svg, .damla-small svg, .eyes { animation: none; }
  .walker, .walker.run, .walker.fly { transition-duration: 0.01s; }
  .walker.hop svg, .walker.flip svg, .walker.fly svg { animation: none; }
}
