/* ============================================================
   Sudoku Cats Master — landing page
   Design language: soft lavender pastel, rounded bubbly type,
   kawaii cat aesthetic. Distinct from Lucky Cat (warm serif)
   and ArrowFortune (cyber neon).
   ============================================================ */

   :root {
    --bg:        #faf6ff;
    --bg-2:      #f1e8ff;
    --surface:   #ffffff;
    --ink:       #3d2c5e;
    --ink-soft:  #6b5a8a;
    --ink-faint: #9d8fbb;
  
    --lav:       #8b6fd8;
    --lav-d:     #6f4fc7;
    --pink:      #f472b6;
    --pink-d:    #ec4899;
    --blue:      #60a5fa;
    --yellow:    #fbbf24;
    --mint:      #34d399;
  
    --line:      #e6dbfb;
    --shadow-sm: 0 4px 14px rgba(111,79,199,.08);
    --shadow-md: 0 16px 40px rgba(111,79,199,.12);
    --shadow-lg: 0 30px 70px rgba(111,79,199,.18);
  
    --radius:    22px;
    --radius-lg: 30px;
    --font-display: 'Fredoka', 'Comic Sans MS', sans-serif;
    --font-body:    'Nunito', system-ui, sans-serif;
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  
  body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    background-image:
      radial-gradient(circle at 15% 10%, rgba(244,114,182,.10), transparent 40%),
      radial-gradient(circle at 85% 85%, rgba(139,111,216,.12), transparent 45%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, p { overflow-wrap: break-word; }
  
  .container { width: min(1180px, 92%); margin: 0 auto; }
  .container.narrow { max-width: 760px; }
  .hero-copy, .hero-visual { min-width: 0; }
  
  /* Color helpers */
  .c-lav  { color: var(--lav-d); }
  .c-pink { color: var(--pink-d); }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-display); font-weight: 600;
    font-size: .98rem; padding: .75rem 1.4rem;
    border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s;
    white-space: nowrap;
  }
  .btn i { width: 18px; height: 18px; }
  .btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
  
  .btn-primary {
    background: linear-gradient(120deg, var(--pink), var(--lav));
    color: #fff;
    box-shadow: 0 10px 24px rgba(236,72,153,.32);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(139,111,216,.4); }
  
  .btn-ghost {
    background: transparent; color: var(--ink);
    border-color: var(--lav);
  }
  .btn-ghost:hover { background: var(--lav); color: #fff; transform: translateY(-2px); }
  
  .btn-dark {
    background: var(--ink); color: #fff;
    box-shadow: var(--shadow-sm);
  }
  .btn-dark:hover { transform: translateY(-2px); background: #2a1d47; box-shadow: var(--shadow-md); }
  
  /* ---------- Navbar ---------- */
  .navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: .9rem 0;
    transition: background .25s, box-shadow .25s, padding .25s;
  }
  .navbar.scrolled {
    background: rgba(250,246,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(111,79,199,.08);
    padding: .55rem 0;
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
  .brand { display: flex; align-items: center; gap: .65rem; }
  .brand-icon { width: 42px; height: 42px; border-radius: 13px; box-shadow: var(--shadow-sm); }
  .brand-text {
    font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  }
  .brand-text em { color: var(--pink-d); font-style: normal; }
  
  .nav-links { display: flex; align-items: center; gap: 1.6rem; }
  .nav-links a { font-weight: 700; color: var(--ink-soft); font-size: .95rem; transition: color .15s; }
  .nav-links a:hover { color: var(--pink-d); }
  .nav-cta { color: #fff !important; }
  
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
  .nav-toggle i { width: 26px; height: 26px; }
  
  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 9rem 0 5rem;
    overflow: hidden;
  }
  .hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 3rem; align-items: center;
  }
  
  /* Floating paw prints */
  .paw {
    position: absolute; font-size: 2rem; opacity: .25;
    animation: floaty 6s ease-in-out infinite;
    pointer-events: none;
  }
  .paw-1 { top: 15%; left: 5%;  animation-delay: 0s; }
  .paw-2 { top: 60%; left: 45%; animation-delay: 1.5s; }
  .paw-3 { bottom: 10%; right: 8%; animation-delay: 3s; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-14px) rotate(8deg); }
  }
  
  .tag {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--lav-d);
    background: rgba(139,111,216,.12);
    padding: .4rem .9rem; border-radius: 999px;
    margin-bottom: 1.1rem;
  }
  .tag i { width: 14px; height: 14px; }
  
  .hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    line-height: 1.08; letter-spacing: -.01em;
    margin-bottom: 1.3rem;
  }
  .lede {
    font-size: 1.12rem; color: var(--ink-soft);
    max-width: 520px; margin-bottom: 1.8rem;
  }
  .hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
  
  .rule-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
  .chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .85rem; font-weight: 700;
    padding: .4rem .85rem; border-radius: 999px;
    background: var(--surface); border: 1.5px solid var(--line);
  }
  .chip i { width: 15px; height: 15px; }
  .chip-pink  { color: var(--pink-d); border-color: #fbcfe8; }
  .chip-blue  { color: #2563eb; border-color: #bfdbfe; }
  .chip-purple { color: var(--lav-d); border-color: #ddd6fe; }
  
  /* Phone frame */
  .hero-visual { position: relative; display: flex; justify-content: center; }
  .phone-frame {
    width: min(320px, 82%);
    aspect-ratio: 9 / 19.4;
    border-radius: 44px;
    padding: 10px;
    background: var(--ink);
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08);
  }
  .phone-frame img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 34px;
  }
  .float-card {
    position: absolute;
    bottom: 8%; left: -6%;
    display: flex; align-items: center; gap: .6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: .6rem .9rem; border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: floaty 5s ease-in-out infinite;
  }
  .float-card i { color: var(--mint); width: 22px; height: 22px; }
  .float-card strong { display: block; font-size: .95rem; }
  .float-card small { color: var(--ink-faint); font-size: .75rem; }
  
  /* ---------- Banner strip ---------- */
  .banner-strip { padding: 1rem 0 2rem; }
  .banner-img {
    width: 100%; max-width: 900px; margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  /* ---------- Sections ---------- */
  .section { padding: 5rem 0; }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
  .eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--pink-d); margin-bottom: .9rem;
  }
  .section-head h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.1; margin-bottom: .9rem;
  }
  .section-head p { color: var(--ink-soft); }
  
  /* ---------- Features ---------- */
  .feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  }
  .feature-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
  }
  .feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .feature-icon {
    width: 58px; height: 58px; border-radius: 18px;
    display: grid; place-items: center; margin: 0 auto 1.1rem;
    color: #fff;
  }
  .feature-icon i { width: 26px; height: 26px; }
  .fi-pink   { background: linear-gradient(135deg, #f472b6, #ec4899); }
  .fi-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
  .fi-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
  .fi-yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
  .feature-card h3 {
    font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .55rem;
  }
  .feature-card p { color: var(--ink-soft); font-size: .92rem; }
  
  /* ---------- Showcase masonry ---------- */
  .showcase { background: var(--bg-2); }
  .shot-masonry {
    columns: 3;
    column-gap: 1.2rem;
  }
  .shot {
    background: var(--surface);
    border-radius: var(--radius);
    padding: .7rem .7rem .9rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.2rem;
    break-inside: avoid;
    transition: transform .25s, box-shadow .25s;
  }
  .shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .shot img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 14px;
    background: var(--bg-2);
  }
  .shot figcaption {
    margin-top: .7rem; text-align: center;
    font-size: .88rem; font-weight: 700; color: var(--ink-soft);
  }
  
  /* ---------- Download ---------- */
  .download-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
  }
  .download-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--pink), var(--lav), var(--blue));
  }
  .download-icon {
    width: 88px; height: 88px; margin: 0 auto 1.4rem;
    border-radius: 24px; box-shadow: var(--shadow-md);
  }
  .download-card h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .8rem;
  }
  .download-card p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 1.8rem; }
  .download-buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
  .download-note {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1.3rem; color: var(--ink-faint);
  }
  .download-note i { width: 14px; height: 14px; }
  
  /* ---------- FAQ ---------- */
  .faq-list { display: flex; flex-direction: column; gap: .9rem; }
  .faq-list details {
    background: var(--surface); border: 1.5px solid var(--line);
    border-radius: 16px; padding: 1.1rem 1.3rem;
  }
  .faq-list summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 800; font-family: var(--font-display); font-size: 1.05rem;
  }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary i { width: 18px; height: 18px; color: var(--pink-d); transition: transform .2s; }
  .faq-list details[open] summary i { transform: rotate(45deg); }
  .faq-list details p { margin-top: .7rem; color: var(--ink-soft); font-size: .95rem; }
  
  /* ---------- Footer ---------- */
  .footer {
    background: var(--ink);
    color: #d4c5f0;
    padding: 2.2rem 0; margin-top: 2rem;
  }
  .footer-inner {
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    align-items: center; justify-content: space-between;
  }
  .footer-brand { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
  .footer-brand .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; }
  .footer-links a { color: #d4c5f0; transition: color .15s; }
  .footer-links a:hover { color: #f9a8d4; }
  
  /* ---------- Modal ---------- */
  .modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
  .modal[hidden] { display: none; }
  .modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(61,44,94,.5);
    backdrop-filter: blur(4px);
  }
  .modal-panel {
    position: relative;
    background: var(--surface);
    border-radius: 26px;
    padding: 2.4rem 2rem 2rem;
    width: min(420px, 90%);
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: pop .25s ease;
  }
  @keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .modal-close {
    position: absolute; top: .9rem; right: .9rem;
    background: none; border: none; cursor: pointer; color: var(--ink-faint);
  }
  .modal-icon { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 18px; }
  .modal-panel h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .6rem; }
  .modal-panel p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .hero { padding: 7.5rem 0 4rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { order: -1; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .shot-masonry { columns: 2; }
  }
  
  @media (max-width: 680px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--bg);
      flex-direction: column; padding: 1.2rem 1.5rem 1.6rem; gap: 1.1rem;
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-md);
      display: none;
    }
    .nav-links.open { display: flex; }
  
    .feature-grid { grid-template-columns: 1fr; }
    .shot-masonry { columns: 1; }
    .section { padding: 4rem 0; }
    .download-card { padding: 2.8rem 1.4rem; }
    .footer-inner { flex-direction: column; text-align: center; }
  
    .hero { padding: 6.5rem 0 3rem; }
    .phone-frame { width: min(240px, 72%); }
    .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
    .float-card { left: 0; }
  }
  