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

:root {
  --sky:       #5bb8f5;
  --sky-mid:   #3a9fe0;
  --sky-deep:  #1d6fa8;
  --sky-light: #a8d8f8;
  --sky-pale:  #e8f5fe;
  --sky-bg:    #f0f8ff;
  --navy:      #1a3a5c;
  --navy-mid:  #2a5580;
  --white:     #ffffff;
  --text:      #1a3a5c;
  --muted:     #6a98bc;
  --soft:      #4a7fa8;
  --border:    rgba(91,184,245,0.18);
  --glass:     rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.85);
}

html { scroll-behavior: smooth; }

body {
  background: var(--sky-bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.bg-blob-1 { width: 700px; height: 700px; top: -200px; right: -100px; background: radial-gradient(circle, #a8d8f8, #5bb8f5); }
.bg-blob-2 { width: 500px; height: 500px; bottom: 5%; left: -150px; background: radial-gradient(circle, #c8eaff, #8ecff5); }
.bg-blob-3 { width: 300px; height: 300px; top: 40%; right: 10%; background: radial-gradient(circle, #dff0ff, #b0d8f5); opacity: 0.3; }

canvas#bg-canvas { position: absolute; inset: 0; opacity: 0.4; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(240,248,255,0.75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900;
  color: var(--navy); letter-spacing: -0.02em; text-decoration: none;
}

.nav-icon {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(91,184,245,0.4); flex-shrink: 0;
}
.nav-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links {
  display: flex; gap: 32px; list-style: none;
  font-size: 14px; font-weight: 500; color: var(--soft);
}
.nav-links a { color: inherit; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--sky-mid));
  color: white; border: none; padding: 10px 22px; border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(58,159,224,0.35); transition: all .25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(58,159,224,0.45); }

/* HERO */
.hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; overflow: hidden;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1.5px solid var(--glass-border); border-radius: 100px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; color: var(--sky-mid);
  margin-bottom: 32px; box-shadow: 0 4px 16px rgba(91,184,245,0.15);
  animation: fadeUp .7s ease both; backdrop-filter: blur(12px);
}

.badge-dot {
  width: 7px; height: 7px; background: var(--sky); border-radius: 50%;
  animation: pulse-dot 2s ease infinite; box-shadow: 0 0 8px var(--sky);
}

@keyframes pulse-dot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(.6);opacity:.5} }

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(50px, 8.5vw, 112px); font-weight: 900;
  line-height: .95; letter-spacing: -0.03em; color: var(--navy);
  max-width: 920px; animation: fadeUp .7s .08s ease both;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--sky-mid) 0%, var(--sky) 60%, #8ecff5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  margin-top: 24px; font-size: clamp(15px, 2vw, 18px); color: var(--soft);
  max-width: 520px; line-height: 1.7; font-weight: 400;
  animation: fadeUp .7s .16s ease both;
}

.hero-actions {
  display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .7s .24s ease both;
}

.btn-primary {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--sky), var(--sky-mid));
  color: white; border: none; padding: 14px 28px; border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 8px 28px rgba(58,159,224,0.4); transition: all .25s; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(58,159,224,0.5); }

.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); color: var(--navy); border: 1.5px solid var(--glass-border);
  padding: 14px 28px; border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
  backdrop-filter: blur(12px); transition: all .25s; text-decoration: none;
}
.btn-secondary:hover { background: white; box-shadow: 0 6px 20px rgba(91,184,245,0.2); transform: translateY(-1px); }

/* HERO ICON */
.hero-icon-wrap {
  position: relative; margin-top: 64px;
  animation: fadeUp .7s .32s ease both;
  display: flex; align-items: center; justify-content: center;
}

.h-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.h-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(91,184,245,0.2);
}
.h-ring:nth-child(1){width:200px;height:200px;animation:ring-out 3s 0s ease-in-out infinite}
.h-ring:nth-child(2){width:320px;height:320px;animation:ring-out 3s .6s ease-in-out infinite}
.h-ring:nth-child(3){width:460px;height:460px;animation:ring-out 3s 1.2s ease-in-out infinite}
.h-ring:nth-child(4){width:620px;height:620px;animation:ring-out 3s 1.8s ease-in-out infinite}

@keyframes ring-out {
  0%{opacity:0;transform:scale(.85)} 30%{opacity:1} 100%{opacity:0;transform:scale(1.08)}
}

