/* Djabooty Cloud — landing page */

/* Tighter rhythm than the inner pages: the landing page should feel quick to scan. */
section.block { padding: 84px 0; }
section.block.tight { padding: 48px 0; }
.section-head { margin-bottom: 44px; }

/* ───── hero ───── */
.hero { position: relative; padding: 76px 0 44px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 -140px; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.hero-bg .b1 { width: 620px; height: 620px; left: calc(50% - 760px); top: -280px; background: #6b5cf0; opacity: .5; animation: drift1 20s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 560px; height: 560px; left: calc(50% + 160px); top: -220px; background: #14b8a6; opacity: .3; animation: drift2 24s ease-in-out infinite alternate; }
.hero-bg .b3 { width: 480px; height: 480px; left: calc(50% - 220px); top: 300px; background: #e04aa8; opacity: .14; animation: drift3 28s ease-in-out infinite alternate; }
.hero-bg .grid {
  position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 20%, transparent 72%);
}
.hero-bg .noise {
  position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-110px, 80px) scale(.92); } }
@keyframes drift3 { to { transform: translate(60px, -70px) scale(1.2); } }

.hero-inner { text-align: center; max-width: 1000px; margin: 0 auto; }
.hero-inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .12s; }
.hero-inner > :nth-child(4) { animation-delay: .18s; }
.hero-inner > :nth-child(5) { animation-delay: .24s; }
/* The entrance only slides (no fade from invisible), so the headline is readable even if a
   browser, crawler or screenshot tool never runs the animation. */
@keyframes rise { from { transform: translateY(22px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); margin-bottom: 26px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eyebrow i { font-style: normal; color: var(--text-3); }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); } }

