/*!
 * ITZ Adarsh — home page layer
 * Loaded after theme.css / style.css. One design language for the marketing page:
 * token-driven surfaces, equal-height cards, aligned CTAs, real icon glyphs.
 */

.page-home,
.page-home body {
    --h-surface: #ffffff;
    --h-surface-2: #f6f9f8;
    --h-line: #dde7e4;
    --h-line-soft: #ecf2f0;
    --h-ink: #07231f;
    --h-ink-2: #3f5651;
    --h-muted: #6b807b;
    --h-brand: #095650;
    --h-brand-2: #0f766e;
    --h-accent: #14b8a6;
    --h-accent-soft: rgba(20, 184, 166, .12);
    --h-shadow: 0 1px 2px rgba(7, 35, 31, .05), 0 12px 28px rgba(7, 35, 31, .06);
    --h-shadow-lg: 0 2px 6px rgba(7, 35, 31, .06), 0 26px 60px rgba(7, 35, 31, .12);
    --h-radius: 18px;
}

html[data-theme="dark"] .page-home,
html[data-theme="dark"] .page-home body {
    --h-surface: #0d1615;
    --h-surface-2: #0a1211;
    --h-line: #1e2c2a;
    --h-line-soft: #182422;
    --h-ink: #eaf3f1;
    --h-ink-2: #b9c9c5;
    --h-muted: #8b9d99;
    --h-brand: #14b8a6;
    --h-brand-2: #2dd4bf;
    --h-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px rgba(0, 0, 0, .35);
    --h-shadow-lg: 0 2px 8px rgba(0, 0, 0, .5), 0 30px 70px rgba(0, 0, 0, .45);
    --h-accent-soft: rgba(45, 212, 191, .14);
}

/* ============ page rhythm ============ */
.page-home section.features,
.page-home .integration-showcase,
.page-home .documentation,
.page-home .trusted-by,
.page-home .reviews-section {
    padding-top: clamp(56px, 7vw, 96px) !important;
    padding-bottom: clamp(56px, 7vw, 96px) !important;
}

.page-home .section-title {
    font-size: clamp(26px, 3.1vw, 40px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    margin-bottom: 12px !important;
    color: var(--h-ink) !important;
}

.page-home .section-subtitle {
    font-size: clamp(14px, 1.15vw, 16px) !important;
    line-height: 1.6 !important;
    color: var(--h-muted) !important;
    max-width: 62ch;
    margin: 0 auto !important;
}

.page-home .update-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 13px !important;
    border-radius: 999px !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    color: var(--h-brand) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px !important;
}

/* ============ hero ============ */
.page-home .hero {
    padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px) !important;
    background: transparent !important;
}

.page-home .hero-container {
    max-width: 1240px !important;
    gap: clamp(28px, 4vw, 56px) !important;
    align-items: center !important;
}

.page-home .hero h1 {
    font-size: clamp(34px, 4.4vw, 58px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
    font-weight: 800 !important;
    color: var(--h-ink) !important;
    margin-bottom: 18px !important;
}

.page-home .hero-gradient-text {
    background: linear-gradient(100deg, var(--h-brand-2), var(--h-accent)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.page-home .hero-highlight {
    color: var(--h-brand) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
}

.page-home .hero-lead {
    font-size: clamp(15px, 1.25vw, 17px) !important;
    line-height: 1.65 !important;
    color: var(--h-ink-2) !important;
    max-width: 54ch;
    margin-bottom: 26px !important;
}

.page-home .hero-cta {
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.page-home .hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 24px !important;
    border-radius: 13px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

.page-home .hero-btn-primary {
    background: linear-gradient(135deg, var(--h-brand-2), var(--h-brand)) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 26px rgba(9, 86, 80, .25) !important;
}

.page-home .hero-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(9, 86, 80, .3) !important;
}

html[data-theme="dark"] .page-home .hero-btn-primary {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6) !important;
    color: #04211f !important;
}

.page-home .hero-btn-secondary {
    background: var(--h-surface) !important;
    color: var(--h-ink) !important;
    border: 1px solid var(--h-line) !important;
    box-shadow: none !important;
}

.page-home .hero-btn-secondary:hover {
    border-color: var(--h-accent) !important;
    background: var(--h-surface) !important;
}

.page-home .hero-trust {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 18px !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-home .hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px !important;
    font-weight: 500;
    color: var(--h-muted) !important;
}

.page-home .hero-trust i {
    font-size: 13px;
    color: var(--h-accent) !important;
}

/* stat strip: dashboard-style tiles instead of loose numbers */
.page-home .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 460px;
}

.page-home .hero-stat {
    display: block !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow);
    text-align: left !important;
}

