/* ============================================
   EQUITIZE V2 — Light Theme
   Warm, approachable, trustworthy
   ============================================ */

::selection {
    background: rgba(37, 99, 235, 0.15);
    color: #1e293b;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.011em;
    color: #334155;
}

/* Balanced, premium text wrapping */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Anchor links shouldn't hide behind the fixed navbar */
:target,
section[id],
[id] { scroll-margin-top: 6rem; }

/* Branded thin scrollbar */
@media (pointer: fine) {
    * { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
    *::-webkit-scrollbar { width: 10px; height: 10px; }
    *::-webkit-scrollbar-track { background: transparent; }
    *::-webkit-scrollbar-thumb {
        background: #CBD5E1;
        border-radius: 999px;
        border: 3px solid #FFFFFF;
    }
    *::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
}

/* Accessible focus rings for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* ---- Hero Backgrounds (layered for subtle depth) ---- */
.hero-light {
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(26, 115, 232, 0.06), transparent 65%),
        radial-gradient(50% 45% at 8% 6%, rgba(52, 168, 83, 0.05), transparent 68%),
        #FFFFFF;
}

.hero-warm {
    background:
        radial-gradient(60% 50% at 82% 0%, rgba(249, 171, 0, 0.07), transparent 65%),
        radial-gradient(50% 45% at 6% 8%, rgba(26, 115, 232, 0.05), transparent 68%),
        #FFFFFF;
}

.hero-blue {
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(26, 115, 232, 0.09), transparent 65%),
        radial-gradient(50% 45% at 8% 10%, rgba(52, 168, 83, 0.05), transparent 68%),
        #FFFFFF;
}

