/* ==========================================================================
   Paint Home: Color Maze Puzzle - Official Website Stylesheet
   Modern, Mobile-First, Highly Responsive Design
   ========================================================================== */

:root {
  --primary: #fa7268;
  --primary-dark: #e05349;
  --primary-light: #ff8e85;
  --accent-blue: #24c4cd;
  --accent-purple: #6962a6;
  --accent-purple-dark: #433662;
  --accent-gold: #f4ad1d;
  --accent-green: #47aa2e;
  --accent-green-dark: #277a24;
  --bg-main: #f9f7fc;
  --bg-card: #ffffff;
  --bg-card-alt: #fffbf0;
  --bg-highlight: #fff4da;
  --text-main: #2b2538;
  --text-muted: #6c637a;
  --text-light: #948b9f;
  --border: #e8e2ee;
  --border-light: #f2edf7;
  --shadow-sm: 0 2px 8px rgba(67, 54, 98, 0.06);
  --shadow-md: 0 8px 24px rgba(67, 54, 98, 0.08);
  --shadow-lg: 0 16px 40px rgba(67, 54, 98, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--accent-purple-dark);
  font-weight: 800;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-purple-dark);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(105, 98, 166, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--bg-highlight);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--accent-purple-dark);
  cursor: pointer;
  padding: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff5274 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(250, 114, 104, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 114, 104, 0.45);
}

.btn-secondary {
  background: var(--bg-highlight);
  color: var(--accent-purple-dark) !important;
  border: 1px solid #ffd88a;
}

.btn-secondary:hover {
  background: #ffe3a6;
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--accent-green) 0%, #308520 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(71, 170, 46, 0.35);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 170, 46, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-purple-dark) !important;
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  background: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: #ffebe9;
  color: var(--primary);
}

.badge-purple {
  background: #eeeaf8;
  color: var(--accent-purple);
}

.badge-green {
  background: #e7f7e4;
  color: var(--accent-green);
}

.badge-gold {
  background: var(--bg-highlight);
  color: #c07800;
  border: 1px solid #ffe3a6;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: radial-gradient(circle at top right, #fff4e8 0%, #f7f3fd 50%, var(--bg-main) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-content h1 {
  letter-spacing: -0.02em;
}

.hero-content .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #b233a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.stat-item h4 {
  font-size: 1.6rem;
  color: var(--accent-purple-dark);
}

.stat-item p {
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background: #1e1b29;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(67, 54, 98, 0.28), 0 0 0 3px #3d3553;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ab9cc3;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px;
  color: #fff;
  text-align: center;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #1e1b29;
  border-radius: var(--radius-full);
}