.page-home .hero-stat strong {
    display: block;
    font-size: 19px !important;
    line-height: 1.1;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: var(--h-brand) !important;
}

.page-home .hero-stat span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px !important;
    color: var(--h-muted) !important;
}

/* the artwork gets a proper frame instead of bleeding into the page */
.page-home .hero-visual {
    position: relative;
}

.page-home .hero-image-frame {
    border-radius: 22px !important;
    overflow: hidden;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow-lg) !important;
    padding: 10px !important;
}

.page-home .hero-dashboard-img {
    border-radius: 14px !important;
    display: block;
    width: 100%;
    height: auto;
}

.page-home .hero-visual-glow {
    opacity: .35 !important;
    filter: blur(70px) !important;
    background: radial-gradient(circle, var(--h-accent), transparent 70%) !important;
}

.page-home .hero-float-card {
    border-radius: 13px !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow) !important;
    padding: 9px 12px !important;
}

.page-home .hero-float-card strong {
    color: var(--h-ink) !important;
    font-size: 12.5px !important;
}

.page-home .hero-float-card span {
    color: var(--h-muted) !important;
    font-size: 11px !important;
}

/* ============ feature cards ============ */
.page-home .features-grid,
.page-home .feature-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch;
}

.page-home .feature-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 18px !important;
    border-radius: var(--h-radius) !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.page-home .feature-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--h-accent) 55%, var(--h-line)) !important;
    box-shadow: var(--h-shadow-lg) !important;
}

.page-home .feature-image {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
}

.page-home .feature-card h3 {
    font-size: 17px !important;
    line-height: 1.3 !important;
    letter-spacing: -.015em;
    margin: 0 0 8px !important;
    color: var(--h-ink) !important;
}

.page-home .feature-card p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: var(--h-muted) !important;
    margin: 0 !important;
}

/* ============ pricing ============ */
.page-home .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 34px !important;
    max-width: 1200px !important;
    align-items: stretch;
}

@media (max-width: 1180px) {
    .page-home .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .page-home .pricing-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.page-home .pricing-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    padding: 26px 22px 22px !important;
    border-radius: var(--h-radius) !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow);
    text-align: left !important;
    transform: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.page-home .pricing-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--h-shadow-lg) !important;
}

.page-home .pricing-card.featured {
    border-color: var(--h-accent) !important;
    box-shadow: 0 0 0 1px var(--h-accent), var(--h-shadow-lg) !important;
    transform: none !important;
}

.page-home .pricing-card h3 {
    margin: 0 0 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--h-brand) !important;
}

.page-home .pricing-card .price {
    font-size: 34px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
    color: var(--h-ink) !important;
    margin-bottom: 18px !important;
}

.page-home .pricing-card .price span {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--h-muted) !important;
    letter-spacing: 0;
}

.page-home .pricing-card ul {
    list-style: none !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    display: grid;
    gap: 0;
    flex: 1 1 auto;
}

.page-home .pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0 !important;
    border-top: 1px solid var(--h-line-soft) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--h-ink-2) !important;
}

.page-home .pricing-card ul li:first-child {
    border-top: 0 !important;
}