/* ---- Section Backgrounds (Google neutrals) ---- */
.bg-soft { background-color: #F8F9FA; }
.bg-warm { background-color: #FEF7E0; }
.bg-blue-soft { background-color: #E8F0FE; }

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(120deg, #1A73E8 0%, #34A853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* avoid descenders getting clipped */
    padding-bottom: 0.06em;
}

/* ---- Spectrum signatures (the 4 Google dots + rainbow underline) ---- */
.dots span {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    margin-right: 0.14rem;
}
.dots span:last-child { margin-right: 0; }

/* Rainbow underline accent under a highlighted word */
.spectrum-underline {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.spectrum-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.06em;
    height: 0.12em;
    border-radius: 9999px;
    background: linear-gradient(90deg, #1A73E8, #EA4335 35%, #F9AB00 65%, #34A853);
}

@keyframes textSheen {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.gradient-text-blue {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navbar ---- */
#navbar {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(32, 33, 36, 0.04), 0 2px 12px rgba(32, 33, 36, 0.06);
    border-bottom-color: rgba(218, 220, 224, 0.7);
}

#navbar.scrolled .nav-link:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ---- Cards ---- */
.card {
    background: #FFFFFF;
    border: 1px solid rgba(218, 220, 224, 0.7);
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(218, 220, 224, 0.9);
    box-shadow: 0 12px 32px -12px rgba(32, 33, 36, 0.22);
    transform: translateY(-4px);
}

.card-hover {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 14px 32px -12px rgba(37, 99, 235, 0.14),
        0 28px 60px -20px rgba(15, 23, 42, 0.12);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
}

/* Gradient border card */
.gradient-border {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    position: relative;
}

.gradient-border:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

/* ---- Buttons (Google Spectrum — flat pills) ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #FFFFFF;
    background: #1A73E8;
    border-radius: 9999px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1557B0;
    box-shadow: 0 1px 3px rgba(26,115,232,0.4), 0 6px 16px rgba(26,115,232,0.28);
}

.btn-primary:active {
    background: #174EA6;
    box-shadow: 0 1px 2px rgba(26,115,232,0.3);
}

/* Ghost-blue secondary (Google "text action" pill) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1A73E8;
    background: transparent;
    border: 1px solid #DADCE0;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #E8F0FE;
    border-color: #D2E3FC;
}

.btn-secondary:active {
    background: #D2E3FC;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 9999px;
}

/* ---- Stat Counter ---- */
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---- Section Divider ---- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
}

/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scale-in variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Images ---- */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-rounded {
    border-radius: 1rem;
    overflow: hidden;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
    border-radius: 0.75rem;
}

.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ---- Photo Grid ---- */
.photo-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.photo-grid img {
    border-radius: 0.75rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-grid img:hover {
    transform: scale(1.03);
}

.photo-grid .photo-large {
    grid-row: span 2;
}

/* ---- Video Play Button ---- */
.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    position: relative;
}

.play-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.25);
    animation: playPulse 2s ease-in-out infinite;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* ---- Pricing Popular ---- */
.pricing-popular {
    border: 2px solid #2563EB;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
    position: relative;
}

/* ---- Form Inputs ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border: 1px solid #DADCE0;
    border-radius: 0.75rem;
    color: #202124;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.form-input::placeholder { color: #9CA3AF; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

/* ---- Trust Badge ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #166534;
    transition: all 0.2s ease;
}

.trust-badge:hover {
    background: #DCFCE7;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.08);
}

/* ---- Feature Icon Box ---- */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.05);
}

.icon-box { border-radius: 1rem; }
.icon-box-blue   { background: #E8F0FE; color: #1A73E8; }
.icon-box-green  { background: #E6F4EA; color: #34A853; }
.icon-box-orange { background: #FEF7E0; color: #B06000; }
.icon-box-purple { background: #FCE8E6; color: #EA4335; }

/* ---- Nav Link Pill Style ---- */
.nav-link {
    position: relative;
}

/* Active state for pill nav */
.nav-link.active {
    background: white;
    color: #2563EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---- Footer Links ---- */
footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    transform: translateX(2px);
}

footer .social-link {
    transition: all 0.25s ease;
}

footer .social-link:hover {
    transform: translateY(-2px);
    color: #3B82F6;
}

/* ---- Back to Top Button ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    color: #475569;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* ---- Progress Bar (reading indicator) ---- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #059669);
    z-index: 200;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ---- Tooltip ---- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1E293B;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Hero Rotating Text ---- */
.hero-rotate-text {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-rotate-text.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.hero-rotate-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Live Activity Ticker ---- */
.live-ticker {
    overflow: hidden;
    position: relative;
    height: 2.5rem;
}

.live-ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.live-ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ---- Heading Polish ---- */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

h1 { letter-spacing: -0.03em; }

/* ---- Section Spacing ---- */
section {
    position: relative;
}

/* ---- Gold/Warm Accent ---- */
.accent-gold {
    color: #B8860B;
}

.bg-gold-soft {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.border-gold {
    border-color: #F59E0B;
}

/* ---- Sticky Mobile CTA ---- */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: white;
    border-top: 1px solid #E2E8F0;
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .mobile-sticky-cta { display: none !important; }
}

/* ---- Refined Section Transitions ---- */
.bg-soft, .bg-warm, .bg-blue-soft {
    position: relative;
}

.bg-soft::before, .bg-warm::before, .bg-blue-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

/* ---- Verified Badge ---- */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #E8F0FE;
    border: 1px solid #D2E3FC;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1A73E8;
    letter-spacing: 0;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem !important;
    }
}

/* ============================================
   DESIGN POLISH — depth, finish & a11y
   ============================================ */

/* Google-style flat neutral section tints */
.bg-soft     { background: #F8F9FA; }
.bg-warm     { background: #FEF7E0; }
.bg-blue-soft{ background: #E8F0FE; }

/* Resting depth on secondary buttons */
.btn-secondary {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Icon boxes get a subtle inset ring for definition */
.icon-box,
.icon-box-blue, .icon-box-green, .icon-box-orange, .icon-box-purple {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.card:hover .icon-box { transform: scale(1.06) rotate(-2deg); }

/* Popular pricing card — soft brand glow + gentle gradient lift */
.pricing-popular {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.06),
        0 18px 48px -18px rgba(37, 99, 235, 0.30);
}

/* Refined verified/trust badges */
.verified-badge { box-shadow: 0 1px 2px rgba(146, 64, 14, 0.06); }

/* Slightly stronger, cooler section divider */
.section-divider {
    background: linear-gradient(90deg, transparent, #DBE3EE 50%, transparent);
}

/* Crisper photos inside the photo grid */
.photo-grid img { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }

/* ---- Footer — richer, warmer dark (kept dark for contrast) ---- */
footer.bg-slate-900 {
    position: relative;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(40% 70% at 90% 0%, rgba(5, 150, 105, 0.08), transparent 60%),
        linear-gradient(180deg, #0B1220 0%, #0F172A 55%, #0B111E 100%);
}

footer.bg-slate-900::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.55), rgba(5, 150, 105, 0.45), transparent);
}

/* Footer newsletter input focus glow */
footer input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ---- Floating hero accent cards ---- */
.float-card, .float-card-2 {
    animation: floatY 4.5s ease-in-out infinite;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.float-card-2 { animation-delay: 1.4s; }

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

/* ---- Popup entrance (referenced by markup as animate-[slideUp...]) ---- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Gameplan rendered content (AI HTML uses plain tags) ---- */
.gameplan-content { color: #334155; line-height: 1.7; }
.gameplan-content h2 {
    font-size: 1.5rem; font-weight: 800; color: #0F172A;
    margin: 2rem 0 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid #E2E8F0; letter-spacing: -0.02em;
}
.gameplan-content h2:first-child { margin-top: 0; }
.gameplan-content h3 { font-size: 1.15rem; font-weight: 700; color: #1E293B; margin: 1.5rem 0 0.5rem; }
.gameplan-content h4 { font-size: 1rem; font-weight: 700; color: #1E293B; margin: 1.25rem 0 0.4rem; }
.gameplan-content p { margin: 0.75rem 0; }
.gameplan-content ul,
.gameplan-content ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.gameplan-content ul { list-style: disc; }
.gameplan-content ol { list-style: decimal; }
.gameplan-content li { margin: 0.4rem 0; padding-left: 0.25rem; }
.gameplan-content strong { color: #0F172A; font-weight: 700; }
.gameplan-content blockquote {
    border-left: 4px solid #2563EB; background: #EFF6FF;
    padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0 0.5rem 0.5rem 0; color: #1E293B;
}
.gameplan-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9375rem; }
.gameplan-content th,
.gameplan-content td { border: 1px solid #E2E8F0; padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.gameplan-content thead th { background: #F8FAFC; font-weight: 700; color: #0F172A; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-card, .float-card-2 { animation: none !important; }
}
