/* ============================================================
   FruitPerk: Slice & Match 3 — Premium Landing Page
   Dark glassmorphism theme · fruit gradients · mobile-first
   ============================================================ */

:root {
  --bg: #0b0e1a;
  --bg-2: #131a30;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f3f4fa;
  --muted: #9aa3c0;
  --gold: #ffc94d;
  --orange: #ff8a3d;
  --red: #ff5d5d;
  --teal: #2ee6b4;
  --pink: #ff7ac8;
  --purple: #a78bfa;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(46, 230, 180, 0.14), transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- floating fruit background ---------- */
.fruit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.f-float {
  position: absolute;
  top: -10vh;
  font-size: 42px;
  animation: floatDown 14s linear infinite;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
@keyframes floatDown {
  0%   { transform: translateY(-8vh) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(360deg); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }
.logo em { font-style: normal; color: var(--teal); }

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #241505 !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-burger { display: none; background: none; border: 0; cursor: pointer; }
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding: 90px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(255, 201, 77, 0.12);
  border: 1px solid rgba(255, 201, 77, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.grad {
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-sub b { color: var(--text); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-play, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-play {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #241505;
  box-shadow: 0 10px 30px rgba(255, 138, 61, 0.35);
}
.btn-play:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hero-badges { font-size: 14px; color: var(--muted); }

/* ---------- phone mockup — premium live game demo ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(160deg, #202a4a, #0b0f22);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 46px;
  padding: 14px;
  box-shadow:
    0 0 0 6px rgba(11, 15, 34, 0.9),
    0 0 0 7px rgba(255, 255, 255, 0.08),
    var(--shadow);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #05070f;
  border-radius: 999px;
  z-index: 4;
}
.screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(168deg, #eef3ff 0%, #e7ecfa 45%, #dbe4f7 100%);
  border-radius: 34px;
  overflow: hidden;
  padding: 44px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
/* header cards — same three-card glass style as the real game */
.ph-header {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.8fr;
  gap: 6px;
  padding: 0 2px;
}
.ph-card {
  background: rgba(30, 38, 74, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  text-align: center;
  padding: 5px 2px 7px;
  box-shadow: 0 2px 8px rgba(20, 25, 60, 0.2);
  position: relative;
}
.ph-card span { display: block; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; color: rgba(255,255,255,0.72); }
.ph-card b { font-size: 15px; color: #fff; font-weight: 800; line-height: 1.2; }
.ph-card-gold { border: 1px solid rgba(255, 201, 77, 0.65); }
.ph-card-teal { border: 1px solid rgba(46, 230, 180, 0.65); }
.ph-card-pink { border: 1px solid rgba(255, 122, 200, 0.65); }
.ph-bar { display: block; height: 3px; background: rgba(255,255,255,0.18); border-radius: 4px; margin: 3px 8px 0; overflow: hidden; }
.ph-bar u { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, #ffc94d, #ff8a3d); border-radius: 4px; text-decoration: none; }
.ph-card-teal b { color: #2ee6b4; }
.ph-card-pink b { color: #ff7ac8; }

/* COMBO badge */
.ph-badge {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #ff5d8f, #ff8a3d);
  padding: 3px 10px;
  border-radius: 999px;
  width: max-content;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(255, 93, 143, 0.45);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}
.ph-badge.show { opacity: 1; transform: scale(1); }

/* 7x7 game grid */
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 7px;
  box-shadow: inset 0 2px 10px rgba(60, 70, 130, 0.12);
  flex: 1;
  min-height: 0;
  align-content: center;
}
.grid span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(30, 40, 90, 0.16);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.grid span.in { transform: scale(1); }
.grid span.hit { animation: popHit 0.45s ease; }
@keyframes popHit {
  0%   { transform: scale(1.35); filter: brightness(2); }
  40%  { transform: scale(0.55); filter: brightness(1.6); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* footer buttons */
.ph-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 6px 0 4px;
}
.ph-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(30, 38, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(20, 25, 60, 0.25);
}
.ph-btn-accent { background: rgba(255, 122, 200, 0.65); }

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.42), rgba(255, 122, 200, 0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(34px);
  bottom: -50px;
  z-index: 1;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* floating soft ring behind the phone for depth */
.phone-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1.5px solid rgba(255, 201, 77, 0.35);
  border-radius: 50%;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringSpin 22s linear infinite;
}
@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; }

/* ---------- game cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); }
.card-slice:hover { border-color: rgba(255, 138, 61, 0.6); }
.card-match:hover { border-color: rgba(46, 230, 180, 0.6); }
.card-emoji { font-size: 54px; margin-bottom: 14px; }
.card h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card ul { list-style: none; }
.card li { padding: 6px 0; color: var(--text); font-weight: 600; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}
.feature:hover { transform: scale(1.03); }
.f-ico { font-size: 36px; display: block; margin-bottom: 10px; }
.feature h4 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- how to play ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #241505;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.4);
}
.step h4 { font-size: 17px; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- download ---------- */
.download-box {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 201, 77, 0.16), rgba(255, 138, 61, 0.12), rgba(255, 122, 200, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 60px 30px;
  box-shadow: var(--shadow);
}
.download-box h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; margin-bottom: 12px; }
.download-box p { color: var(--muted); margin-bottom: 26px; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 26px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-store:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.btn-store b { font-size: 19px; }
.download-meta { margin-top: 18px; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  background: rgba(8, 10, 20, 0.6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { font-size: 20px; font-weight: 800; }
.footer-brand span { color: var(--gold); }
.footer-brand em { font-style: normal; color: var(--teal); }
.footer-brand small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .cards, .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 26, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: none; }
  .nav-burger { display: block; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .phone { width: 250px; height: 520px; }
  .f-float { font-size: 30px; }
}
