/*
Theme Name: InkEarn
Theme URI: https://example.com/inkearn
Author: InkEarn
Description: Stylish single-page landing theme for handwriting work platform. Warm rose-gold palette with animations and floating graphics.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: inkearn
*/

:root {
  --background: #fdf9f5;
  --foreground: #2a1a14;
  --muted-fg: #7a6258;
  --primary: #c14a2a;
  --primary-glow: #e8804f;
  --gold: #d4a23a;
  --border: #efe2d7;
  --card: #ffffff;
  --shadow-glow: 0 20px 60px -20px rgba(193, 74, 42, 0.35);
  --shadow-card: 0 8px 30px -10px rgba(120, 50, 30, 0.14);
  --shadow-elegant: 0 30px 80px -30px rgba(193, 74, 42, 0.4);
  --gradient-primary: linear-gradient(135deg, #c14a2a, #e8804f);
  --gradient-gold: linear-gradient(135deg, #f0c057, #d68040);
  --gradient-text: linear-gradient(135deg, #a83a1f, #d96a3a);
  --gradient-hero:
    radial-gradient(ellipse at top, rgba(248, 198, 160, 0.85), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(230, 130, 90, 0.5), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(240, 200, 120, 0.45), transparent 55%),
    linear-gradient(180deg, #fdf9f5, #fbf0e6);
  --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(252,235,220,0.6));
  --radius: 1rem;
}

* { box-sizing: border-box; }
* { border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.font-display { font-family: 'Fraunces', Georgia, serif; }
.font-script { font-family: 'Caveat', cursive; }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
}
.grain {
  background-image: radial-gradient(rgba(193, 74, 42, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* NAV */
.nav {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.nav .logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-family: 'Fraunces',serif; font-size: 1.1rem; }
.nav .logo-mark {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gradient-primary); color: white;
  display: grid; place-items: center; font-weight: bold;
}
.nav-links { display: none; gap: 1.25rem; font-size: 0.9rem; color: var(--muted-fg); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a:hover { color: var(--foreground); }
.btn-join {
  background: var(--gradient-primary); color: white;
  padding: 0.45rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.875rem; box-shadow: var(--shadow-glow);
}

/* HERO */
.hero {
  position: relative; overflow: hidden; background: var(--gradient-hero);
  padding: 8rem 0 6rem;
}
.hero .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero .orb-1 { top: -5rem; left: -5rem; width: 500px; height: 500px; background: rgba(193,74,42,0.2); animation: float 6s ease-in-out infinite; }
.hero .orb-2 { top: 10rem; right: -10rem; width: 600px; height: 600px; background: rgba(232,128,79,0.25); animation: float-slow 8s ease-in-out infinite; }
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.875rem;
  font-weight: 500; color: var(--primary); margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
h1.hero-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; margin: 0; letter-spacing: -0.02em;
}
.hero-desc { margin-top: 2rem; color: var(--muted-fg); font-size: 1.125rem; line-height: 1.7; max-width: 36rem; }
.cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient-primary); color: white; font-weight: 600;
  padding: 1rem 1.75rem; border-radius: 999px; box-shadow: var(--shadow-glow);
  transition: transform 0.2s; animation: pulse-glow 2.5s ease-out infinite;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-ghost { font-weight: 600; color: var(--foreground); opacity: 0.8; }
.btn-ghost:hover { color: var(--primary); }

.trust-row { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 32rem; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.trust-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--gradient-card); display: grid; place-items: center;
  color: var(--primary); box-shadow: var(--shadow-card); font-size: 1.1rem;
}
.trust-label { font-size: 0.75rem; font-weight: 500; color: var(--muted-fg); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  box-shadow: var(--shadow-elegant);
}
.hero-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(193,74,42,0.3), transparent);
}
.float-card {
  position: absolute; padding: 1rem; border-radius: 1rem;
  box-shadow: var(--shadow-glow); min-width: 11rem;
}
.float-card.tl { top: -1.5rem; left: -1.5rem; animation: float 6s ease-in-out infinite; }
.float-card.br { bottom: -1.5rem; right: -1rem; animation: float-slow 8s ease-in-out infinite; display:flex; align-items:center; gap:0.75rem; }
.float-card .label { font-size: 0.75rem; color: var(--muted-fg); }
.float-card .big { font-family: 'Fraunces',serif; font-weight: 700; font-size: 1.5rem; }
.bar { margin-top: 0.5rem; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar > div { height: 100%; width: 80%; background: var(--gradient-primary); }
.star-bubble {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--gradient-gold); display: grid; place-items: center;
  color: white; font-size: 1.1rem;
}
.sparkle-deco {
  position: absolute; pointer-events: none; mix-blend-mode: multiply;
}
.sparkle-deco.tr { top: -4rem; right: -2.5rem; width: 12rem; opacity: 0.7; animation: float-slow 8s ease-in-out infinite; }
.sparkle-deco.bl { bottom: -2.5rem; left: -2.5rem; width: 9rem; opacity: 0.5; transform: rotate(180deg); animation: float 6s ease-in-out infinite; }

/* STATS */
.stats { margin-top: 6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.5rem; border-radius: 1rem; box-shadow: var(--shadow-card); }
.stat .v { font-family: 'Fraunces',serif; font-weight: 700; font-size: 1.875rem; }
.stat .l { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-fg); }