.app-icon-big {
  width: 144px; height: 144px; border-radius: 34px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(58,159,224,0.35), 0 0 0 2px rgba(255,255,255,.9);
  position: relative; z-index: 2; animation: float 4s ease-in-out infinite;
}
.app-icon-big img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.float-bubble {
  position: absolute; background: var(--glass); backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border); border-radius: 100px;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  box-shadow: 0 8px 24px rgba(58,159,224,0.15);
  z-index: 3; white-space: nowrap;
}

.fb-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 700; }
.fb-name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.fb-dist { font-size: 10px; color: var(--muted); font-weight: 400; }

.float-bubble-1 { left: -185px; top: -10px; animation: floatb 5s 0s ease-in-out infinite; }
.float-bubble-2 { right: -185px; top: 20px; animation: floatb 5s 1.2s ease-in-out infinite; }
.float-bubble-3 { left: -150px; bottom: -5px; animation: floatb 5s 2.4s ease-in-out infinite; }

@keyframes floatb { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* SECTION COMMONS */
section { position: relative; z-index: 1; }

.section-inner { max-width: 1200px; margin: 0 auto; padding: 110px 48px; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky-mid); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--sky); border-radius: 2px;
}

.section-title {
  font-family: 'Nunito', sans-serif; font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.025em;
  color: var(--navy); max-width: 640px;
}
.section-title .light { color: var(--muted); font-weight: 700; }

/* FEATURES */
.features-layout { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 56px; }

.feat-card {
  background: var(--glass); border: 1.5px solid var(--glass-border);
  border-radius: 24px; padding: 32px 28px; backdrop-filter: blur(16px);
  transition: all .3s; position: relative; overflow: hidden;
}
.feat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, transparent, var(--sky-light), transparent);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(58,159,224,0.18); border-color: rgba(91,184,245,.5); background: rgba(255,255,255,.85); }
.feat-card:hover::after { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-light));
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  margin-bottom: 18px; box-shadow: 0 4px 12px rgba(91,184,245,0.2);
  padding: 10px;
}

.feat-title { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 8px; }
.feat-desc { font-size: 14px; color: var(--soft); line-height: 1.65; font-weight: 400; }

/* HOW IT WORKS */
.how-bg { background: linear-gradient(180deg, transparent, rgba(91,184,245,0.06) 50%, transparent); }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }

.steps { display: flex; flex-direction: column; gap: 4px; }

.step { display: flex; align-items: flex-start; gap: 18px; padding: 22px 20px; border-radius: 18px; cursor: pointer; transition: all .25s; }
.step:hover, .step.active { background: var(--glass); box-shadow: 0 4px 20px rgba(91,184,245,0.12); }

.step-num-wrap {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 900; color: white;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(91,184,245,0.35);
}

.step-body { flex: 1; }
.step-title { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.01em; }
.step-desc { font-size: 14px; color: var(--soft); line-height: 1.6; font-weight: 400; }

.phone-mock {
  background: var(--glass); border: 1.5px solid var(--glass-border); border-radius: 32px;
  padding: 24px; backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(58,159,224,0.18);
  position: sticky; top: 100px;
}

.pm-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(91,184,245,0.15);
}
.pm-title { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: -0.02em; }
.pm-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #2ecc71; background: rgba(46,204,113,0.1); padding: 4px 10px; border-radius: 100px; }
.pm-dot { width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; animation: pulse-dot 2s ease infinite; }

.disc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }

.du-card {
  background: white; border: 1.5px solid rgba(91,184,245,0.2); border-radius: 18px;
  padding: 14px 10px 12px; text-align: center; cursor: pointer; transition: all .25s; position: relative;
}
.du-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(58,159,224,0.2); border-color: var(--sky); }