.phone-header-ui {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.phone-cash-pill {
  background: #ffe3a6;
  color: #5e4612;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-house-preview {
  margin: auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  grid-template-rows: repeat(4, 38px);
  gap: 4px;
  background: #f7f3fd;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.phone-tile {
  background: #e2daec;
  border-radius: 6px;
  position: relative;
}

.phone-tile.painted {
  background: #fa7268;
}

.phone-tile.prop-window {
  background: #766d9c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tile.prop-window::after {
  content: "🪟";
  font-size: 16px;
}

.phone-tile.sponge-pos {
  background: #fa7268;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tile.sponge-pos::after {
  content: "🧽";
  font-size: 20px;
}

.hero-card-floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

.card-float-1 {
  bottom: 40px;
  left: -20px;
}

.card-float-2 {
  top: 60px;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Feature Showcase Grid */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-header p {
  margin-top: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #ffd88a;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.icon-orange { background: #ffe9e6; color: var(--primary); }
.icon-cyan { background: #e0f9fb; color: var(--accent-blue); }
.icon-purple { background: #efeaf7; color: var(--accent-purple); }
.icon-green { background: #e7f7e4; color: var(--accent-green); }

/* Sponge Showcase */
.sponges-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.sponge-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sponge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: #fff;
}

.sponge-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sponge-img-wrap img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sponge-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #c07800;
  background: var(--bg-highlight);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* How to Play Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--border-light);
  line-height: 1;
}

.step-card h3 {
  margin-bottom: 10px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-purple-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-purple-dark) 0%, #2f2545 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  color: #cbbddb;
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Legal Pages (Privacy Policy & Terms) */
.legal-wrapper {
  padding: 50px 0 80px;
}

.legal-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.legal-header h1 {
  margin-bottom: 12px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.legal-section h3 {
  font-size: 1.15rem;
  margin: 18px 0 8px;
}

.legal-section p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-section ul, .legal-section ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-callout {
  background: var(--bg-highlight);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.policy-callout p {
  color: #554425;
  margin: 0;
  font-weight: 500;
}

/* Download / Get The Game Page */
.download-hero {
  padding: 60px 0;
  text-align: center;
}

.download-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.app-icon-lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(67, 54, 98, 0.2);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
  text-align: left;
}

.spec-box {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.spec-box span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
}

.spec-box strong {
  font-size: 1.05rem;
  color: var(--accent-purple-dark);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #252033;
  color: #a49bb3;
  padding: 60px 0 30px;
  border-top: 1px solid #362e47;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.footer-brand p {
  color: #9287a1;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #a49bb3;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #362e47;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

/* Responsive Navigation & Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 68px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-actions {
    display: none;
  }
  .legal-content, .legal-header {
    padding: 24px 20px;
  }
  .cta-banner {
    padding: 36px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* The hero uses the actual native game rather than an invented puzzle UI. */
.phone-mockup.real-game-phone {width: min(330px, 82vw); height: auto; padding: 9px; border-radius: 32px; background: #433662; transform: rotate(3deg); margin: 24px 0 34px;}
.real-game-phone .real-game-capture {width: 100%; height: auto; border-radius: 24px; display: block;}
.real-game-phone .phone-notch {display: none;}
.real-game-phone figcaption {position: absolute; bottom: -32px; left: 0; right: 0; text-align: center; color: #665185; font-size: .78rem; font-weight: 700; transform: rotate(-3deg);}
.sponge-price {display: flex; align-items: center; justify-content: center; gap: 6px;}
.sponge-price img {width: 24px; height: 20px; object-fit: contain;}
.skin-trial {font-size: .76rem; color: #6c637a; display: block; margin-top: 6px;}
.sponge-img-wrap img {object-fit: contain;}
.hero-grid > * {min-width: 0;}
.features-grid {grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr));}
#city .hero-visual > div > div {flex-wrap: wrap;}
#city .hero-content li {display: block !important;}
a:focus-visible, button:focus-visible {outline: 3px solid #433662; outline-offset: 4px;}
@media(max-width: 600px) {
 .hero {padding: 32px 0 48px;}
 .hero .hero-grid {display: flex; flex-direction: column;}
 .hero .hero-content {display: contents;}
 .hero .hero-content > .badge {order: 0; align-self: flex-start;}
 .hero .hero-content > h1 {order: 1; margin-bottom: 0;}
 .hero .hero-content > .hero-cta {order: 2; width: 100%; margin-top: 0;}
 .hero .hero-visual {order: 3; width: 100%;}
 .hero .hero-content > p {order: 4;}
 .hero .hero-content > .hero-stats {order: 5; width: 100%;}
 .hero .hero-grid {gap: 18px;}
 .hero .hero-content {text-align: left;}
 .hero h1 {font-size: clamp(2rem, 9vw, 3rem);}
 .hero p {font-size: 1rem;}
 .hero .hero-stats {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px;}
 .hero .hero-cta {display: grid; grid-template-columns: 1fr; gap: 10px;}
 .hero .hero-cta .btn {width: 100%; min-height: 48px; padding: 12px 16px;}
 .hero .hero-visual .hero-card-floating {display: none;}
 .hero .hero-visual .real-game-phone {transform: none; width: min(310px, 84vw); border-radius: 30px; margin-top: 10px;}
 .real-game-phone figcaption {transform: none;}
 .sponges-showcase {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;}
 .sponge-card {min-width: 0; padding: 14px 8px;}
 .sponge-card h4 {overflow-wrap: anywhere;}
 .legal-content {overflow-wrap: anywhere;}
 .site-header .navbar {gap: 10px;}
 .nav-actions .btn {padding: 8px 10px; font-size: .8rem;}
 .download-card-main {padding: 24px 16px;}
}
@media(prefers-reduced-motion: reduce) {html {scroll-behavior: auto;} *, *::before, *::after {animation: none !important; transition: none !important;}}

