/* Phaetopia V7 – show more bg, softer blur, colorful title */
:root{
  --ink:#10151f;
  --muted: rgba(16,21,31,0.72);
  --line: rgba(16,21,31,0.14);

  --leaf1:#2ee067;
  --leaf2:#16b851;
  --gold:#ffd166;

  --shadow: 0 16px 44px rgba(16,21,31,0.14);
}

*{box-sizing:border-box;}
html,body{height:100%;}

body{
  margin:0;
  color:var(--ink);
  font-family:"Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
  background: #f6ffef;
}

/* background image, more visible */
body::before{
  content:"";
  position:fixed;
  inset:-2%;
  background-image: url("assets/bg.png");
  background-size: cover;
  background-position: 50% 45%;
  background-repeat: no-repeat;
  filter: saturate(1.08) contrast(1.05) brightness(1.06);
  transform: scale(1.04);
  z-index:-3;
  animation: bgPan 18s ease-in-out infinite alternate;
}

@keyframes bgPan{
  0%{ background-position: 48% 44%; }
  100%{ background-position: 55% 50%; }
}

/* lighter overlay so bg shows more + blur a bit more */
body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 18%, rgba(240,255,245,0.60), rgba(240,255,245,0.34) 55%, rgba(240,255,245,0.16) 75%, rgba(240,255,245,0.10) 100%),
    radial-gradient(900px 520px at 80% 18%, rgba(255,248,228,0.55), rgba(255,248,228,0.30) 55%, rgba(255,248,228,0.14) 75%, rgba(255,248,228,0.10) 100%),
    linear-gradient(180deg, rgba(246,255,239,0.46), rgba(255,255,255,0.22));
  backdrop-filter: blur(14px);
  z-index:-2;
}

/* sparkles */
.sparkles{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,210,90,0.30), transparent 60%),
    radial-gradient(2px 2px at 30% 70%, rgba(255,210,90,0.24), transparent 60%),
    radial-gradient(2px 2px at 70% 30%, rgba(255,210,90,0.20), transparent 60%),
    radial-gradient(2px 2px at 85% 65%, rgba(255,210,90,0.22), transparent 60%),
    radial-gradient(2px 2px at 55% 55%, rgba(255,210,90,0.18), transparent 60%);
  opacity:0.85;
  animation: sparkleDrift 16s ease-in-out infinite alternate;
}
@keyframes sparkleDrift{
  0%{ transform: translate(0px,0px); }
  100%{ transform: translate(14px,-10px); }
}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px 34px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 18px;
  position:relative;
  align-items: center;
}

/* centered top sticker */
.topCenter{
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top: 6px;
}
.sticker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.72);
  border: 2px solid rgba(16,21,31,0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16,21,31,0.12);
  backdrop-filter: blur(10px);
  font-weight: 900;
  color: rgba(16,21,31,0.80);
  transform-origin: 50% 50%;
  animation: stickerWiggle 6.4s ease-in-out infinite;
}
.spark{ opacity:0.9; }
@keyframes stickerWiggle{
  0%,100%{ transform: rotate(-0.6deg) translateY(0px); }
  50%{ transform: rotate(0.8deg) translateY(-3px); }
}

.hero{
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top: 2px;
}

.hero-inner{
  width:100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.56));
  border: 2px solid rgba(16,21,31,0.12);
  border-radius: 30px;
  padding: 34px 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position:relative;
  overflow:hidden;
}

.hero-inner::before{
  content:"";
  position:absolute;
  inset:-70px;
  background:
    radial-gradient(closest-side at 18% 28%, rgba(46,224,103,0.22), transparent 62%),
    radial-gradient(closest-side at 86% 22%, rgba(255,209,102,0.26), transparent 62%),
    radial-gradient(closest-side at 65% 90%, rgba(36,145,255,0.12), transparent 62%);
  transform: rotate(-6deg);
  pointer-events:none;
  opacity:0.92;
  animation: glowShift 8.5s ease-in-out infinite;
}

@keyframes glowShift{
  0%,100%{ transform: rotate(-6deg) translate(0px,0px); }
  50%{ transform: rotate(-4deg) translate(10px, -6px); }
}

.kicker{
  margin: 0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  border: 2px solid rgba(16,21,31,0.12);
  background: rgba(255,255,255,0.66);
  box-shadow: 0 10px 20px rgba(16,21,31,0.08);
  font-weight:900;
  color: rgba(16,21,31,0.78);
  animation: gentleTilt 5.6s ease-in-out infinite;
}
@keyframes gentleTilt{
  0%,100%{ transform: rotate(-0.4deg); }
  50%{ transform: rotate(0.6deg); }
}
.k-dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,209,102,0.22);
}

