/* COMMUNITY: renkler uygulamadaki constants/Colors.ts ile aynı */
:root {
  --cream: #F5F0E8;
  --cream-2: #EDE8E0;
  --white: #FFFFFF;
  --ink: #1A1A2E;
  --ink-2: #5A5A6E;
  --ink-3: #8A8A9E;
  --line: #DDD8D0;
  --violet: #5C3D8F;
  --violet-d: #4A3175;
  --violet-dd: #2E1F4A;
  --violet-l: #7B5CB5;
  --orange: #FF6B35;
  --gold: #F0B429;
  --coral: #E03A20;
  --teal: #1A8C7A;
  --blue: #3D5AFF;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --shadow: 0 24px 60px -24px rgba(26, 26, 46, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet); color: var(--white);
  font-weight: 700; border-radius: 999px; white-space: nowrap;
  padding: 14px 24px; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -10px rgba(92, 61, 143, .7);
}
.btn:hover { background: var(--violet-d); transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__links { display: flex; gap: 32px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--violet); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; object-fit: contain; }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--violet); }
.brand--small .brand__mark { width: 28px; height: 28px; }
.brand--small .brand__word { font-size: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero__copy { position: relative; z-index: 1; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.blob--violet { width: 560px; height: 560px; background: var(--violet-l); right: -120px; top: -80px; opacity: .32; }
.blob--orange { width: 380px; height: 380px; background: var(--orange); right: 280px; bottom: -160px; opacity: .22; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px 7px 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(26, 140, 122, .18); }
.eyebrow--plain { background: none; border: 0; padding: 0; color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; }
.eyebrow--light { color: var(--gold); }

.hero h1 { font-size: clamp(44px, 6.2vw, 80px); font-weight: 800; margin: 24px 0 22px; }
.mark { position: relative; white-space: nowrap; color: var(--violet); }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c40-7 90-9 194-4' stroke='%23FF6B35' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  z-index: -1;
}
.mark--gold { color: var(--gold); }
.mark--gold::after { display: none; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  border-radius: 14px; padding: 10px 20px 10px 16px;
  font-weight: 700; font-size: 17px; line-height: 1.15;
  transition: transform .2s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: .04em; }
.stores--light .store { background: var(--white); color: var(--ink); }

.hero__facts { list-style: none; display: flex; gap: 28px; padding: 0; margin: 36px 0 0; color: var(--ink-2); font-size: 15px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--display); font-size: 26px; color: var(--ink); line-height: 1.1; }

/* ---------- phones ---------- */
.hero__visual { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; height: 600px;
  background: var(--ink); border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow), 0 0 0 2px #2c2c45 inset;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--cream); padding: 44px 16px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.phone__notch { position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: var(--ink); }
.phone--front { left: 46%; top: 10px; translate: -50% 0; z-index: 2; animation: floatA 7s ease-in-out infinite; }
.phone--back { right: -10px; top: 58px; rotate: 7deg; opacity: .97; animation: floatB 8s ease-in-out infinite; }
.phone--back .phone__screen { padding-top: 34px; }

@keyframes floatA { 50% { transform: translateY(-12px); } }
@keyframes floatB { 50% { transform: translateY(10px); } }

.scr-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 24px; }
.ico-btn { width: 34px; height: 34px; border-radius: 12px; background: var(--white); display: grid; place-items: center; color: var(--violet); font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--body); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pill--gold { background: rgba(240, 180, 41, .2); color: #8a6200; }

.card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(26, 26, 46, .35); }
.card__photo {
  position: relative; height: 218px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(150deg, var(--violet-l), var(--violet) 55%, var(--violet-dd));
  display: grid; place-items: center;
}
.card__initial { font-family: var(--display); font-weight: 800; font-size: 96px; color: rgba(255,255,255,.9); line-height: 1; }
.compat { position: absolute; top: 12px; right: 12px; background: var(--white); color: var(--violet); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 10px; }
.card__body { padding: 14px 16px 16px; }
.card__name { font-family: var(--display); font-weight: 800; font-size: 20px; }
.card__meta { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; margin: 2px 0 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, white); padding: 4px 10px; border-radius: 999px; }

.actions { display: flex; justify-content: center; gap: 18px; margin-top: 2px; }
.act { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 8px 18px -10px rgba(26, 26, 46, .45); font-size: 20px; }
.act--no { color: var(--coral); }
.act--star { color: var(--gold); width: 42px; height: 42px; align-self: center; font-size: 17px; }
.act--yes { background: var(--violet); color: var(--white); }

.tabbar { margin: auto -16px 0; background: var(--white); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 12px 10px 22px; color: var(--ink-3); font-size: 20px; }
.tabbar .on { color: var(--violet); }

