/*
Theme Name: Handwriting Project
Theme URI: https://example.com/handwriting-project
Author: Vishv Book Publication
Description: Glassmorphism landing page theme for a work-from-home handwriting project. Blue & orange palette, animated glass cards, Telegram CTA.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: handwriting-project
*/

:root {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --fg: #1f3556;
  --muted: #63748e;
  --brand: #14508f;
  --brand-dark: #10365f;
  --brand-soft: #e2edfa;
  --accent: #f5871f;
  --accent-soft: #fdefdd;
  --border: rgba(20, 80, 143, 0.14);
  --radius: 22px;
  --shadow-soft: 0 18px 40px -24px rgba(20, 80, 143, 0.4);
  --shadow-lift: 0 26px 60px -28px rgba(20, 80, 143, 0.5);
}

* { box-sizing: border-box; }

body.hp-body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, var(--brand-soft), transparent 65%),
    radial-gradient(50rem 34rem at 0% 25%, var(--accent-soft), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, var(--brand-soft), transparent 65%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: "Baloo 2", "Trebuchet MS", sans-serif; color: var(--brand-dark); margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.mid { max-width: 960px; }

/* Header */
.hp-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.hp-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,0.6); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.brand-tag { font-size: 12px; color: var(--muted); }

/* Buttons */
.btn-join {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--accent), var(--brand));
  background-size: 220% 220%;
  animation: aurora 6s ease infinite, pulsering 2.6s ease-out infinite;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease, filter .2s ease;
}
.btn-join:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.06); }
.btn-sm { padding: 9px 18px; font-size: 14px; animation: aurora 6s ease infinite; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 26px;
  font-weight: 700; color: var(--brand-dark); background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px); border: 1px solid var(--border); transition: transform .25s, background .25s;
}
.btn-ghost:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn-block { width: 100%; text-transform: uppercase; font-size: 16px; }

/* Glass */
.glass {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%) skewX(-18deg);
}
.glass:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(20,80,143,.3); }
.glass:hover::after { animation: shine .9s ease forwards; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(12px);
  border: 1px solid var(--border); padding: 8px 16px; font-size: 14px; font-weight: 700;
  color: var(--brand-dark); box-shadow: var(--shadow-soft); transition: transform .25s, background .25s;
}
.pill:hover { transform: translateY(-2px); background: var(--brand-soft); }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--brand); }
.muted { color: var(--muted); }
.center { text-align: center; }

section { padding: 56px 0; }
.sec-title { font-size: 34px; margin-top: 8px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 56px 0; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; padding: 76px 0; } }
.hero h1 { font-size: 54px; line-height: 1.05; margin-top: 18px; }
.hero-sub { margin-top: 14px; font-size: 18px; color: var(--muted); }
.earn { padding: 24px; margin-top: 26px; }
.earn-amount { font-family: "Baloo 2", sans-serif; font-size: 34px; font-weight: 800; margin-top: 8px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow-lift); animation: floaty 5s ease-in-out infinite; }
.hero-badge { position: absolute; bottom: -18px; left: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.card { padding: 24px; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft);
  color: var(--brand); font-size: 20px;
}
.card h3 { margin-top: 14px; font-size: 18px; }
.card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.check-grid > div { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.check-grid .tick { color: var(--accent); font-weight: 900; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; padding: 22px; }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); font-family: "Baloo 2", sans-serif; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.sample-img { margin: 30px auto 0; border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow-lift); max-width: 760px; }

.faq { padding: 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--brand-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 12px; font-size: 14px; color: var(--muted); }

.final { padding: 42px 24px; text-align: center; }
.hp-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.5); padding: 28px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Animations */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes aurora { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulsering {
  0% { box-shadow: 0 0 0 0 rgba(245,135,31,.55); }
  70% { box-shadow: 0 0 0 16px rgba(245,135,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,135,31,0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: rise .7s cubic-bezier(.22,1,.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
