/* WPProfileEngine — WordPress Membership Plugin Website */
/* Clean, modern SaaS design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Variables ───────────────────────────────────────────── */
:root {
    --primary:       #7c3aed;
    --primary-dark:  #6d28d9;
    --primary-light: #ede9fe;
    --accent:        #ec4899;
    --accent-light:  #fce7f3;

    --dark:          #0f172a;
    --dark-2:        #1e293b;

    --bg:            #ffffff;
    --bg-alt:        #f8fafc;
    --bg-alt2:       #f5f3ff;

    --border:        #e2e8f0;
    --border-dark:   #cbd5e1;

    --text:          #0f172a;
    --text-muted:    #64748b;
    --text-light:    #94a3b8;

    --green-score:   #22c55e;
    --orange-score:  #f97316;
    --red-score:     #ef4444;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 48px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.06);
    --shadow-green: 0 8px 32px rgba(124,58,237,.25);

    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all .22s cubic-bezier(.4,0,.2,1);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.py-8  { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 7rem; padding-bottom: 7rem; }

/* ─── Navigation ──────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover { color: var(--primary); }

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg { color: #fff; }

.logo-text { color: var(--dark); }
.logo-text span { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li { display: flex; }

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .45rem .7rem;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Language switcher */
.lang-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: .5rem;
    padding-left: .75rem;
    border-left: 1px solid var(--border);
}

a.lang-switch {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-light);
    padding: .3rem .45rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: .02em;
}

a.lang-switch:hover,
a.lang-switch.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-2);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Main ────────────────────────────────────────────────── */
main { margin-top: 64px; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(155deg, #f0fdf4 0%, #ffffff 50%, #eff6ff 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(22,163,74,.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.hero h1 {
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* Trust badges */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ─── Score Widget ────────────────────────────────────────── */
.score-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.75rem;
    min-width: 280px;
    text-align: center;
    flex-shrink: 0;
}

.score-widget-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.score-gauge-wrap {
    position: relative;
    width: 160px;
    height: 90px;
    margin: 0 auto 1.25rem;
}

.score-gauge-wrap svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.gauge-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 12;
    stroke-linecap: round;
}

/* .gauge-fill removed — arc animation is handled inline on the SVG path */

@keyframes gaugeAnim {
    to { stroke-dashoffset: 26; } /* ~88% of 220 ≈ score 92 */
}

.gauge-score {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -.03em;
}

.gauge-score-before {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: .35rem;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.score-metric {
    text-align: center;
}

.score-metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-score);
    letter-spacing: -.02em;
}

.score-metric-val.orange { color: var(--orange-score); }

.score-metric-lbl {
    font-size: .7rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: .1rem;
}

.score-before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: .25rem;
}

.score-before-after .arrow { color: var(--primary); font-size: 1rem; }
.score-before-after .old  { color: var(--red-score); font-weight: 700; font-size: .95rem; }
.score-before-after .new  { color: var(--green-score); font-weight: 700; font-size: .95rem; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(22,163,74,.35);
    color: #fff;
}

.btn-secondary {
    background: var(--bg);
    color: var(--dark);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: #fff;
}

.btn svg { flex-shrink: 0; }

/* ─── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
    background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #15803d 100%);
    padding: .9rem 0;
    box-shadow: 0 4px 20px rgba(22,163,74,.35);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

@keyframes statFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.15); }
}

.stat-val.flashing {
    animation: statFlash 1s ease-in-out infinite;
    color: #bbf7d0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,.2);
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-lbl {
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
}

/* ─── Section ─────────────────────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 99px;
    margin-bottom: .9rem;
}

.section-title h2 {
    color: var(--dark);
    margin-bottom: .75rem;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* ─── Quick Wins ──────────────────────────────────────────── */
.quick-wins {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.win-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.win-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.win-icon {
    width: 38px; height: 38px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.win-card h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: .2rem;
}

.win-card p {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Feature Cards ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 3rem 0;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(22,163,74,.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: .6rem;
}

.feature-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ─── Who Section ─────────────────────────────────────────── */
.who-section {
    background: var(--bg-alt);
}

/* ─── CTA Section ─────────────────────────────────────────── */
.cta-section {
    background: var(--dark);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(22,163,74,.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: .9rem;
    position: relative;
}

.cta-section p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
    position: relative;
}

.cta-section .btn-group {
    justify-content: center;
    position: relative;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 0;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: .95rem;
    color: var(--dark);
    transition: var(--transition);
    gap: 1rem;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .3s ease;
}

.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: .9rem;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.25rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-section p {
    color: #94a3b8;
    font-size: .85rem;
    line-height: 1.75;
    margin: 0;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: .6rem; }

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    font-size: .85rem;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--primary); }

.footer-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon { background: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #64748b;
    font-size: .8rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: .6rem;
}

.social-link {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: .8rem;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green  { color: var(--primary); }

.bg-alt  { background: var(--bg-alt); }
.bg-alt2 { background: var(--bg-alt2); }

.mt-4 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 2.5rem; }

/* ─── Loading/pulse ───────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.loading { animation: pulse 2s infinite; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero .subtitle { max-width: 100%; }
    .btn-group { justify-content: center; }
    .hero-trust { justify-content: center; }
    .score-widget { margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat-item + .stat-item { border-left: none; }
    .stat-item:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.2); }
}

/* ── Compact nav for medium screens (between hamburger and full desktop) ── */
@media (max-width: 1400px) {
    .nav-menu a {
        font-size: .78rem;
        padding: .4rem .45rem;
    }
}

@media (max-width: 1200px) {
    .nav-menu a {
        font-size: .74rem;
        padding: .38rem .35rem;
    }
    .nav-container {
        padding: .9rem 1rem;
    }
}

/* ── Hamburger menu at ≤ 1100px ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .nav-menu {
        position: fixed;
        top: 63px; left: -100%;
        width: 100%; height: calc(100vh - 63px);
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        transition: left .3s ease;
        border-top: 1px solid var(--border);
        gap: .25rem;
        overflow-y: auto;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: .7rem 1rem; font-size: .95rem; }

    .lang-row {
        border-left: none;
        border-top: 1px solid var(--border);
        margin-left: 0;
        margin-top: .5rem;
        padding-left: 0;
        padding-top: .75rem;
        width: 100%;
        flex-wrap: wrap;
    }

    .menu-toggle { display: flex; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    main { margin-top: 63px; }
}

@media (max-width: 768px) {
    /* Mobile nav (already handled above — just layout overrides below) */

    .features-grid { grid-template-columns: 1fr; }
    .wins-grid { grid-template-columns: 1fr 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .wins-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn { width: 100%; justify-content: center; }
    .btn-group { flex-direction: column; }
}
