/* ===========================================================
   Casitap — Tema-2: LIGHT premium (emerald/teal accent)
   Clean, airy, trustworthy. Shared stylesheet.
   =========================================================== */

:root {
  --bg:        #f7f9fb;
  --bg-alt:    #eef3f6;
  --card:      #ffffff;
  --ink:       #16232e;
  --ink-soft:  #4a5b68;
  --ink-mute:  #7b8894;
  --line:      #e2e9ee;
  --accent:    #0fb981;
  --accent-2:  #0e9f6e;
  --accent-3:  #14b8a6;
  --accent-ink:#053f2d;
  --gold:      #e8b04b;
  --danger:    #d64550;
  --shadow-sm: 0 2px 10px rgba(22,35,46,.06);
  --shadow-md: 0 10px 30px rgba(22,35,46,.09);
  --shadow-lg: 0 24px 60px rgba(14,159,110,.16);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --font:      "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.22rem; }
p  { color: var(--ink-soft); }

.section { padding: 74px 0; }
.section--tint { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2);
  background: rgba(15,185,129,.10); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head p { margin-top: 12px; color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; padding: 14px 30px; border-radius: 999px;
  border: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.btn--primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 28px 68px rgba(14,159,110,.28); }
.btn--ghost {
  background: #fff; color: var(--accent-2); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn--lg { padding: 17px 40px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,251,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: 10px;
}
.nav-links a:hover { color: var(--accent-2); background: rgba(15,185,129,.08); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 460px at 88% -6%, rgba(20,184,166,.14), transparent 60%),
    radial-gradient(760px 420px at 4% 108%, rgba(15,185,129,.12), transparent 55%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: var(--accent-ink); background: rgba(15,185,129,.12); border: 1px solid rgba(15,185,129,.25);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent-2); }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.7rem; color: var(--ink); font-weight: 800; }
.hero-stats .stat span { font-size: .85rem; color: var(--ink-mute); }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: 22px; box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.hero-float {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
}
.hero-float .dot { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.hero-float small { display: block; color: var(--ink-mute); font-size: .74rem; }
.hero-float b { font-size: .98rem; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(15,185,129,.10); color: var(--accent-2); display: grid; place-items: center; font-size: 1.2rem; }
.trust-item b { display: block; font-size: .98rem; }
.trust-item span { font-size: .8rem; color: var(--ink-mute); }

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.game-card .thumb { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.game-card:hover .thumb img { transform: scale(1.06); }
.game-card .tag {
  position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(14,159,110,.92); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.game-card .g-body { padding: 17px 18px 20px; }
.game-card h3 { font-size: 1.08rem; margin-bottom: 5px; }
.game-card p { font-size: .88rem; color: var(--ink-mute); margin: 0; }

/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.promo-card {
  display: grid; grid-template-columns: 150px 1fr; background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
}
.promo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.promo-card .p-img { overflow: hidden; }
.promo-card .p-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .p-body { padding: 22px 24px; }
.promo-card .p-amt { font-size: 1.05rem; font-weight: 800; color: var(--accent-2); margin-bottom: 6px; }
.promo-card h3 { margin-bottom: 8px; }
.promo-card p { font-size: .92rem; margin-bottom: 14px; }
.promo-card .p-link { font-weight: 700; font-size: .9rem; }

/* ---------- Features / why-us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.feature:hover { transform: translateY(-5px); }
.feature .f-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(15,185,129,.14), rgba(20,184,166,.14)); color: var(--accent-2);
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: .94rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; position: relative; box-shadow: var(--shadow-sm); }
.step .num {
  width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 15px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0e9f6e 0%, #14b8a6 100%);
  border-radius: 26px; padding: 54px 44px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn--primary { background: #fff; color: var(--accent-2); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { color: var(--accent-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; font-size: .95rem; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero .crumbs { font-size: .85rem; color: var(--ink-mute); margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.page-hero p { margin-top: 12px; max-width: 680px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; }
.prose .callout {
  background: rgba(15,185,129,.07); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 18px 22px; margin: 24px 0; color: var(--ink-soft);
}
.prose .callout strong { color: var(--ink); }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin: 22px 0; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin: 0; font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer { background: #101c26; color: #c4d0d9; padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-brand img { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #8ea0ad; font-size: .9rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a9b8c2; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.age-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(214,69,80,.14);
  border: 1px solid rgba(214,69,80,.4); color: #f2a4aa; border-radius: 12px; padding: 10px 16px; font-size: .84rem; margin-top: 14px;
}
.age-badge b { color: #fff; background: var(--danger); padding: 3px 9px; border-radius: 7px; font-size: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #7e8f9a;
}
.footer-bottom a { color: #a9b8c2; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .games-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: flex; }
  .promo-grid, .info-grid { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 110px 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .games-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