/* colorful title letters */
.title{
  margin: 12px 0 8px;
  text-align:center;
  font-family:"Fredoka", system-ui, sans-serif;
  font-size: clamp(46px, 7vw, 84px);
  letter-spacing: 0.08em;
  font-weight: 700;
  position:relative;
  line-height: 1;
}
.ltr{
  display:inline-block;
  padding: 0 2px;
  text-shadow:
    0 10px 20px rgba(16,21,31,0.10),
    0 2px 0 rgba(255,255,255,0.35);
  filter: drop-shadow(0 8px 18px rgba(16,21,31,0.10));
  animation: letterBop 5.8s ease-in-out infinite;
}
.ltr:nth-child(2){ animation-delay: .08s; }
.ltr:nth-child(3){ animation-delay: .16s; }
.ltr:nth-child(4){ animation-delay: .24s; }
.ltr:nth-child(5){ animation-delay: .32s; }
.ltr:nth-child(6){ animation-delay: .40s; }
.ltr:nth-child(7){ animation-delay: .48s; }
.ltr:nth-child(8){ animation-delay: .56s; }
.ltr:nth-child(9){ animation-delay: .64s; }

@keyframes letterBop{
  0%,100%{ transform: translateY(0px) rotate(-0.3deg); }
  50%{ transform: translateY(-6px) rotate(0.6deg); }
}