.game-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; color: var(--white); }
.game-tile svg { width: 24px; height: 24px; padding: 8px; box-sizing: content-box; background: rgba(255,255,255,.2); border-radius: 12px; }
.game-tile b { display: block; font-size: 14px; }
.game-tile small { font-size: 11px; opacity: .85; }
.game-tile--orange { background: linear-gradient(135deg, var(--orange), #ff8f5c); }
.game-tile--violet { background: linear-gradient(135deg, var(--violet), var(--violet-l)); }
.game-tile--teal { background: linear-gradient(135deg, var(--teal), #27a893); }

.board { background: var(--white); border-radius: 18px; padding: 12px 14px; font-size: 13px; }
.board__title { font-weight: 800; margin-bottom: 6px; }
.board__row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 600; }
.board__row b { margin-left: auto; color: var(--violet); }
.board__row i { font-style: normal; font-weight: 800; width: 14px; color: var(--ink-3); }
.board__row i.r1 { color: var(--gold); }
.av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-size: 11px; font-weight: 800; }
.av--teal { background: var(--teal); } .av--coral { background: var(--coral); } .av--violet { background: var(--violet); }

.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 18px; padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.25;
}
.float b { display: block; }
.float small { color: var(--ink-3); font-size: 12px; }
.float__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.float__ico--violet { background: rgba(92, 61, 143, .12); color: var(--violet); }
.float__ico--gold { background: rgba(240, 180, 41, .2); color: #c48a00; }
.float--match { left: 0; top: 150px; animation: floatB 6s ease-in-out infinite; }
.float--score { right: 10px; bottom: 30px; animation: floatA 6.5s ease-in-out infinite; }

/* ---------- marquee ---------- */
.marquee { background: var(--violet); padding: 18px 0; overflow: hidden; rotate: -1.2deg; margin: -20px -20px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--cream); white-space: nowrap;
  padding-right: 14px;
}
.marquee span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--tight { padding: 40px 0 110px; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2, .games h2, .cta h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; margin: 14px 0 18px; }
.section__head p { color: var(--ink-2); font-size: 18px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  --bg: var(--white); --fg: var(--ink); --accent: var(--violet);
  position: relative; overflow: hidden;
  background: var(--bg); color: var(--fg);
  border-radius: var(--radius); padding: 30px;
  min-height: 250px; display: flex; flex-direction: column;
  transition: transform .3s;
}
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 26px; font-weight: 800; margin: auto 0 10px; padding-top: 28px; }
.tile p { opacity: .82; font-size: 16px; }
.tile__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255,255,255,.18); color: currentColor; }
.tile--wide { grid-column: span 2; grid-row: span 1; }
.tile--violet { --bg: var(--violet); --fg: var(--white); }
.tile--coral { --bg: var(--coral); --fg: var(--white); }
.tile--ink { --bg: var(--ink); --fg: var(--white); }
.tile--teal { --bg: var(--teal); --fg: var(--white); }
.tile--orange { --bg: var(--orange); --fg: var(--white); }

.tile--wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; }
.tile--wide .tile__ico { grid-column: 1; align-self: start; }
.tile--wide h3, .tile--wide p { grid-column: 1; }
.dna { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: flex; flex-direction: column; gap: 16px; background: rgba(255,255,255,.1); border-radius: 18px; padding: 22px; }
.dna span { display: block; font-size: 13px; font-weight: 600; opacity: .85; margin-bottom: 6px; }
.dna i { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.dna i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange)); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.tile.is-in .dna i::after { width: var(--w); }

/* games */
.section--dark { background: var(--violet-dd); color: var(--white); position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--violet); filter: blur(120px); opacity: .6; left: -200px; top: -200px; }
.games { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.games__copy p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 460px; }
.game-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.game-list li {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 18px 22px;
  transition: background .25s, transform .25s;
}
.game-list li:hover { background: rgba(255,255,255,.11); transform: translateX(6px); }
.game-list b { display: block; font-family: var(--display); font-size: 20px; }
.game-list small { color: rgba(255,255,255,.68); font-size: 15px; }
.gl-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); flex-shrink: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); position: relative; }
.steps__n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--cream-2); -webkit-text-stroke: 1.5px var(--violet); }
.steps h3 { font-size: 24px; font-weight: 800; margin: 22px 0 8px; }
.steps p { color: var(--ink-2); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -16px; width: 12px; height: 12px; z-index: 1;
  border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); rotate: 45deg;
}

/* cta */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-d) 60%, var(--violet-dd) 100%);
  color: var(--white); border-radius: 36px; padding: 72px;
}
.cta p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 480px; }
.cta__art { position: relative; height: 280px; }
.cta__logo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 136px; height: 136px; border-radius: 38px; background: var(--cream);
  display: grid; place-items: center;
  outline: 8px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px -12px rgba(0,0,0,.45);
}
.cta__logo img { width: 100px; height: 100px; }
.bubble {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: var(--c); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--white);
  border: 4px solid rgba(255,255,255,.9);
  animation: floatA 6s ease-in-out infinite;
}
.b1 { left: 8%; top: 12%; } .b2 { right: 10%; top: 4%; animation-delay: -1s; } .b3 { left: 2%; bottom: 14%; animation-delay: -2s; width: 48px; height: 48px; font-size: 18px; } .b4 { right: 2%; bottom: 20%; animation-delay: -3s; } .b5 { left: 46%; bottom: -2%; animation-delay: -4s; width: 44px; height: 44px; font-size: 16px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer strong { color: var(--ink-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-inline: auto; }
  .stores, .hero__facts { justify-content: center; }
  .hero__visual { max-width: 560px; width: 100%; margin: 20px auto 0; }
  .games { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 56px 40px; }
  .cta__art { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .btn--small { padding: 9px 14px; font-size: 14px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__word { font-size: 19px; }
  .hero { padding: 32px 0 72px; }
  .hero__facts { gap: 20px; }
  .hero__visual { height: 560px; }
  .phone--front { left: 50%; scale: .9; transform-origin: top center; }
  .phone--back { display: none; }
  .float--match { left: -4px; top: 120px; scale: .9; }
  .float--score { display: none; }
  .section { padding: 84px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; grid-template-columns: 1fr; }
  .dna { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { top: auto; bottom: -14px; right: 50%; rotate: 135deg; }
  .cta { padding: 44px 26px; border-radius: 28px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .dna i::after { width: var(--w); }
}