.du-av-wrap { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; position: relative; }
.du-av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid white; }
.du-online { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; background: #2ecc71; border-radius: 50%; border: 2px solid white; }
.du-name { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.du-dist { font-size: 10px; color: var(--muted); font-weight: 500; }
.du-sig { position: absolute; top: 8px; right: 8px; display: flex; gap: 1.5px; align-items: flex-end; }
.s-bar { width: 2.5px; background: var(--sky); border-radius: 1px; opacity: .7; }

/* GAME */
.game-section { background: linear-gradient(135deg, rgba(91,184,245,0.07), rgba(168,216,248,0.11)); }
.game-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.mm-card { background: white; border: 1.5px solid rgba(91,184,245,0.2); border-radius: 28px; padding: 32px; box-shadow: 0 16px 48px rgba(58,159,224,0.14); }
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mm-label { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: -0.02em; }
.mm-vs { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--soft); }
.vs-av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.mm-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px 10px; border-radius: 12px; transition: background .2s; }
.mm-row.active { background: var(--sky-pale); }
.mm-pegs { display: flex; gap: 8px; flex: 1; }
.mm-peg { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0,0,0,.06); }
.mm-hints { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; width: 30px; }
.mm-h { width: 11px; height: 11px; border-radius: 50%; background: rgba(0,0,0,.07); }
.mm-h.hit { background: #2ecc71; box-shadow: 0 2px 6px rgba(46,204,113,.4); }
.mm-h.close { background: #f39c12; box-shadow: 0 2px 6px rgba(243,156,18,.4); }
.mm-result { margin-top: 18px; text-align: center; background: linear-gradient(135deg,#f0fff8,#e8f5fe); border-radius: 14px; padding: 14px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: #2ecc71; border: 1.5px solid rgba(46,204,113,0.2); }

.game-right .section-title { margin-top: 16px; }
.game-desc { margin-top: 18px; font-size: 16px; color: var(--soft); line-height: 1.7; font-weight: 400; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tag { background: white; border: 1.5px solid rgba(91,184,245,0.3); border-radius: 100px; padding: 7px 16px; font-size: 12px; font-weight: 700; color: var(--sky-mid); }

/* PRIVACY */
.privacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 56px; }
.priv-card { background: var(--glass); border: 1.5px solid var(--glass-border); border-radius: 24px; padding: 32px 28px; backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 14px; transition: all .3s; }
.priv-card:hover { background: white; box-shadow: 0 12px 36px rgba(58,159,224,0.14); transform: translateY(-3px); }
.priv-icon-wrap { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--sky-pale), var(--sky-light)); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 12px rgba(91,184,245,0.2); padding: 10px;}
.priv-title { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; color: var(--navy); }
.priv-desc { font-size: 14px; color: var(--soft); line-height: 1.65; font-weight: 400; }

/* CTA */
.cta-section { text-align: center; overflow: hidden; }
.cta-inner { max-width: 760px; margin: 0 auto; padding: 120px 48px; position: relative; }
.cta-cloud { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(91,184,245,0.25), transparent 70%); filter: blur(40px); pointer-events: none; }
.cta-cloud-1 { width: 400px; height: 400px; top: -100px; left: 50%; transform: translateX(-50%); }
.cta-cloud-2 { width: 600px; height: 300px; bottom: 0; left: 50%; transform: translateX(-50%); opacity:.5; }

.cta-icon { width: 80px; height: 80px; border-radius: 20px; overflow: hidden; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(58,159,224,0.35); position: relative; animation: float 4s ease-in-out infinite; }
.cta-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cta-title { font-family: 'Nunito', sans-serif; font-size: clamp(36px, 5.5vw, 64px); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; color: var(--navy); position: relative; }
.cta-title .accent { background: linear-gradient(120deg, var(--sky-mid), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-desc { margin-top: 18px; font-size: 16px; color: var(--soft); line-height: 1.7; position: relative; }

.store-wrap { display: flex; justify-content: center; margin-top: 40px; position: relative; }
.store-btn { display: flex; align-items: center; gap: 14px; background: var(--navy); color: white; border: none; padding: 16px 28px; border-radius: 18px; cursor: pointer; transition: all .25s; text-decoration: none; box-shadow: 0 8px 28px rgba(26,58,92,.25); }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26,58,92,.35); background: #1d4a75; }
.store-btn-icon { font-size: 32px; line-height: 1; }
.store-btn-text { text-align: left; }
.store-btn-small { font-size: 11px; opacity: .7; font-weight: 400; margin-bottom: 1px; }
.store-btn-big { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; }

.rating-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); position: relative; }
.stars { color: #f4a820; font-size: 16px; letter-spacing: 1px; }

/* FOOTER */
footer { border-top: 1.5px solid rgba(91,184,245,0.15); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; background: rgba(240,248,255,.8); backdrop-filter: blur(12px); }
.footer-logo { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.f-icon { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; }
.f-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-links { display: flex; gap: 24px; list-style: none; font-size: 13px; color: var(--muted); }
.footer-links a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media(max-width:900px){
  nav{padding:14px 20px} .nav-links{display:none} .section-inner{padding:72px 20px}
  .features-layout{grid-template-columns:1fr} .how-layout,.game-layout{grid-template-columns:1fr;gap:40px}
  .privacy-grid{grid-template-columns:1fr} footer{flex-direction:column;gap:16px;text-align:center;padding:24px 20px}
  .footer-links{flex-wrap:wrap;justify-content:center} .float-bubble{display:none}
}