/* pastel palette per letter */
.c1{ color:#7dd3fc; } /* sky */
.c2{ color:#a7f3d0; } /* mint */
.c3{ color:#fde68a; } /* soft gold */
.c4{ color:#fbcfe8; } /* pink */
.c5{ color:#bbf7d0; } /* green */
.c6{ color:#c7d2fe; } /* lavender */
.c7{ color:#86efac; } /* green */
.c8{ color:#fecaca; } /* rose */
.c9{ color:#fef08a; } /* yellow */

.subtitle{
  margin: 0 0 12px;
  text-align:center;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tagline{
  margin: 0 auto 16px;
  max-width: 62ch;
  text-align:center;
  color: rgba(16,21,31,0.74);
  font-weight: 800;
  line-height: 1.38;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  margin: 0 auto 18px;
  max-width: 940px;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  border: 2px solid rgba(16,21,31,0.12);
  box-shadow: 0 10px 18px rgba(16,21,31,0.08);
  font-weight: 900;
  transform: rotate(-0.6deg);
  animation: chipBop 6.5s ease-in-out infinite;
}
.chip:nth-child(2){ transform: rotate(0.8deg); animation-delay: .3s; }
.chip:nth-child(3){ transform: rotate(-0.9deg); animation-delay: .6s; }
.chip:nth-child(4){ transform: rotate(0.6deg); animation-delay: .9s; }
.chip:nth-child(5){ transform: rotate(-0.3deg); animation-delay: 1.2s; }

@keyframes chipBop{
  0%,100%{ transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%{ transform: translateY(-4px) rotate(calc(var(--rot, 0deg) + 0.8deg)); }
}

.cta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 10px;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: 16px;
  border: 2px solid rgba(16,21,31,0.10);
  box-shadow: 0 16px 30px rgba(16,21,31,0.14);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.btn:hover{
  transform: translateY(-2px) rotate(-0.4deg);
  filter: brightness(1.02);
  box-shadow: 0 18px 38px rgba(16,21,31,0.16);
}
.btn:active{ transform: translateY(0px); }

.primary{
  background: linear-gradient(180deg, var(--leaf1), var(--leaf2));
  color:#fff;
}
.secondary{
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border: 2px dashed rgba(16,21,31,0.18);
}
.arrow{ transform: translateY(1px); }

.tiny{
  margin: 14px 0 0;
  text-align:center;
  color: rgba(16,21,31,0.60);
  font-weight: 800;
}
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(255,255,255,0.66);
  border: 1.5px solid rgba(16,21,31,0.12);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Mini features with gentle idle wiggle */
.mini-features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.mini-card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  background: rgba(255,255,255,0.62);
  border: 2px solid rgba(16,21,31,0.12);
  border-radius: 22px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 26px rgba(16,21,31,0.10);
  backdrop-filter: blur(10px);
  transform-origin: 50% 40%;
}

.wiggle{
  animation: cardWiggle 7.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes cardWiggle{
  0%,100%{ transform: translateY(0px) rotate(-0.4deg); }
  50%{ transform: translateY(-6px) rotate(0.8deg); }
}

.mini-card:hover{
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 16px 34px rgba(16,21,31,0.14);
  transition: transform .15s ease, box-shadow .15s ease;
}

.mini-ic{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.74);
  border: 2px solid rgba(16,21,31,0.12);
  box-shadow: 0 10px 18px rgba(16,21,31,0.08);
  font-size: 20px;
  flex: 0 0 auto;
}

.mini-card h3{
  margin: 2px 0 4px;
  font-family:"Fredoka", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.mini-card p{
  margin: 0;
  color: rgba(16,21,31,0.70);
  line-height: 1.35;
  font-weight: 800;
  font-size: 0.98rem;
}

.foot{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  padding: 10px 0 8px;
  color: rgba(16,21,31,0.60);
  font-weight: 900;
}
.foot .sep{ opacity:0.6; }
.foot .small{ opacity:0.9; }

@media (max-width: 900px){
  .mini-features{ grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  body::before{ animation: none !important; }
}


/* Dark mode */
html[data-mode="dark"] body{
  background: #0b1220;
  color: rgba(255,255,255,0.92);
}
html[data-mode="dark"] body::before{
  /* keep bg visible */
  filter: saturate(1.10) contrast(1.06) brightness(0.88);
}
html[data-mode="dark"] body::after{
  /* softer overlay so bg shows through */
  background:
    radial-gradient(900px 520px at 20% 18%, rgba(8,18,12,0.46), rgba(8,18,12,0.26) 55%, rgba(8,18,12,0.18) 75%, rgba(8,18,12,0.12) 100%),
    radial-gradient(900px 520px at 80% 18%, rgba(24,20,10,0.42), rgba(24,20,10,0.22) 55%, rgba(24,20,10,0.16) 75%, rgba(24,20,10,0.12) 100%),
    linear-gradient(180deg, rgba(10,14,22,0.46), rgba(10,14,22,0.24));
  backdrop-filter: blur(10px);
}

html[data-mode="dark"] .sparkles{
  opacity: 0.60;
  filter: saturate(0.95);
}

html[data-mode="dark"] .hero-inner{
  background: linear-gradient(180deg, rgba(20,28,44,0.72), rgba(20,28,44,0.54));
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}
html[data-mode="dark"] .hero-inner::before{ opacity: 0.50; }

html[data-mode="dark"] .kicker{
  background: rgba(20,28,44,0.62);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 20px rgba(0,0,0,0.32);
  color: rgba(255,255,255,0.82);
}
html[data-mode="dark"] .subtitle{ color: rgba(255,255,255,0.72); }
html[data-mode="dark"] .tagline{ color: rgba(255,255,255,0.82); }

html[data-mode="dark"] .chip{
  background: rgba(20,28,44,0.56);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 18px rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.88);
}

html[data-mode="dark"] .btn.secondary{
  background: rgba(20,28,44,0.62);
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.20);
}

html[data-mode="dark"] .mini-card{
  background: rgba(20,28,44,0.54);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.34);
}
html[data-mode="dark"] .mini-ic{
  background: rgba(20,28,44,0.62);
  border-color: rgba(255,255,255,0.14);
}

html[data-mode="dark"] .foot{ color: rgba(255,255,255,0.64); }


html[data-mode="dark"] .sparkles{ opacity: 0.65; filter: saturate(0.9); }

html[data-mode="dark"] .hero-inner{
  background: linear-gradient(180deg, rgba(16,21,31,0.72), rgba(16,21,31,0.56));
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
html[data-mode="dark"] .hero-inner::before{ opacity: 0.55; }

html[data-mode="dark"] .kicker{
  background: rgba(16,21,31,0.66);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 10px 20px rgba(0,0,0,0.40);
  color: rgba(255,255,255,0.80);
}
html[data-mode="dark"] .subtitle{ color: rgba(255,255,255,0.70); }
html[data-mode="dark"] .tagline{ color: rgba(255,255,255,0.78); }

html[data-mode="dark"] .chip{
  background: rgba(16,21,31,0.58);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 18px rgba(0,0,0,0.36);
  color: rgba(255,255,255,0.86);
}

html[data-mode="dark"] .btn.secondary{
  background: rgba(16,21,31,0.62);
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.22);
}

html[data-mode="dark"] .mini-card{
  background: rgba(16,21,31,0.56);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.42);
}
html[data-mode="dark"] .mini-ic{
  background: rgba(16,21,31,0.64);
  border-color: rgba(255,255,255,0.14);
}

html[data-mode="dark"] .foot{ color: rgba(255,255,255,0.62); }

html[data-mode="dark"] .modeToggle{
  border-color: rgba(255,255,255,0.18);
  background: rgba(16,21,31,0.66);
  color: rgba(255,255,255,0.86);
  box-shadow: 0 10px 22px rgba(0,0,0,0.42);
}



/* Center layout + improve card readability */
.hero, .mini-features, .foot{
  width: 100%;
}
.hero-inner{
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

/* Center the mini cards block and keep it readable */
.mini-features{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

/* Make mini cards a bit taller and text readable */
.mini-card{
  width: 100%;
  min-height: 108px;
}
.mini-card h3{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.mini-card p{
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Slightly stronger card background in dark mode for contrast */
html[data-mode="dark"] .mini-card{
  background: rgba(20,28,44,0.66);
}

/* Also improve icon tile contrast */
html[data-mode="dark"] .mini-ic{
  background: rgba(20,28,44,0.70);
}

/* Keep bottom breathing room so nothing feels cut off */
.wrap{
  padding-bottom: 44px;
}

@media (max-width: 900px){
  .hero-inner, .mini-features{ max-width: 720px; }
}



/* Center main hero box more centrally */
.hero{
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner{
  margin-top: 0 !important;
}

