/* ===================================================================
   POSTALOT.ai — landing styles
   Pastel lavender / purple fantasy aesthetic (per visual reference)
   =================================================================== */

:root {
  --ink: #1d1a3a;
  --ink-soft: #4b4768;
  --muted: #6f6a8f;
  --purple: #7c5cf0;
  --purple-deep: #6d5bd0;
  --purple-soft: #a78bfa;
  --pink: #d66ae0;
  --blue: #4f7df7;
  --bg: #f4effc;
  --bg-2: #ece4fb;
  --card: #ffffff;
  --grad-brand: linear-gradient(95deg, #b45de0 0%, #7c5cf0 45%, #4f7df7 100%);
  --grad-btn: linear-gradient(135deg, #8f6cf5 0%, #6d5bd0 100%);
  --shadow-soft: 0 10px 30px rgba(109, 91, 208, 0.14);
  --shadow-chip: 0 8px 22px rgba(109, 91, 208, 0.22);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(214, 106, 224, 0.18), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(124, 92, 240, 0.14), transparent 55%),
    radial-gradient(800px 500px at 60% 45%, rgba(79, 125, 247, 0.10), transparent 60%),
    linear-gradient(180deg, #f7f3fd 0%, var(--bg) 40%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* =============== NAV =============== */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 253, 0.72);
  border-bottom: 1px solid rgba(124, 92, 240, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark svg { width: 34px; height: 40px; display: block; }

.brand-name {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-tld {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-spark {
  font-size: 0.7rem;
  vertical-align: super;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple); }

.nav-burger { display: none; }

/* =============== BUTTONS =============== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 91, 208, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(109, 91, 208, 0.45);
}

.btn-nav { padding: 11px 22px; font-size: 0.95rem; }

.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(124, 92, 240, 0.18);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover { transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--purple-deep);
  box-shadow: 0 10px 30px rgba(20, 10, 60, 0.35);
}

.btn-light:hover { transform: translateY(-2px); }

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.55rem;
  padding-left: 2px;
}

.ig-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
  color: #fff;
}

.ig-chip svg { width: 16px; height: 16px; }

.ig-chip-dark { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }

.arrow { font-weight: 700; }

.spark { font-size: 0.9em; }

/* =============== HERO =============== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 30px;
  padding: 64px 0 40px;
}

/* --- Full-width cloud layer behind the whole hero --- */

.hero-clouds {
  position: absolute;
  inset: -8% -18vw;
  z-index: 0;
  pointer-events: none;
}

.hc {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  animation: hdrift 22s ease-in-out infinite alternate;
}

.hc-1 {
  width: 42%; height: 30%;
  left: -4%; bottom: -4%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.hc-2 {
  width: 52%; height: 34%;
  left: 26%; bottom: -8%;
  background: radial-gradient(closest-side, rgba(248, 214, 244, 0.85), rgba(248, 214, 244, 0));
  animation-delay: 4s;
}

.hc-3 {
  width: 46%; height: 30%;
  right: -6%; bottom: 2%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation-delay: 8s;
}

.hc-4 {
  width: 30%; height: 22%;
  left: -6%; top: 10%;
  background: radial-gradient(closest-side, rgba(214, 197, 250, 0.7), rgba(214, 197, 250, 0));
  animation-delay: 2s;
}

.hc-5 {
  width: 28%; height: 20%;
  right: -2%; top: 2%;
  background: radial-gradient(closest-side, rgba(248, 214, 244, 0.75), rgba(248, 214, 244, 0));
  animation-delay: 11s;
}

.hc-6 {
  width: 34%; height: 22%;
  left: 38%; top: 26%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  animation-delay: 6s;
}

@keyframes hdrift {
  from { transform: translateX(-3%); }
  to { transform: translateX(4%); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 92, 240, 0.10);
  border: 1px solid rgba(124, 92, 240, 0.16);
  color: var(--purple-deep);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.hero h1 .line { white-space: nowrap; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline-spark {
  font-size: 0.35em;
  vertical-align: super;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 54ch;
  margin-bottom: 32px;
}

.sub-note {
  font-style: italic;
  opacity: 0.85;
}

.rotate-word {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.35s ease;
}

.rotate-word.out {
  opacity: 0;
  transform: translateY(9px);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li::before {
  content: "✓";
  color: #2fb877;
  font-weight: 700;
}

/* --- Hero visual: layered castle scene (castle + badge layers + clouds) --- */

.hero-visual {
  position: relative;
  transform: scale(1.3);
  transform-origin: 15% 55%;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.castle {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
}

.badge-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  z-index: 3;
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(109, 91, 208, 0.25));
}

.bl-1 { animation-delay: 0s; }
.bl-2 { animation-delay: 0.7s; }
.bl-3 { animation-delay: 1.4s; }
.bl-4 { animation-delay: 0.4s; }
.bl-5 { animation-delay: 1.1s; }
.bl-6 { animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* soft clouds behind the castle */
.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  z-index: 1;
  animation: drift 14s ease-in-out infinite alternate;
}

.cloud-base {
  width: 110%;
  height: 30%;
  left: -5%;
  bottom: -6%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  filter: blur(22px);
  animation-duration: 18s;
}

.cloud-1 {
  width: 68%;
  height: 26%;
  left: -8%;
  bottom: 2%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.cloud-2 {
  width: 60%;
  height: 24%;
  right: -10%;
  bottom: 10%;
  background: radial-gradient(closest-side, rgba(248, 216, 245, 0.9), rgba(248, 216, 245, 0));
  animation-delay: 3s;
}

.cloud-3 {
  width: 46%;
  height: 18%;
  left: -6%;
  top: 22%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  animation-delay: 6s;
}

.cloud-4 {
  width: 42%;
  height: 16%;
  right: -6%;
  top: 8%;
  background: radial-gradient(closest-side, rgba(243, 216, 250, 0.85), rgba(243, 216, 250, 0));
  animation-delay: 9s;
}

@keyframes drift {
  from { transform: translateX(-3%); }
  to { transform: translateX(4%); }
}


/* =============== SOCIAL PROOF (inside hero) =============== */

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero-proof strong { color: var(--ink); }

.avatars { display: flex; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-right: -10px;
  box-shadow: 0 4px 10px rgba(93, 71, 191, 0.18);
}

.av1 { background: linear-gradient(135deg, #f2b56b, #d98324); }
.av2 { background: linear-gradient(135deg, #8fd0ff, #4f7df7); }
.av3 { background: linear-gradient(135deg, #f0a6f5, #b45de0); }
.av4 { background: linear-gradient(135deg, #a8e0b8, #2fb877); }

.proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stars {
  color: #f6b83c;
  letter-spacing: 3px;
  font-size: 1rem;
}

/* =============== FEATURES =============== */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(124, 92, 240, 0.10);
  border: 1px solid rgba(124, 92, 240, 0.10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 90px;
}

.feature {
  background: #fff;
  padding: 30px 28px;
}

.feature-icon { font-size: 1.6rem; margin-bottom: 12px; }

.feature h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* =============== HOW IT WORKS =============== */

.how {
  text-align: center;
  padding-bottom: 100px;
}

.how h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}

.how-sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}

.step {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 92, 240, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.step:hover { transform: translateY(-4px); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; }

.step p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.6;
}

/* =============== CLOSER CTA =============== */

.closer {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(214, 106, 224, 0.35), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(79, 125, 247, 0.3), transparent 60%),
    linear-gradient(135deg, #38246e 0%, #4c2e96 55%, #5b3ab0 100%);
  color: #fff;
  text-align: center;
  padding: 96px 0;
}

.closer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.closer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
}

.grad-text-light {
  background: linear-gradient(95deg, #f0a6f5 0%, #b9a5ff 50%, #8fd0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closer p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

.closer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =============== FOOTER =============== */

.footer {
  background: #241a4a;
  color: rgba(255, 255, 255, 0.65);
  padding: 26px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-copy { margin-right: auto; }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

/* =============== REVEAL ON SCROLL =============== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE =============== */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 44px;
  }

  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }

  .features { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .btn-nav { display: none; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  body.menu-open .nav { flex-wrap: wrap; }

  body.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 16px 0 8px;
    order: 3;
  }

  body.menu-open .btn-nav { display: inline-flex; order: 4; }

  .hero h1 .line { white-space: normal; }

  .features { grid-template-columns: 1fr; margin-bottom: 70px; }

  .steps { grid-template-columns: 1fr; }

}
