/* ============================================================
   Cleverini landing — modern design system (2026 product page)
   ============================================================ */
:root {
  --ink: #0c0e1a;
  --ink-soft: #3a3f55;
  --muted: #6b7088;
  --line: #e7e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f7fc;
  --brand: #3d881b; /* Cleverini corporate green */
  --brand-2: #00a658; /* brand logo green */
  --accent: #00a658;
  --brand-grad: linear-gradient(120deg, #2f6e14 0%, #3d881b 48%, #00a658 115%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(16, 20, 50, 0.06);
  --shadow: 0 18px 50px rgba(40, 30, 90, 0.14);
  --maxw: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-family: var(--font); border-radius: 999px;
  padding: 11px 20px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px rgba(109, 94, 252, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(109, 94, 252, 0.42); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: inline-flex; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 26px; width: auto; display: block; margin-bottom: 12px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; transition: color 0.15s; }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
.mobile-menu { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 12px 6px; color: var(--ink-soft); font-weight: 500; border-radius: 10px; }
.mobile-menu a.btn { color: #fff; justify-content: center; margin-top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 50% at 12% 8%, rgba(61, 136, 27, 0.16), transparent 70%),
    radial-gradient(38% 48% at 92% 18%, rgba(0, 166, 88, 0.16), transparent 70%),
    radial-gradient(50% 60% at 70% 100%, rgba(0, 166, 88, 0.1), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: clamp(48px, 8vw, 110px) 24px clamp(56px, 9vw, 120px);
}
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(109, 94, 252, 0.1); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); margin: 22px 0 30px; max-width: 33ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 30px 0 0; color: var(--muted); font-weight: 500; font-size: 0.92rem; }

/* phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px;
  background: #0c0e1a; padding: 12px; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0c0e1a; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: linear-gradient(165deg, #f7f7fd, #eef0fb); padding: 38px 18px 18px; overflow: hidden; display: flex; flex-direction: column; }
.mock-appbar { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mock-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-grad); }
.mock-title { color: var(--muted); font-size: 0.85rem; margin: 14px 0 12px; font-weight: 500; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-grid span { aspect-ratio: 1; background: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); padding: 12px; animation: pop 0.5s both; animation-delay: calc(var(--d) * 60ms + 200ms); }
.mock-grid img { width: 100%; height: 100%; object-fit: contain; }
.mock-cta { margin-top: auto; background: var(--brand-grad); color: #fff; text-align: center; font-weight: 600; padding: 13px; border-radius: 16px; }
.float-chip { position: absolute; width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 12px; }
.float-chip img { width: 100%; height: 100%; object-fit: contain; }
.chip-1 { top: 40px; right: 0; animation: float 6s ease-in-out infinite; }
.chip-2 { bottom: 70px; left: 0; animation: float 8s ease-in-out infinite reverse; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; }
.section-sub { color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.15rem); margin: 16px 0 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-grad); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }

/* games grid */
.games-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.2s ease; }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.game-card img, .game-card .glyph { width: 56px; height: 56px; object-fit: contain; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.game-card span:last-child { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico { font-size: 30px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--bg-tint); border-radius: 16px; margin-bottom: 18px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; }

/* stats / social proof */
.section-stats { background: var(--ink); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num sup { font-size: 0.5em; -webkit-text-fill-color: #8b90ad; }
.stat-label { color: #b9bdd3; font-weight: 500; }
.stats-note { text-align: center; color: #8b90ad; font-size: 0.85rem; margin-top: 28px; }

/* cta */
.section-cta { background: var(--bg-tint); }
.cta-inner { text-align: center; max-width: 720px; }
.store-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px; transition: transform 0.15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.05rem; }
.store-badge small { font-weight: 500; font-size: 0.68rem; opacity: 0.8; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); max-width: 30ch; margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-content: flex-start; }
.footer-links a { color: var(--ink-soft); font-weight: 500; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { max-width: 48ch; }
  .hero-badges { justify-content: center; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .feature-grid, .steps, .stats-row { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .float-chip { display: none; }
}
@media (max-width: 440px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