/* the list items are plain text from the DB — draw a real icon in front of each */
.page-home .pricing-card ul li::before {
    content: "\f26e"; /* bi-check2 */
    font-family: "bootstrap-icons" !important;
    font-size: 13px;
    line-height: 1.5;
    color: var(--h-accent);
    flex: 0 0 auto;
}

.page-home .pricing-card .btn {
    width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 11px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    margin-top: auto !important;
    background: var(--h-surface-2) !important;
    color: var(--h-ink) !important;
    border: 1px solid var(--h-line) !important;
    box-shadow: none !important;
}

.page-home .pricing-card.featured .btn,
.page-home .pricing-card:hover .btn {
    background: linear-gradient(135deg, var(--h-brand-2), var(--h-brand)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .page-home .pricing-card.featured .btn,
html[data-theme="dark"] .page-home .pricing-card:hover .btn {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6) !important;
    color: #04211f !important;
}

/* ============ compare table ============ */
.page-home .compare-table-wrap {
    border-radius: var(--h-radius);
    border: 1px solid var(--h-line);
    background: var(--h-surface);
    box-shadow: var(--h-shadow);
    overflow: auto;
}

.page-home table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.page-home table th {
    background: var(--h-surface-2) !important;
    color: var(--h-ink) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--h-line) !important;
    text-align: left;
}

.page-home table td {
    padding: 13px 16px !important;
    font-size: 13px !important;
    color: var(--h-ink-2) !important;
    border-bottom: 1px solid var(--h-line-soft) !important;
    vertical-align: middle;
}

.page-home table tr:last-child td {
    border-bottom: 0 !important;
}

.page-home table tr:hover td {
    background: var(--h-accent-soft) !important;
}

.page-home table .bi-check-circle-fill {
    color: var(--h-accent) !important;
}

.page-home table .bi-x-circle-fill {
    color: #ef4444 !important;
}

/* ============ integrations ============ */
.page-home .integration-item {
    border-radius: var(--h-radius) !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow);
    padding: 18px !important;
}

.page-home .integration-icon {
    border-radius: 12px !important;
    background: var(--h-surface-2) !important;
}

/* ============ docs steps ============ */
.page-home .doc-item {
    border-radius: var(--h-radius) !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow);
    padding: 20px !important;
}

/* ============ reviews ============ */
.page-home .review-card {
    border-radius: var(--h-radius) !important;
    border: 1px solid var(--h-line) !important;
    background: var(--h-surface) !important;
    box-shadow: var(--h-shadow) !important;
}

.page-home .review-avatar {
    border-radius: 50%;
    border: 2px solid var(--h-surface-2);
}

/* ============ trusted-by ============ */
.page-home .trusted-by .section-title {
    margin-bottom: 26px !important;
}

/* keep the fixed cookie card from covering the hero CTAs on short screens */
@media (min-height: 720px) and (max-height: 940px) {
    .page-home .hero-stats {
        margin-bottom: 64px !important;
    }
}


/* ============ hero floating cards stay inside the product frame ============ */
.page-home .hero-float-card {
    z-index: 3;
}

.page-home .hero-float-1 {
    left: 14px !important;
    top: 54px !important;
    right: auto !important;
}

.page-home .hero-float-2 {
    left: auto !important;
    right: 14px !important;
    top: 18% !important;
}

.page-home .hero-float-3 {
    left: auto !important;
    right: 14px !important;
    bottom: 16px !important;
    top: auto !important;
}

/* the animated underline stopped mid-word and read as a rendering bug */
.page-home .hero-highlight::after {
    display: none !important;
}

.page-home .hero-highlight {
    color: var(--h-brand) !important;
}

/* ============ cookie card: keep it clear of hero content ============ */
body.page-home #cookie-consent-banner {
    max-width: 460px;
    padding: 14px 16px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-inner {
    max-width: none;
    gap: 12px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-copy {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body.page-home #cookie-consent-banner .cookie-consent-actions {
    gap: 8px !important;
}

@media (max-width: 720px) {
    body.page-home #cookie-consent-banner {
        max-width: calc(100vw - 24px);
    }
}


