/* ==========================================================================
   Marcaí — Landing Page Polish
   Dedicated stylesheet. Does NOT modify main.css.
   ========================================================================== */

/* ---------- noise / grain overlay for depth ---------- */
.landing-grain::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: multiply;
}
html.dark .landing-grain::before {
    opacity: 0.045;
    mix-blend-mode: soft-light;
}

/* ---------- dot grid pattern ---------- */
.dot-grid {
    background-image: radial-gradient(circle, #1E1E2C 1px, transparent 1px);
    background-size: 28px 28px;
}
html.dark .dot-grid {
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
}

/* Light dot grid for dark backgrounds */
.dot-grid-light {
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ---------- ambient glow blobs ---------- */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}
.ambient-blob--primary {
    background: radial-gradient(circle, rgba(255,90,31,0.18) 0%, transparent 70%);
}
.ambient-blob--secondary {
    background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
}

/* ---------- scroll-reveal ---------- */
.sr {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sr.sr--left {
    transform: translateX(-32px) translateY(0);
}
.sr.sr--right {
    transform: translateX(32px) translateY(0);
}
.sr.sr--scale {
    transform: scale(0.92);
}
.sr.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* stagger children inside a parent with .sr-stagger */
.sr-stagger > .sr:nth-child(1) { transition-delay: 0ms; }
.sr-stagger > .sr:nth-child(2) { transition-delay: 80ms; }
.sr-stagger > .sr:nth-child(3) { transition-delay: 160ms; }
.sr-stagger > .sr:nth-child(4) { transition-delay: 240ms; }
.sr-stagger > .sr:nth-child(5) { transition-delay: 320ms; }
.sr-stagger > .sr:nth-child(6) { transition-delay: 400ms; }

/* ---------- hero entrance shimmer ---------- */
@keyframes hero-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.hero-title-shimmer {
    background-size: 200% auto;
    animation: hero-shimmer 4s linear infinite;
    background-image: linear-gradient(
        90deg,
        #FF5A1F 0%,
        #c4b5fd 25%,
        #F5A623 50%,
        #c4b5fd 75%,
        #FF5A1F 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- floating particles ---------- */
@keyframes particle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    25%      { transform: translateY(-40px) rotate(10deg); opacity: 0.8; }
    50%      { transform: translateY(-80px) rotate(-5deg); opacity: 0.3; }
    75%      { transform: translateY(-40px) rotate(8deg); opacity: 0.6; }
}
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

/* ---------- magnetic / ripple button ---------- */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-magnetic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.btn-magnetic:hover::after {
    opacity: 1;
}
.btn-magnetic > * {
    position: relative;
    z-index: 2;
}

/* ---------- feature card glow-on-hover ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 40%, rgba(255,90,31,0.12) 50%, transparent 60%);
    background-size: 250% 250%;
    background-position: 100% 100%;
    transition: background-position 0.6s ease;
    z-index: 0;
    pointer-events: none;
}
.feature-card:hover::before {
    background-position: 0% 0%;
}
.feature-card > * {
    position: relative;
    z-index: 1;
}

/* ---------- pricing card shine ---------- */
.pricing-card {
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 1;
}
.pricing-card:hover::before {
    left: 125%;
}

/* ---------- counter animation for pricing ---------- */
.price-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------- marquee / trust bar ---------- */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* ---------- dashboard mockup idle float ---------- */
@keyframes mockup-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.mockup-float {
    animation: mockup-float 5s ease-in-out infinite;
}

/* ---------- badge pulse ---------- */
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(255,90,31,0); }
}
.badge-glow {
    animation: badge-glow 2.5s ease-in-out infinite;
}

/* ---------- gradient border for highlighted pricing ---------- */
.gradient-border {
    position: relative;
}
.gradient-border::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #FF5A1F 0%, #F5A623 50%, #FF5A1F 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    z-index: -1;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ---------- stats counter ---------- */
@keyframes count-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-value {
    animation: count-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- CTA section mesh gradient ---------- */
.cta-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255,90,31,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(245,166,35,0.20) 0%, transparent 60%);
}

/* ---------- smooth section divider ---------- */
.section-wave {
    position: relative;
}
.section-wave::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #FAFAFC);
    pointer-events: none;
}
html.dark .section-wave::after {
    background: linear-gradient(to bottom, transparent, #0f0e17);
}

/* ---------- link underline animation ---------- */
.link-slide {
    position: relative;
}
.link-slide::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF5A1F, #F5A623);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.link-slide:hover::after {
    width: 100%;
}

