/* Kutu Patlat — kutupatlat.app */
:root {
  --navy-1: #2b3a8c;
  --navy-2: #16204f;
  --navy-3: #0e1638;
  --ink: #1d2150;
  --muted: #5d648f;
  --yellow: #ffe066;
  --red: #ff5a5f;
  --orange: #ff8a3d;
  --amber: #ffb400;
  --green: #2eb872;
  --cyan: #2ec4f1;
  --purple: #a66cff;
  --pink: #ff7ac6;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --radius: 24px;
  --shadow: 0 20px 50px rgba(5, 10, 40, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
  background: var(--navy-2);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fixed gradient layer (background-attachment: fixed is unreliable on iOS Safari). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}

h1, h2, h3, .brand { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.1; }

a { color: var(--yellow); }

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

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

/* ---------- Floating background blocks ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky span {
  position: absolute;
  bottom: -80px;
  width: var(--s, 34px);
  height: var(--s, 34px);
  border-radius: 22%;
  background: var(--c);
  opacity: 0.18;
  animation: rise var(--d, 22s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes rise {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-120vh) rotate(260deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sky span, .logo .b, .phone.main { animation: none !important; }
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 24px; font-weight: 800; }
.nav .brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav nav a:hover { background: var(--card); color: #fff; }

/* ---------- Block logo ---------- */
.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 18px; }
.logo .row { display: flex; gap: 8px; }
.logo .b {
  --c: var(--red);
  width: clamp(44px, 9vw, 74px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: clamp(28px, 6vw, 48px); color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.25);
  border-radius: 18%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45) 0 10%, transparent 10.5%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, white) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 78%, black) 100%);
  box-shadow:
    inset 0 -6px 0 rgba(0,0,0,.22),
    inset 0 4px 0 rgba(255,255,255,.35),
    0 10px 20px rgba(0,0,0,.3);
  transform: rotate(var(--r, -4deg));
  animation: bob 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes bob { 50% { transform: rotate(var(--r, -4deg)) translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 32px 0 60px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 10px 0 8px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 28px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 30px; height: 30px; fill: #fff; }
.store-btn small { display: block; font-size: 12px; opacity: .85; line-height: 1.1; }
.store-btn strong { display: block; font-size: 22px; line-height: 1.1; font-family: "Baloo 2", sans-serif; }
.soon { display: block; margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.65); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.badge {
  background: var(--card); border: 1px solid var(--card-border);
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
}

/* ---------- Screenshot cards (short 4:5 crops) ---------- */
.phones { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 28px); margin-top: 44px; }
.phone {
  width: clamp(150px, 20vw, 230px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: #0b0d17;
  box-shadow: var(--shadow), 0 0 0 4px rgba(255,255,255,.14);
  flex-shrink: 0;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.main { width: clamp(190px, 26vw, 300px); animation: float 6s ease-in-out infinite; box-shadow: var(--shadow), 0 0 0 4px rgba(255,224,102,.55); }
.phone.side { opacity: .9; transform: scale(.94); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 640px) {
  .phone.side { display: none; }
  .phone.main { width: min(78vw, 320px); }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 8px; }
.section-title p { color: rgba(255,255,255,.75); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(6px);
}
.card h3 { margin: 12px 0 6px; font-size: 24px; }
.card p { margin: 0; color: rgba(255,255,255,.8); }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, var(--a, var(--pink)), var(--z, var(--purple)));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 8px 18px rgba(0,0,0,.3);
}

/* Modes: coloured like the in-game buttons */
.modes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mode {
  border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 85%, white), var(--m));
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), var(--shadow);
}
.mode::after {
  content: ""; position: absolute; inset: 6px 10px auto; height: 42%;
  border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent);
}
.mode h3 { font-size: 28px; margin: 10px 0 4px; }
.mode p { margin: 0; color: rgba(255,255,255,.92); }
.mode .emoji { font-size: 40px; }

/* Gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; padding: 14px 10px 24px; scroll-snap-type: x mandatory; }
.gallery { justify-content: safe center; }
.gallery figure { margin: 0; flex: 0 0 clamp(200px, 23vw, 250px); scroll-snap-align: center; text-align: center; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 22px; box-shadow: 0 0 0 4px rgba(255,255,255,.14), var(--shadow);
}
.gallery figcaption { margin-top: 10px; font-weight: 800; color: rgba(255,255,255,.85); }

/* Themes swatches */
.themes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.theme {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--card-border); font-weight: 800;
}
.theme i { width: 30px; height: 30px; border-radius: 9px; background: var(--t); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.4); }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 16px 20px; margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--yellow); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: rgba(255,255,255,.82); }

/* CTA */
.cta { text-align: center; padding: 48px 24px; border-radius: 32px;
  background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 10px; }
.cta p { margin: 0 0 24px; font-size: 19px; }

/* ---------- Legal / text pages ---------- */
.doc {
  background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow); margin: 20px auto 60px; max-width: 820px;
}
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; color: var(--ink); }
.doc h2 { font-size: 26px; margin: 34px 0 8px; color: var(--ink); }
.doc .updated { color: var(--muted); margin: 0 0 24px; font-weight: 700; }
.doc p, .doc li { color: #34396a; }
.doc a { color: #3a4fc4; font-weight: 700; }
.doc ul { padding-left: 22px; }
.doc .note {
  background: #f1f4ff; border-left: 5px solid #3a4fc4; border-radius: 12px; padding: 14px 18px; margin: 18px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e3e6f3; vertical-align: top; }
.doc th { background: #f6f7fc; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 50px; color: rgba(255,255,255,.7); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; }
footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 520px) {
  .nav .brand { font-size: 20px; white-space: nowrap; }
  .nav nav a { padding: 8px 8px; font-size: 14px; }
  .nav nav a[href^="#"] { display: none; }
}

/* ---------- Language switch ---------- */
.nav nav a.lang { border: 1px solid var(--card-border); }

/* ---------- Kutu Club tiers ---------- */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.tier {
  position: relative; border-radius: var(--radius); padding: 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1.5px solid var(--card-border);
}
.tier h3 { font-size: 28px; margin: 0 0 4px; }
.tier .price { font-family: "Baloo 2", sans-serif; font-size: 34px; font-weight: 800; margin: 0 0 12px; }
.tier .price small { font-size: 16px; opacity: .7; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tier li { padding-left: 28px; position: relative; color: rgba(255,255,255,.88); }
.tier li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--tc); }
.tier.bronze { --tc: #f0a868; } .tier.bronze h3 { color: #f0a868; }
.tier.silver { --tc: #cfd8e8; border-color: #cfd8e8; box-shadow: 0 0 0 3px rgba(207,216,232,.2), var(--shadow); } .tier.silver h3 { color: #e8edf5; }
.tier.gold { --tc: #ffd54f; } .tier.gold h3 { color: #ffd54f; }
.tier .pop {
  position: absolute; top: -12px; right: 18px; background: var(--green); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px;
}
.tier-note { text-align: center; color: rgba(255,255,255,.65); font-size: 14px; max-width: 760px; margin: 18px auto 0; }