/* ============ consent banner: compact strip, not a content blocker ============ */
body.page-home #cookie-consent-banner {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 12px !important;
    max-width: min(760px, calc(100vw - 24px)) !important;
    padding: 10px 12px 10px 14px !important;
    border-radius: 14px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-inner {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto;
    font-size: 14px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}

body.page-home #cookie-consent-banner .cookie-consent-copy strong {
    display: block;
    font-size: 12px;
}

body.page-home #cookie-consent-banner .cookie-consent-actions {
    display: flex !important;
    flex: 0 0 auto;
    gap: 6px !important;
}

body.page-home #cookie-consent-banner .cookie-consent-actions button,
body.page-home #cookie-consent-banner .cookie-consent-actions a {
    height: 32px;
    padding: 0 12px !important;
    font-size: 11.5px !important;
    border-radius: 9px !important;
    white-space: nowrap;
}

@media (max-width: 820px) {
    body.page-home #cookie-consent-banner .cookie-consent-inner {
        flex-wrap: wrap !important;
    }
}


/* ============ hero product shot ============ */
.page-home .hero-shot {
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.page-home .hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ============ hero background, same language as the auth screens ============ */
.page-home .hero {
    position: relative;
    isolation: isolate;
}

.page-home .hero-bg {
    background:
        radial-gradient(1200px 720px at 8% -12%, rgba(20, 184, 166, .20), transparent 62%),
        radial-gradient(900px 620px at 100% 4%, rgba(9, 86, 80, .16), transparent 58%),
        radial-gradient(820px 820px at 52% 118%, rgba(16, 185, 129, .12), transparent 62%);
}

.page-home .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(9, 86, 80, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(9, 86, 80, .055) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(circle at 62% 40%, #000 22%, transparent 76%);
    mask-image: radial-gradient(circle at 62% 40%, #000 22%, transparent 76%);
}

html[data-theme="dark"] .page-home .hero-bg {
    background:
        radial-gradient(1100px 700px at 8% -12%, rgba(20, 184, 166, .17), transparent 62%),
        radial-gradient(900px 640px at 100% 0%, rgba(15, 118, 110, .2), transparent 58%),
        radial-gradient(780px 780px at 52% 118%, rgba(45, 212, 191, .11), transparent 62%);
}

html[data-theme="dark"] .page-home .hero-bg::after {
    background-image:
        linear-gradient(to right, rgba(45, 212, 191, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(45, 212, 191, .07) 1px, transparent 1px);
}

/* auth-style drifting orbs */
.page-home .hero-orb {
    filter: blur(56px);
    opacity: .5;
    border-radius: 50%;
    animation: heroOrbFloat 18s ease-in-out infinite;
}

.page-home .hero-orb-2 {
    animation-delay: -6s;
}

.page-home .hero-orb-3 {
    animation-delay: -12s;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -28px, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-orb {
        animation: none;
    }
}

/* ============ scroll reveal (index only; opt-in through html.reveal-on) ============ */
html.reveal-on .page-home [data-reveal] {
    opacity: 0;
    translate: 0 22px;
    transition:
        opacity .5s cubic-bezier(.22, .61, .36, 1),
        translate .5s cubic-bezier(.22, .61, .36, 1);
}

html.reveal-on .page-home [data-reveal].is-in {
    opacity: 1;
    translate: 0 0;
}

/* staggered children: `translate` instead of `transform` so card hover lifts keep working */
html.reveal-on .page-home [data-stagger] > * {
    opacity: 0;
    translate: 0 18px;
    transition:
        opacity .55s cubic-bezier(.22, .61, .36, 1),
        translate .55s cubic-bezier(.22, .61, .36, 1);
    transition-delay: calc(var(--i, 0) * 75ms);
}

html.reveal-on .page-home [data-stagger].is-stagger-in > * {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    html.reveal-on .page-home [data-reveal],
    html.reveal-on .page-home [data-stagger] > * {
        opacity: 1;
        translate: none;
        transition: none;
    }
}
