:root {
  --red: #E8302A;
  --red-dark: #B5121B;
  --yellow: #FFC93C;
  --cream: #FFF7EA;
  --ink: #1C1414;
  --muted: #6B5E5A;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --head: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Hafif nokta deseni */
  background-image: radial-gradient(rgba(28, 20, 20, .07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
/* Eldiven etkinken sistem imleci hiçbir yerde görünmesin */
html.glove-on, html.glove-on * { cursor: none !important; }

h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
kbd {
  font: 600 .85em var(--body);
  background: #fff; border: 2px solid var(--ink); border-bottom-width: 3px;
  border-radius: 7px; padding: 0 .4em; white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 247, 234, .85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 24px var(--head); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-weight: 800; }
.nav nav a:not(.btn) { text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 20px var(--head);
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { font-size: 16px; padding: 8px 18px; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-disabled { background: var(--yellow); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) clamp(18px, 4vw, 48px) 70px;
}
.pill {
  display: inline-block; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 4px 14px; font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--ink);
}
.hero h1 { font-size: clamp(46px, 7vw, 88px); margin: 22px 0 34px; }
.squiggle { color: var(--red); position: relative; white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14'%3E%3Cpath d='M0 7 Q10 0 20 7 T40 7' fill='none' stroke='%23FFC93C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 40px 14px;
  z-index: -1;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hint { margin-top: 26px; font-weight: 800; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.burst {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: repeating-conic-gradient(var(--yellow) 0 10deg, #FFE08A 10deg 20deg);
  border: 3px solid var(--ink);
  animation: spin 40s linear infinite;
}
.hero-icon {
  position: relative; width: min(360px, 70vw); height: auto;
  filter: drop-shadow(8px 10px 0 rgba(28, 20, 20, .9));
  animation: bob 3.2s ease-in-out infinite;
}
.sticker {
  position: absolute; font: 700 22px var(--head);
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 4px 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.s1 { top: 30px; left: 0; transform: rotate(-10deg); background: var(--red); color: #fff; }
.s2 { bottom: 40px; left: 10px; transform: rotate(7deg); }
.s3 { top: 70px; right: 0; transform: rotate(9deg); background: var(--yellow); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-3deg); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red); color: #fff; overflow: hidden;
  border-block: 3px solid var(--ink);
  transform: rotate(-1.5deg); margin: 20px -20px;
}
.marquee .track {
  display: flex; gap: 28px; width: max-content; padding: 16px 0;
  font: 700 28px var(--head); animation: slide 28s linear infinite;
}
.marquee b { color: var(--yellow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 100px clamp(18px, 4vw, 48px) 40px; }
.section h2 { font-size: clamp(36px, 5vw, 60px); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 14px auto 44px; max-width: 36em; }
.psst { text-align: center; font-weight: 800; margin-top: 34px; color: var(--muted); }

/* ---------- Try it ---------- */
.try-grid { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }

.mac-menu {
  font: 13.5px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 14px;
  padding: 6px 0;
  box-shadow: 0 18px 50px rgba(28, 20, 20, .22), 0 2px 6px rgba(28, 20, 20, .12);
  position: sticky; top: 100px;
}
.mac-menu hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin: 6px 14px; }
.mm-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.mm-head img { border-radius: 8px; }
.mm-head div { flex: 1; display: flex; flex-direction: column; }
.mm-head b { font-size: 14.5px; }
.mm-head small { color: #8a8a8e; font-size: 11.5px; margin-top: 2px; }
.mm-section { color: #a0a0a5; font-size: 11.5px; font-weight: 600; padding: 4px 14px 2px; }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; min-height: 30px; }
.mm-row > span { white-space: nowrap; }
.mm-row input[type=range] { width: 140px; }
.mm-item { padding: 5px 14px; display: flex; justify-content: space-between; }
.mm-item kbd { border: 0; background: none; color: #a0a0a5; font: inherit; }
[data-show].hidden { display: none; }

.switch {
  width: 32px; height: 19px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(0, 0, 0, .14); position: relative; transition: background .16s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .16s cubic-bezier(.3, .7, .4, 1);
}
.switch[aria-checked=true] { background: #2F7CF6; }
.switch[aria-checked=true]::after { transform: translateX(13px); }
.switch.big { width: 42px; height: 24px; }
.switch.big::after { width: 20px; height: 20px; }
.switch.big[aria-checked=true]::after { transform: translateX(18px); }

input[type=range] { accent-color: #2F7CF6; }

/* Sahte pencere */
.window {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 3px solid var(--ink); background: #FFF1D6;
}
.titlebar i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--red); }
.titlebar i:nth-child(2) { background: var(--yellow); }
.titlebar i:nth-child(3) { background: #5CC46A; }
.titlebar span { margin-left: 10px; font: 700 17px var(--head); }
.win-body { display: flex; min-height: 520px; }
.pane { padding: 18px 22px; min-width: 200px; }
#pane-left { flex: 0 0 52%; }
#pane-right { flex: 1; background: #FFFBF3; }
.divider { flex: 0 0 12px; background: repeating-linear-gradient(0deg, #eee 0 6px, #ddd 6px 12px); border-inline: 2px solid var(--ink); }
.label { margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.pane input[type=text] {
  width: 100%; font: 600 17px var(--body); padding: 12px 14px; margin-bottom: 22px;
  border: 2.5px solid var(--ink); border-radius: 12px; outline: none;
}
.pane input[type=text]:focus { box-shadow: 0 0 0 4px var(--yellow); }
#doodle { width: 100%; height: 260px; border: 2.5px dashed var(--ink); border-radius: 12px; background: #fff; touch-action: none; display: block; }
.sticker-zone { position: relative; height: 110px; border: 2.5px dashed var(--ink); border-radius: 12px; margin-bottom: 18px; }
.drag-sticker {
  position: absolute; left: 20px; top: 18px; font-size: 52px; line-height: 1; user-select: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.zoom { height: 120px; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; display: grid; place-items: center; margin-bottom: 18px; background: #FFE9B0; }
.zoom img { height: 90px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); user-select: none; -webkit-user-drag: none; }
.resize-box {
  position: relative; width: 150px; height: 80px; min-width: 80px; min-height: 50px; max-width: 100%;
  background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 12px;
  display: grid; place-items: center; font: 700 22px var(--head);
}
.corner {
  position: absolute; right: -8px; bottom: -8px; width: 20px; height: 20px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
}

/* ---------- Features ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.card {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease;
}
.card:hover { transform: translateY(-6px) rotate(-.6deg); }
.card.yellow { background: #FFE59A; }
.card.red { background: var(--red); color: #fff; }
.card h3 { font-size: 26px; margin: 14px 0 8px; }
.card p { margin: 0; font-size: 16.5px; }
.card-icon { font-size: 42px; line-height: 1; height: 50px; display: flex; align-items: center; gap: 8px; }
.card-icon.sprites img { height: 44px; width: auto; }

/* ---------- Get ---------- */
.get-card {
  display: flex; align-items: center; gap: 36px;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 30px;
  padding: clamp(28px, 5vw, 56px); box-shadow: 8px 8px 0 var(--ink);
}
.get-card img { filter: drop-shadow(5px 6px 0 var(--ink)); flex: none; }
.get h2 { text-align: left; }
.get p { margin: 10px 0 22px; font-size: 19px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 40px; }
details {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; margin-bottom: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
summary { font: 600 20px var(--head); padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; line-height: .8; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 100px; padding: 40px clamp(18px, 4vw, 48px);
  border-top: 3px solid var(--ink); background: var(--ink); color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer div { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; }
.footer img { border-radius: 6px; }
.footer p { margin: 0; opacity: .7; }

/* ---------- Eldiven imleci ---------- */
#glove, #dust {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
  will-change: transform; display: none;
}
#dust { background-size: 700% 100%; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { min-height: 360px; }
  .burst { width: 340px; height: 340px; }
  .try-grid { grid-template-columns: 1fr; }
  .mac-menu { position: static; max-width: 320px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .win-body { flex-direction: column; }
  .divider { display: none; }
  #pane-left { flex: auto; }
  .get-card { flex-direction: column; text-align: center; }
  .get h2 { text-align: center; }
}
@media (pointer: coarse) { .desktop-only { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .burst, .hero-icon, .marquee .track { animation: none; }
}
