/* ================================================================
   Camagru — landing.css (marketing page only)
   ================================================================ */

.landing-main { overflow-x: clip; }

/* reveal-on-scroll utility, driven by landing.js IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,.8,.24,1), transform .6s cubic-bezier(.16,.8,.24,1);
}
.reveal-stagger.in-view .reveal-item:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.in-view .reveal-item:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.in-view .reveal-item:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in-view .reveal-item:nth-child(4) { transition-delay: .23s; }
.reveal-stagger.in-view .reveal-item:nth-child(5) { transition-delay: .30s; }
.reveal-stagger.in-view .reveal-item:nth-child(6) { transition-delay: .37s; }

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

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-land {
  position: relative;
  padding: 96px 24px 120px;
  text-align: center;
  isolation: isolate;
}

.hero-land::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 18% 20%, rgba(108,71,255,.16), transparent 60%),
    radial-gradient(480px 320px at 82% 10%, rgba(124,92,255,.14), transparent 60%);
  filter: blur(10px);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(18px) scale(1.03); }
}

.hero-mark {
  width: 68px; height: 68px;
  margin: 0 auto 28px;
  animation: markFloat 5s ease-in-out infinite;
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-3deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
  animation: fadeUp .7s cubic-bezier(.16,.8,.24,1) both;
}

.hero-land h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 880px;
  margin: 0 auto;
  animation: fadeUp .8s .05s cubic-bezier(.16,.8,.24,1) both;
}
.hero-land h1 .grad {
  background: linear-gradient(100deg, var(--accent), #a78bff 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub-land {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  animation: fadeUp .8s .12s cubic-bezier(.16,.8,.24,1) both;
}

.hero-cta-land {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  animation: fadeUp .8s .2s cubic-bezier(.16,.8,.24,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat / fact strip ───────────────────────────────────────── */
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 56px auto 0;
}
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(17,17,17,.03);
}
.fact-chip i { color: var(--accent); font-size: 15px; }

/* ── Section shell ────────────────────────────────────────────── */
.land-section { padding: 96px 24px; }
.land-section.tight { padding-top: 0; }
.land-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.land-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.land-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -1px;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.15;
}
.land-head p {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── About split ─────────────────────────────────────────────── */
.about-split {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-split h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.8px;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-split p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 14px; }
.about-split ul { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.about-split li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.about-split li i { color: var(--accent); margin-top: 2px; }

/* faux browser / product mock */
.mock-browser {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 60px -20px rgba(17,17,17,.18);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}
.mock-browser:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e2e2; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  flex: 1;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
}
.mock-card {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-light), #e7e2ff);
  position: relative;
  overflow: hidden;
}
.mock-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(108,71,255,.35), transparent 60%);
}
.mock-card .mock-ring {
  position: absolute; top: 50%; left: 50%;
  width: 34%; height: 34%;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.mock-card:nth-child(2) .mock-ring { border-radius: 8px; width: 40%; height: 26%; }
.mock-card:nth-child(4) .mock-ring { transform: translate(-50%,-50%) rotate(20deg); }
.mock-foot {
  display: flex; gap: 14px; align-items: center;
  padding: 10px 16px 16px;
  font-size: 12px; color: var(--text-muted);
}
.mock-foot i { color: var(--accent); }

/* ── Bento features ──────────────────────────────────────────── */
.bento {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(17,17,17,.14);
  border-color: var(--accent-border);
}
.bento-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
}
.bento-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.bento-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

/* ── Tech stack chips ────────────────────────────────────────── */
.stack-row {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.stack-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stack-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── How it works steps ──────────────────────────────────────── */
.steps-row {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step-card { text-align: center; padding: 0 12px; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px -6px rgba(108,71,255,.5);
}
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ── Demo accounts ────────────────────────────────────────────── */
.demo-section {
  background: linear-gradient(180deg, var(--accent-light) 0%, transparent 100%);
  border-radius: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}
.demo-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(17,17,17,.18); }
.demo-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.demo-card .demo-username { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.demo-card .demo-tag { font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px; }
.demo-card .btn { width: 100%; }

/* ── Final CTA ────────────────────────────────────────────────── */
.final-cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.8px;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.final-cta p { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-land { padding: 72px 18px 88px; }
  .demo-section { padding: 48px 16px; border-radius: 20px; }
  .land-section { padding: 56px 18px; }
  .land-head { margin-bottom: 36px; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
}
