/* Landing page only — loaded in addition to app.css, scoped under .landing-page */

.landing-page {
  --ink: #0b0e1a;
  --ink-2: #12162a;
  --accent: #ffd166;
  --accent-2: #6ee7b7;
  overflow-x: clip;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page .display-font {
  font-family: 'Space Grotesk', var(--font-family);
  letter-spacing: -0.02em;
}

.landing-page section {
  position: relative;
}

/* Offsets anchor-jump targets (#features, #templates, #pricing) so the sticky
   floating navbar doesn't cover the section heading after a nav-link click. */
.landing-page section[id] {
  scroll-margin-top: 100px;
}

.landing-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------------- Hero ---------------- */

.hero-creative {
  background: radial-gradient(ellipse 80% 60% at 15% 0%, rgba(37, 99, 235, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(124, 58, 237, 0.5), transparent 55%),
    radial-gradient(ellipse 60% 50% at 60% 90%, rgba(255, 209, 102, 0.18), transparent 60%),
    var(--ink);
  color: #e7e9f4;
  padding: 3.5rem 0 6rem;
  margin-top: -1rem;
}

.hero-creative .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5d78e;
}

.hero-creative h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  color: #fdfdfe;
  font-weight: 700;
}

.hero-creative .headline-mark {
  position: relative;
  white-space: nowrap;
}

.hero-creative .headline-mark svg {
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.5em;
  z-index: -1;
}

.hero-creative p.lead {
  color: #aab0c8;
  max-width: 34rem;
}

.hero-creative .trust-row {
  color: #8b91ac;
  font-size: 0.85rem;
}

.hero-creative .trust-row i {
  color: var(--accent-2);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #241a00;
  font-weight: 600;
}

.btn-accent:hover {
  filter: brightness(0.95);
  color: #241a00;
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f2f3fb;
  background: transparent;
  font-weight: 600;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Mockup composition */

.hero-mockup-wrap {
  position: relative;
  padding: 2rem 1rem;
}

.browser-mock {
  background: #f6f7fb;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.browser-mock .browser-bar {
  display: flex;
  gap: 6px;
  padding: 0.65rem 0.8rem;
  background: #e7e9f2;
}

.browser-mock .browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd0e0;
}

.browser-mock .browser-body {
  padding: 1.1rem;
}

.mock-hero-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.mock-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  flex-shrink: 0;
}

.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: #d8dcec;
}

.mock-bar.w-60 { width: 60%; }
.mock-bar.w-40 { width: 40%; }
.mock-bar.w-80 { width: 80%; }

.mock-bars-stack .mock-bar {
  margin-bottom: 6px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 1rem;
}

.mock-grid .mock-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(145deg, #dfe3f5, #eef0fa);
}

.mock-grid .mock-tile:nth-child(1) { background: linear-gradient(145deg, #c7d7ff, #e9eeff); }
.mock-grid .mock-tile:nth-child(2) { background: linear-gradient(145deg, #ffe1b3, #fff3e0); }
.mock-grid .mock-tile:nth-child(3) { background: linear-gradient(145deg, #c9f2de, #e6fbf0); }

.floating-chip {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: floaty 5s ease-in-out infinite;
}

.floating-chip.chip-1 { top: 6%; right: 2%; animation-delay: 0s; }
.floating-chip.chip-2 { bottom: 10%; left: -2%; animation-delay: 1.4s; }

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

/* ---------------- Marquee ---------------- */

.marquee-band {
  background: #0b0e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: 'Space Grotesk', var(--font-family);
  font-size: 1.15rem;
  font-weight: 600;
  color: #6c7191;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.marquee-track span i {
  color: var(--accent);
  margin: 0 1.5rem 0 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Bento features ---------------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* minmax, not a bare length: rows grow to fit whichever tile in them needs
     the most height (e.g. the drag-and-drop tile's 3 demo rows), instead of
     clipping/overflowing at a fixed 190px. */
  grid-auto-rows: minmax(190px, auto);
  align-items: stretch;
  gap: 1.1rem;
}

.bento-tile {
  border-radius: 20px;
  padding: 1.6rem;
  background: var(--surface-color);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.25);
}

.bento-tile .bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.row-2 { grid-row: span 2; }

.bento-tile.dark {
  background: var(--ink);
  color: #e7e9f4;
  border-color: transparent;
}

.bento-tile.dark h5 {
  color: #fdfdfe;
}

.bento-tile.dark .bento-icon {
  background: rgba(255, 255, 255, 0.12);
}

.bento-reorder-demo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Named .reorder-row (not .row) to avoid colliding with Bootstrap's grid .row class,
   which was injecting negative margins + flex-wrap and breaking this layout. */
.bento-reorder-demo .reorder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: #cfd3ea;
}

.bento-reorder-demo .reorder-row i {
  color: #7c8199;
  cursor: grab;
}

.sparkline-demo {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
}

.sparkline-demo span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(110, 231, 183, 0.15));
}

.swatch-row {
  display: flex;
  gap: 8px;
}

.swatch-row i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

/* ---------------- Template showcase ---------------- */

.tpl-scroller {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 1rem 0.25rem 1.5rem;
  scroll-snap-type: x proximity;
}

.tpl-scroller::-webkit-scrollbar { height: 8px; }
.tpl-scroller::-webkit-scrollbar-thumb { background: #dfe3f5; border-radius: 8px; }

.tpl-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 18px;
  background: var(--surface-color);
  border: 1px solid rgba(17, 24, 39, 0.07);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tpl-preview {
  height: 170px;
  padding: 1rem;
  position: relative;
}

.tpl-preview .mock-bar,
.tpl-preview .mock-tile { pointer-events: none; }

.tpl-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.tpl-body {
  padding: 1rem 1.15rem 1.3rem;
}

.tpl-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b91ac;
}

/* ---------------- Plans ---------------- */

.plan-card {
  border-radius: 20px;
  padding: 2rem 1.6rem;
  background: var(--surface-color);
  border: 1px solid rgba(17, 24, 39, 0.07);
  height: 100%;
  position: relative;
}

.plan-card.is-featured {
  background: var(--ink);
  color: #e7e9f4;
  border-color: transparent;
  transform: scale(1.03);
  box-shadow: 0 25px 50px -20px rgba(37, 99, 235, 0.35);
}

.plan-card.is-featured h5 { color: #fdfdfe; }
.plan-card.is-featured .text-muted { color: #9aa0c0 !important; }

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #241a00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.plan-price {
  font-family: 'Space Grotesk', var(--font-family);
  font-size: 2.4rem;
  font-weight: 700;
}

.plan-features li {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.plan-features i { color: var(--accent-2); margin-top: 0.2rem; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%), var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 0 1rem;
}

.cta-band h2 {
  color: #fff;
}

/* ---------------- Reveal on scroll ---------------- */

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

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

@media (max-width: 991.98px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(170px, auto);
  }

  .bento-tile.span-2 { grid-column: span 2; }
  .bento-tile.row-2 { grid-row: span 1; }
}

@media (max-width: 575.98px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-tile, .bento-tile.span-2 { grid-column: span 1; }
  .browser-mock { transform: none; }
  .floating-chip { display: none; }
}