.hero h1 { margin: 0 0 24px; font: 760 clamp(46px, 9.2vw, 112px)/.96 var(--font-display); letter-spacing: -.045em; }
.h1-top { display: block; color: #fff; text-shadow: 0 2px 44px rgba(138, 125, 255, .3); }
.h1-words { display: block; margin-top: .05em; }
.h1-words .w { position: relative; display: inline-block; padding: 0 .03em .12em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-words .w:nth-child(1) { background-image: linear-gradient(100deg, #cdc2ff, #8f86ff); }
.h1-words .w:nth-child(2) { background-image: linear-gradient(100deg, #8f86ff, #4fb4ff); }
.h1-words .w:nth-child(3) { background-image: linear-gradient(100deg, #4fb4ff, #2fe0c5); }
.h1-words .w::after {
  content: ''; position: absolute; left: .06em; right: .12em; bottom: .03em; height: .05em; border-radius: 99px;
  background: linear-gradient(90deg, #8f86ff, #2fe0c5); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.h1-words .w.on::after { transform: scaleX(1); }

.hero .lead { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 600px; margin: 0 auto 30px; text-wrap: balance; }

.email-cta {
  display: flex; gap: 8px; max-width: 500px; margin: 0 auto; padding: 6px; border-radius: 18px; background: rgba(12, 12, 18, .72);
  border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  transition: border-color .15s, box-shadow .15s;
}
.email-cta:focus-within { border-color: rgba(138, 125, 255, .8); box-shadow: 0 0 0 4px rgba(138, 125, 255, .18), 0 10px 40px rgba(0, 0, 0, .35); }
.email-cta input[type=email] { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.email-cta input::placeholder { color: var(--text-3); }
.email-cta .btn { height: 50px; padding: 0 22px; border-radius: 13px; font-size: 15.5px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { width: 15px; height: 15px; color: var(--teal); }

/* ───── animated app preview ───── */
.demo { margin: 58px auto 0; max-width: 1080px; animation: rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
.demo-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.demo-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font-weight: 600; font-size: 14.5px;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.demo-tab:hover { color: var(--text); }
.demo-tab.on { color: #fff; border-color: rgba(138, 125, 255, .65); background: rgba(138, 125, 255, .16); box-shadow: 0 0 24px rgba(138, 125, 255, .22); }
.demo-tab .ic { width: 16px; height: 16px; }
.demo-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.demo-tab.on.run .bar { animation: tabbar var(--dur, 9s) linear forwards; }
@keyframes tabbar { to { transform: scaleX(1); } }
.demo-stage { position: relative; }
.demo-glow { position: absolute; inset: 12% 6% -5%; background: var(--grad); filter: blur(90px); opacity: .3; border-radius: 40px; z-index: -1; animation: glowpulse 6s ease-in-out infinite alternate; }
@keyframes glowpulse { to { opacity: .44; transform: scale(1.03); } }
.demo-note { text-align: center; color: var(--text-3); font-size: 12px; margin: 16px 0 0; }

.mock {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #141419;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  display: grid; grid-template-columns: 216px 1fr; grid-template-rows: 38px minmax(0, 1fr); height: 616px; text-align: left; font-size: 13px;
  transform-origin: 50% 0; transition: transform .25s ease-out;
}
html.js .mock[data-tilt] { transform: perspective(1800px) rotateX(calc(var(--tilt, 1) * 8deg)) scale(calc(1 - var(--tilt, 1) * .04)); }
.mock [hidden] { display: none !important; }
.mock-bar { grid-column: 1 / -1; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #101015; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a33; display: block; }
.mock-bar span { margin-left: 10px; color: var(--text-3); font-size: 12px; }
.mock-side { background: #0f0f14; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.mock-side .m-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 2px 6px 12px; }
.mock-side .m-brand img { width: 20px; height: 20px; border-radius: 6px; }
.m-item { padding: 7px 10px; border-radius: 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item.active { background: rgba(255, 255, 255, .07); color: var(--text); }
.m-label { color: var(--text-3); font-size: 11px; font-weight: 650; padding: 12px 10px 4px; }
.mock-main { display: flex; flex-direction: column; min-width: 0; background: #16161c; }
.mock-thread { flex: 1; padding: 22px 34px 8px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.m-user, .m-result { transition: opacity .35s ease, transform .35s ease; }
.m-user.hide, .m-result.hide { opacity: 0; transform: translateY(10px); }
.m-user { align-self: flex-end; background: #2a2a33; border-radius: 16px 16px 6px 16px; padding: 9px 14px; max-width: 72%; color: var(--text); }
.m-badge { color: #b7aeff; font-size: 11px; font-weight: 650; margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.m-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-meta { font-size: 11.5px; color: var(--text-3); margin-bottom: 7px; display: flex; gap: 6px; align-items: center; }
.m-meta span:first-child { color: var(--text-2); font-weight: 600; }
.m-stage { position: relative; width: min(100%, 540px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c1c25; }
.m-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(16px) saturate(1.3); transform: scale(1.08);
  transition: opacity .7s ease, filter 1s ease, transform 1.3s cubic-bezier(.2, .7, .2, 1);
}
.m-art.on { opacity: 1; filter: none; transform: none; }
.m-stage.playing .m-art.on { animation: kenburns 7s ease-in-out 1.3s infinite alternate; }
@keyframes kenburns { to { transform: scale(1.09) translate(-1.5%, -1%); } }
.m-gen {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 9px; padding: 12px 14px; color: var(--text-2); font-size: 12px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(110deg, transparent 20%, rgba(138, 125, 255, .2) 42%, rgba(45, 212, 191, .14) 58%, transparent 80%); background-size: 250% 100%;
  animation: shimmer 1.8s linear infinite;
}
.m-stage.gen .m-gen { opacity: 1; }
@keyframes shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.m-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #b7aeff; animation: m-rotate .8s linear infinite; flex: none; }
@keyframes m-rotate { to { transform: rotate(360deg); } }
.m-play { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.m-play b { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; backdrop-filter: blur(4px); font-size: 10px; padding-left: 2px; }
.m-reply { max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--text); min-height: 68px; }
.m-caption { font-size: 12px; color: var(--text-2); margin-top: 8px; min-height: 18px; }
.mock-composer { margin: 8px 26px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: #1d1d25; padding: 12px 12px 10px 16px; }
.m-input { display: flex; align-items: center; min-height: 22px; margin-bottom: 10px; color: var(--text); white-space: nowrap; overflow: hidden; }
.m-ph { color: var(--text-3); }
.caret { width: 2px; height: 16px; background: #b7aeff; margin: 0 2px 0 1px; animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-seg { display: inline-flex; background: #2a2a33; border-radius: 999px; padding: 3px; }
.m-seg span { padding: 3px 11px; border-radius: 999px; color: var(--text-2); font-weight: 550; transition: background .25s, color .25s; }
.m-seg span.on { background: #3b3b47; color: var(--text); }
.m-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.m-chip.cost { border: 0; background: rgba(138, 125, 255, .16); color: #c5beff; font-weight: 600; }
.m-chip.cost.pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.m-chip.bal { border: 0; background: var(--teal-soft); color: var(--teal); font-weight: 600; transition: background .3s; }
.m-chip.bal.flash { background: rgba(45, 212, 191, .4); }
.m-spacer { flex: 1; }
.m-send { width: 32px; height: 32px; border-radius: 10px; background: #7465f2; display: grid; place-items: center; transition: transform .15s; }
.m-send.press { transform: scale(.82); }
.m-send svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; }

/* ───── model marquee ───── */
.marquee-label { text-align: center; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 12px; padding-right: 12px; }
.marquee .logo-pill { padding: 11px 20px; font-size: 15.5px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───── three ways to create ───── */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.bento-card { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.bento-card:hover { border-color: rgba(138, 125, 255, .4); }
.bento-card.video { grid-row: span 2; }
.bento-art { position: relative; flex: 1; min-height: 190px; overflow: hidden; }
.bento-art > img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.bento-card.video .bento-art { min-height: 400px; }
.bento-card.video:hover .bento-art > img { transform: scale(1.05); }
.bento-art::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
.b-play {
  position: absolute; left: 50%; top: 46%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 20px; z-index: 1;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .3); animation: playpulse 2.4s infinite;
}
@keyframes playpulse { 70%, 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } }
.b-scrub { position: absolute; left: 24px; right: 24px; bottom: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); z-index: 1; overflow: hidden; }
.b-scrub i { display: block; height: 100%; width: 100%; background: #fff; border-radius: inherit; transform-origin: left; animation: scrub 6s linear infinite; }
@keyframes scrub { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bento-art.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 6px 0; }
.bento-art.grid4 > img { position: static; border-radius: 14px; aspect-ratio: 16 / 9; height: auto; }
.bento-art.grid4::after { display: none; }
.bento-art.chatmock { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 24px 8px; }
.bento-art.chatmock::after { display: none; }
.cm { max-width: 86%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45; }
.cm.u { align-self: flex-end; background: #2a2a33; border-radius: 16px 16px 6px 16px; }
.cm.a { align-self: flex-start; background: rgba(138, 125, 255, .14); border: 1px solid rgba(138, 125, 255, .25); border-radius: 16px 16px 16px 6px; color: #e4e0ff; }
.bento-text { padding: 20px 24px 24px; }
.bento-text h3 { margin: 0 0 6px; font: 700 24px/1.2 var(--font-display); letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; }
.bento-text h3 .ic { width: 22px; height: 22px; color: #b7aeff; }
.bento-text p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ───── why ───── */
.features.four { grid-template-columns: repeat(4, 1fr); }
.features.four .feature { padding: 24px 22px; }
.features.four .feature p a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* ───── steps strip ───── */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; }
.strip > div { padding: 26px 26px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.strip b { display: block; font: 650 16.5px/1.3 var(--font-display); margin-bottom: 3px; }
.strip span:not(.n) { color: var(--text-2); font-size: 14px; }

/* ───── final call to action ───── */
.cta-band h2 { font-size: clamp(34px, 5vw, 58px); }
.cta-band .email-cta { margin-top: 4px; }

/* ───── sticky sign-up bar (phones) ───── */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(16, 16, 24, .92); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px;
  transform: translateY(160%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.sticky-cta.show { transform: none; }

/* ───── responsive ───── */
@media (max-width: 1080px) {
  .features.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.video { grid-row: auto; }
  .bento-card.video .bento-art { min-height: 300px; }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip > div:last-child { border-bottom: 0; }
}
@media (max-width: 820px) {
  .sticky-cta { display: flex; }
}
@media (max-width: 640px) {
  section.block { padding: 60px 0; }
  section.block.tight { padding: 36px 0; }
  .hero { padding-top: 52px; }
  .demo { margin-top: 44px; }
  .mock { height: 512px; }
  .mock-thread { padding: 16px 16px 6px; }
  .m-user { max-width: 88%; }
  .mock-composer { margin: 8px 12px 12px; }
  .m-row .m-chip.bal, .m-row .m-chip.mdl { display: none; }
  .features.four { grid-template-columns: 1fr; }
  .email-cta { flex-direction: column; padding: 8px; }
  .email-cta input[type=email] { text-align: center; }
  .email-cta .btn { width: 100%; }
  .bento-text h3 { font-size: 21px; }
}
