/* Speedgo Technology — site styles (2026) */
:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --ink: #14203d;
  --ink-soft: #5d6885;
  --line: #e2e8f5;
  --primary: #2f6bff;
  --primary-dark: #1d52db;
  --sun: #00c2ff;
  --sky: #5ec8ff;
  --mint: #3dd6a3;
  --grape: #7a5cff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 40, 100, .10);
  --shadow-lg: 0 24px 60px rgba(20, 40, 100, .18);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .logo { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.1; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 40, 100, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 30px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--sun));
  display: grid; place-items: center; color: #fff; font-size: 22px;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .35);
  transform: rotate(-8deg);
}
.logo .hi { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.nav a:not(.btn) { color: var(--ink-soft); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(47, 107, 255, .35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 28px rgba(47, 107, 255, .45); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
}
.hero::before { width: 520px; height: 520px; background: #c4d6ff; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: #c6f1ff; bottom: -180px; left: -140px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 16px;
  font-weight: 800; font-size: 14px; color: var(--primary);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -1px; }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--primary), #00b4f0 50%, var(--grape));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }


.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 230px; aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 9px; background: #101a33;
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone.p1 { left: 4%; top: 70px; transform: rotate(-9deg); z-index: 1; }
.phone.p2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; width: 250px; }
.phone.p3 { right: 4%; top: 80px; transform: rotate(9deg); z-index: 2; }
.float-icon {
  position: absolute; width: 74px; height: 74px; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); z-index: 4; animation: bob 5s ease-in-out infinite;
}
.float-icon.f1 { left: 0; bottom: 40px; }
.float-icon.f2 { right: 0; top: 10px; animation-delay: -1.6s; }
.float-icon.f3 { right: 18%; bottom: 0; animation-delay: -3.2s; width: 62px; height: 62px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 10px; }

/* ---------- Game grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 1024 / 500; overflow: hidden; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 0 22px 22px; position: relative; flex: 1; display: flex; flex-direction: column; }
.card-icon {
  width: 68px; height: 68px; border-radius: 18px; margin-top: -34px;
  border: 4px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.15); background: #fff;
}
.card h3 { font-size: 23px; font-weight: 800; margin: 12px 0 4px; }
.card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.card-foot { margin-top: 18px; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag.merge { background: #f1e9ff; color: #7a45f0; }
.tag.solitaire { background: #e3f6ff; color: #1286c4; }
.tag.word { background: #e3fbf1; color: #129966; }
.tag.puzzle { background: #fff1d6; color: #c47a00; }
.card-tags { position: absolute; top: 12px; right: 22px; }


/* ---------- About ---------- */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; margin-bottom: 16px; }
.about p { color: var(--ink-soft); font-size: 18px; margin-bottom: 14px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.value .emoji { font-size: 32px; }
.value h3 { font-size: 20px; margin: 8px 0 4px; }
.value p { font-size: 15px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 48px 0 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .logo { color: #fff; font-size: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.copyright { width: 100%; font-size: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 8px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-icon { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .about .container { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .phones { height: 460px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone { width: 180px; }
  .phone.p2 { width: 200px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .phones { height: 360px; }
  .phone { width: 140px; border-radius: 24px; padding: 6px; }
  .phone img { border-radius: 19px; }
  .phone.p2 { width: 160px; }
  .phone.p1 { left: 0; top: 50px; }
  .phone.p3 { right: 0; top: 60px; }
  .float-icon { width: 56px; height: 56px; border-radius: 16px; }
  .float-icon.f3 { width: 48px; height: 48px; }
  .section { padding: 64px 0; }
  .values { grid-template-columns: 1fr; }
}


.logo .hi { color: var(--primary); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 860px; }
.legal-card { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 48px clamp(20px, 5vw, 56px); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.5px; }
.legal .updated { color: var(--ink-soft); font-weight: 700; margin: 8px 0 28px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: #3f4a66; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--primary); font-weight: 700; }
.legal .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .2px; }
.legal .toc { background: var(--bg); border-radius: var(--radius); padding: 20px 24px; columns: 2; column-gap: 32px; margin-bottom: 8px; }
.legal .toc ol { padding-left: 20px; }
.legal .toc a { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .legal .toc { columns: 1; } .legal-card { border-radius: 22px; } }
.legal .lead-note { color: var(--ink-soft); font-size: 17px; margin-bottom: 8px; }
.legal ol.steps { padding-left: 22px; margin: 10px 0; }
.legal ol.steps li + li { margin-top: 6px; }
.legal .contact-box { background: var(--bg); border-radius: var(--radius); padding: 20px 24px; margin-top: 10px; }