/* SECTION */
section { padding: 7rem 0; position: relative; }
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 4rem; }
.section-head .kicker { font-family: 'Caveat',cursive; font-size: 1.5rem; color: var(--primary); }
.section-head h2 { font-family: 'Fraunces',serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); margin: 0.5rem 0 0; }
.section-head p { margin-top: 1rem; color: var(--muted-fg); }

/* FEATURES */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative; padding: 1.75rem; border-radius: 1.5rem;
  background: var(--gradient-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card .num {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: 'Fraunces',serif; font-weight: 900; font-size: 3rem;
  color: rgba(193,74,42,0.1);
}
.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: var(--gradient-primary); color: white;
  display: grid; place-items: center; box-shadow: var(--shadow-glow);
  margin-bottom: 1.25rem; font-size: 1.5rem;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { font-family: 'Fraunces',serif; font-weight: 700; font-size: 1.25rem; margin: 0; }
.feature-card p { margin-top: 0.5rem; color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }

/* HOW */
.how { background: var(--gradient-hero); overflow: hidden; }
.how-graphic { position: absolute; pointer-events: none; }
.how-graphic.girl { right: -5rem; bottom: 0; width: 420px; opacity: 0.95; animation: float-slow 8s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
.how-graphic.notebook { left: -5rem; top: 5rem; width: 18rem; opacity: 0.4; animation: float 6s ease-in-out infinite; }
.how-graphic.sparkle { right: 10rem; top: 2.5rem; width: 10rem; opacity: 0.6; mix-blend-mode: multiply; animation: float 6s ease-in-out infinite; }
@media (max-width: 1023px) { .how-graphic.girl { display: none; } }

.steps { display: grid; gap: 2rem; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step-num-wrap { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.step-num {
  width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--gradient-primary); color: white;
  display: grid; place-items: center;
  font-family: 'Fraunces',serif; font-weight: 900; font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}
.step-ring {
  position: absolute; inset: -0.75rem; border-radius: 50%;
  border: 2px dashed rgba(193,74,42,0.3);
  animation: spin 20s linear infinite;
}
.step h3 { font-family: 'Fraunces',serif; font-weight: 700; font-size: 1.5rem; margin: 0; }
.step p { margin-top: 0.75rem; color: var(--muted-fg); line-height: 1.6; max-width: 18rem; margin-left: auto; margin-right: auto; }

/* PLANS */
.plans { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.plan {
  position: relative; padding: 2rem; border-radius: 1.5rem;
  background: var(--gradient-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card); transition: transform 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.plan.popular {
  background: var(--gradient-primary); color: white;
  box-shadow: var(--shadow-elegant); transform: scale(1.05);
  border: none;
}
.plan.popular:hover { transform: scale(1.07) translateY(-4px); }
.plan .pop-badge {
  position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
  background: var(--gradient-gold); color: white;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.4rem 1rem; border-radius: 999px; box-shadow: var(--shadow-glow);
}
.plan .name { font-family: 'Caveat',cursive; font-size: 1.5rem; opacity: 0.8; }
.plan .price { margin-top: 0.75rem; display: flex; align-items: baseline; }
.plan .price .amt { font-family: 'Fraunces',serif; font-weight: 900; font-size: 3rem; }
.plan .price .per { margin-left: 0.25rem; font-size: 0.875rem; opacity: 0.7; }
.plan ul { margin: 2rem 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.plan li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check {
  margin-top: 0.125rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--gradient-primary); color: white;
  font-size: 0.7rem; font-weight: bold;
}
.plan.popular .check { background: rgba(255,255,255,0.2); }
.plan .cta {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  font-weight: 600; padding: 0.875rem; border-radius: 999px;
  background: var(--foreground); color: white;
}
.plan .cta:hover { background: var(--primary); }
.plan.popular .cta { background: white; color: var(--primary); box-shadow: var(--shadow-glow); }

/* FINAL CTA */
.final {
  position: relative; overflow: hidden;
  border-radius: 2.5rem; padding: 4rem 2rem;
  background: var(--gradient-primary); color: white;
  text-align: center; box-shadow: var(--shadow-elegant);
  max-width: 64rem; margin: 0 auto;
}
@media (min-width: 768px) { .final { padding: 5rem 4rem; } }
.final::before, .final::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
}
.final::before { top: -5rem; left: -5rem; width: 20rem; height: 20rem; background: rgba(255,255,255,0.2); }
.final::after { bottom: -5rem; right: -5rem; width: 20rem; height: 20rem; background: rgba(240,200,90,0.4); }
.final-inner { position: relative; }
.final h2 { font-family: 'Fraunces',serif; font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 0.75rem 0 0; line-height: 1.1; }
.final p { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.125rem; opacity: 0.9; }
.final .cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.5rem; background: white; color: var(--primary);
  font-weight: 700; padding: 1rem 2rem; border-radius: 999px;
  box-shadow: var(--shadow-elegant);
  transition: transform 0.2s;
}
.final .cta:hover { transform: scale(1.05); }

/* FOOTER */
footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.foot { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--muted-fg); }
@media (min-width: 768px) { .foot { flex-direction: row; } }
.foot .logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Fraunces',serif; font-weight: 700; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193,74,42,0.5); }
  50% { box-shadow: 0 0 0 20px rgba(193,74,42,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: fadeup 0.8s ease-out forwards; }