/* ---------- responsive refinements ---------- */
@media (max-width: 640px) {
    .hero-title-shimmer {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
}

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .sr { transition: none !important; opacity: 1; transform: none; }
    .hero-title-shimmer { animation: none; }
    .mockup-float { animation: none; }
    .marquee-track { animation: none; }
    .particle { display: none; }
    .badge-glow { animation: none; }
    .gradient-border::after { animation: none; }
    .editorial-kicker::before { animation: none; }
    .quote-float { animation: none; }
}

/* ==========================================================================
   Editorial / Magazine flourishes (WOW revision)
   ========================================================================== */

/* ---------- Editorial base typography ---------- */
.font-display, .font-serif {
    font-feature-settings: "ss01", "ss02", "liga", "dlig";
    letter-spacing: -0.015em;
}

/* ---------- Soft chapter kicker (little animated bar) ---------- */
.editorial-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.editorial-kicker::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF5A1F, transparent);
    background-size: 200% 100%;
    animation: kicker-slide 3s ease-in-out infinite;
}
@keyframes kicker-slide {
    0%, 100% { background-position: -100% 0; }
    50%      { background-position: 100% 0; }
}

/* ---------- Tilted / floating card base ---------- */
.tilt-left  { transform: rotate(-2deg); }
.tilt-right { transform: rotate(2deg); }
.tilt-soft  { transform: rotate(-1.2deg); }

.tilt-left, .tilt-right, .tilt-soft {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tilt-left:hover, .tilt-right:hover, .tilt-soft:hover {
    transform: rotate(0);
}

/* ---------- Floating quote-card mini (whatsapp preview etc) ---------- */
@keyframes quote-float {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50%      { transform: rotate(5deg) translateY(-8px); }
}
.quote-float {
    animation: quote-float 4.5s ease-in-out infinite;
    will-change: transform;
}
.quote-float:hover { animation-play-state: paused; }

/* ---------- Bento card hover: subtle lift + halo ---------- */
.bento-card {
    transform: translateZ(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}
.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(255, 90, 31, 0.25);
}

/* Editorial numeric badge inside bento cards — let Tailwind alpha control transparency */
.bento-numeral {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* ---------- Wavy hand-drawn underline accent ---------- */
.hand-underline {
    position: relative;
    display: inline-block;
}
.hand-underline svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.3em;
    width: 100%;
    height: 0.5em;
    pointer-events: none;
}

/* ---------- Marquee elevated (editorial strip) ---------- */
.marquee-edit {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
    gap: 0;
}
.marquee-edit:hover {
    animation-play-state: paused;
}
.marquee-edit .divider {
    font-family: 'Bricolage Grotesque', sans-serif;
    opacity: 0.35;
}

/* ---------- Pull quote (big serif blockquote) ---------- */
.pull-quote {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.12;
}
.pull-quote-mark {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 400;
    line-height: 0.75;
    user-select: none;
}

/* ---------- Step numerals for "how it works" style content ---------- */
.step-numeral {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, #FF5A1F 0%, #F5A623 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 0.85;
}

/* ---------- Decorative spark glyph ---------- */
.spark {
    display: inline-block;
    transition: transform 0.3s ease;
}
.spark-spin:hover .spark {
    transform: rotate(180deg) scale(1.2);
}

/* ---------- Fancy ring ornament ---------- */
.ring-orn {
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.25;
    pointer-events: none;
}

/* ---------- Pricing: crown badge animation ---------- */
@keyframes crown-pulse {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50%      { transform: translate(-50%, -2px) scale(1.03); }
}
.crown-badge {
    animation: crown-pulse 3s ease-in-out infinite;
}

/* ---------- Section background marble (subtle) ---------- */
.marble-wash {
    background-image:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(245,166,35,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 80%, rgba(255,90,31,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,255,255,0.5) 0%, transparent 60%);
}
html.dark .marble-wash {
    background-image:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(245,166,35,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 80%, rgba(255,90,31,0.12) 0%, transparent 55%);
}

/* ---------- Dotted rule (editorial divider) ---------- */
.dotted-rule {
    height: 1px;
    background-image: linear-gradient(90deg, currentColor 50%, transparent 50%);
    background-size: 6px 1px;
    background-repeat: repeat-x;
    opacity: 0.25;
}

/* ---------- Live dot / status ---------- */
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.8); }
}
.live-dot {
    animation: live-pulse 1.4s ease-in-out infinite;
}

/* ---------- Dashboard frame glow accents (hero) ---------- */
.hero-frame-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 30% 30%, rgba(255,90,31,0.20), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(245,166,35,0.18), transparent 60%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* ---------- Responsive refinements ---------- */
@media (max-width: 1023px) {
    .tilt-left, .tilt-right, .tilt-soft { transform: none; }
    .quote-float { animation: none; transform: rotate(3deg); }
}
@media (max-width: 640px) {
    .pull-quote { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
}
