/* ============================================================
   polish.css — visual refinements on top of existing styles.
   Loaded last so it can fine-tune the look without rewriting
   the template. Keep changes subtle and reversible.
   ============================================================ */

:root {
    --accent-gradient: linear-gradient(135deg, #4154f1 0%, #6471ff 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(65, 84, 241, 0.08) 0%, rgba(120, 47, 146, 0.08) 100%);
    --purple-accent: #782f92;
    --soft-shadow: 0 10px 30px rgba(65, 84, 241, 0.08);
    --soft-shadow-hover: 0 18px 45px rgba(65, 84, 241, 0.18);
    --card-radius: 14px;
}

/* ---------- Global typography & smoothness ---------- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(65, 84, 241, 0.18);
    color: #012970;
}

/* ---------- Header / Nav ---------- */
.header {
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.index-page.scrolled .header,
.scrolled .header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 6px 24px rgba(1, 41, 112, 0.08);
}

.header .logo h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2px;
}

.navmenu a,
.navmenu .scrollto {
    position: relative;
    transition: color 0.25s ease;
}

.navmenu a:not(.btn-getstarted)::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navmenu a:not(.btn-getstarted):hover::after,
.navmenu a.active:not(.btn-getstarted)::after {
    transform: scaleX(1);
}

/* Highlighted "Generate" CTA in menu (purple accent kept from existing theme) */
li.generateMenuItem {
    background-color: transparent !important;
}

li.generateMenuItem .btn-getstarted {
    background: linear-gradient(135deg, #782f92 0%, #4154f1 100%) !important;
    box-shadow: 0 6px 18px rgba(120, 47, 146, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

li.generateMenuItem .btn-getstarted:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(120, 47, 146, 0.35);
    filter: brightness(1.05);
}

/* ---------- Hero / Landing ---------- */
.hero {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(65, 84, 241, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(120, 47, 146, 0.08), transparent 60%),
        #ffffff;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #012970 0%, #4154f1 60%, #782f92 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

.hero .btn-get-started {
    background: var(--accent-gradient);
    border: 0;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 24px rgba(65, 84, 241, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero .btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(65, 84, 241, 0.35);
    filter: brightness(1.05);
}

.hero .btn-get-started i {
    transition: transform 0.25s ease;
}

.hero .btn-get-started:hover i {
    transform: translateX(4px);
}

.hero-img img {
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(1, 41, 112, 0.18);
}

/* ---------- Section titles ---------- */
.section-title {
    padding-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(65, 84, 241, 0.12);
}

.section-title p {
    display: block;
    margin-top: 6px !important;
}

.section-title p {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title p::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent-gradient);
}

/* ---------- Cards / Boxes (Values + KeyFeatures) ---------- */
.values .box,
.keyFeatures .box {
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(65, 84, 241, 0.06);
}

.values .box:hover,
.keyFeatures .box:hover {
    transform: translateY(-6px);
    box-shadow: var(--soft-shadow-hover);
}

.values .box img,
.keyFeatures .box img {
    transition: transform 0.4s ease;
}

.values .box:hover img,
.keyFeatures .box:hover img {
    transform: scale(1.04);
}

/* ---------- About ---------- */
.about .content {
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, rgba(65, 84, 241, 0.05) 0%, rgba(120, 47, 146, 0.04) 100%) !important;
    border: 1px solid rgba(65, 84, 241, 0.08);
}

.about img {
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
}

.about .content h2 {
    line-height: 1.35;
}

/* ---------- Counters ---------- */
.counts .stats-item {
    transition: transform 0.3s ease;
}

.counts .stats-item:hover {
    transform: translateY(-4px);
}

.counts .stats-item span,
.purecounter {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ---------- Pricing ---------- */
.pricing .box,
.pricing-item,
section.pricing .col {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing .box:hover,
.pricing-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--soft-shadow-hover);
}

/* Featured pricing card subtle highlight */
.pricing .featured,
.pricing .box.featured {
    border: 1px solid rgba(65, 84, 241, 0.25);
    box-shadow: 0 12px 32px rgba(65, 84, 241, 0.15);
}

/* ---------- Buttons (global polish, non-destructive) ---------- */
.btn-primary {
    background: var(--accent-gradient) !important;
    border: 0 !important;
    border-radius: 6px;
    padding: 10px 22px !important;
    box-shadow: 0 6px 18px rgba(65, 84, 241, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(65, 84, 241, 0.32);
    filter: brightness(1.05);
}

.mainButton {
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(60, 83, 164, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.mainButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(60, 83, 164, 0.38);
    filter: brightness(1.05);
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid rgba(120, 100, 150, 0.18) !important;
    box-shadow: 0 4px 14px rgba(1, 41, 112, 0.05);
    transition: box-shadow 0.25s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 24px rgba(1, 41, 112, 0.10);
}

.accordion-button {
    border-radius: 0 !important;
    transition: background-color 0.25s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #786496 0%, #4154f1 100%) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.18) !important;
    border-color: transparent !important;
}

/* ---------- Sticky notes (gentle tilt softening on hover) ---------- */
div.stickyBox {
    border-radius: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

div.stickyBox:hover, div.stickyBox:focus {
    -webkit-transform: scale(1.18);
    -moz-transform: scale(1.18);
    -o-transform: scale(1.18);
    -ms-transform: scale(1.18);
    transform: scale(1.18);
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: var(--accent-gradient) !important;
    box-shadow: 0 8px 20px rgba(65, 84, 241, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(65, 84, 241, 0.45);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid rgba(65, 84, 241, 0.08);
}

.footer .footer-top {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%) !important;
}

.footer .social-links a {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
}

/* ---------- Forms / inputs polish ---------- */
.form-control,
input.form-control,
textarea.form-control {
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: rgba(65, 84, 241, 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.15) !important;
}

/* ---------- Images: gentler default rounding for content images ---------- */
.normal-page img.img-fluid,
section img.img-fluid {
    border-radius: 10px;
}

/* Skip rounding where it would break carousels/logos */
.header .logo img,
.footer .logo img,
.carousel img,
.values .box img,
.keyFeatures .box img {
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Subtle reveal for AOS-less elements ---------- */
section {
    scroll-margin-top: 90px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero h2 {
        font-size: 16px;
    }

    .section-title p {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .btn-get-started {
        padding: 12px 24px;
    }
}
