/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --text:         #111827;
    --text-muted:   #6b7280;
    --bg:           #ffffff;
    --surface:      #f9fafb;
    --border:       #e5e7eb;
    --brand:        #7c3aed;
    --brand-dark:   #6d28d9;
    --brand-light:  #ede9fe;
    --radius:       12px;
    --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.10);
    --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--surface { background: var(--surface); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 8px;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .18s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }

.btn-grad {
    background: var(--plugin-grad, linear-gradient(135deg,#fb923c,#b91c1c));
    color: #fff;
    border: none;
}
.btn-grad:hover { opacity: .9; text-decoration: none; }

.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav__logo {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: -.01em;
}
.nav__logo:hover { text-decoration: none; opacity: .85; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav__links a {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color .15s;
}
.nav__links a:hover { color: var(--brand); }

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__item--dropdown > a::after { content: ' ▾'; font-size: .75em; }
.nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: .5rem 0;
    list-style: none;
    z-index: 200;
}
/* Invisible bridge that fills the gap between trigger and dropdown,
   keeping hover state active as the mouse travels down */
.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -.5rem;
    left: 0;
    right: 0;
    height: .5rem;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown { display: block; }
.nav__dropdown li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    font-size: .9rem;
    color: var(--text);
    transition: background .12s;
}
.nav__dropdown li a:hover { background: var(--surface); text-decoration: none; }
.nav__dropdown .drop-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
}

.nav__actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}
.nav__hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .2s;
}

/* ── Hero ── */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
}
.hero__eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero p   { font-size: 1.125rem; max-width: 560px; margin: 0 auto 2.25rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Plugin cards (home) ── */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.plugin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.plugin-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--plugin-grad);
}
.plugin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plugin-card__icon { width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 12px; }
.plugin-card__name { font-size: 1.0625rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.plugin-card__desc { font-size: .9rem; margin-bottom: 1.25rem; flex: 1; }
.plugin-card__links { display: flex; gap: .75rem; flex-wrap: wrap; }
.plugin-card__links a { font-size: .875rem; font-weight: 600; }
.plugin-card__links .link-wp {
    color: var(--text-muted);
    display: flex; align-items: center; gap: .3rem;
}
.plugin-card__links .link-wp:hover { color: var(--brand); }

/* ── Why section ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.why-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.why-tile__icon {
    width: 44px; height: 44px;
    background: var(--brand-light);
    border-radius: 10px;
    margin: 0 auto .875rem;
    display: flex; align-items: center; justify-content: center;
}
.why-tile__icon svg { width: 22px; height: 22px; }
.why-tile h3 { font-size: 1rem; margin-bottom: .35rem; }
.why-tile p  { font-size: .875rem; }

/* ── Section heading ── */
.section-heading { text-align: center; margin-bottom: 1rem; }
.section-heading p { margin-top: .5rem; font-size: 1.0625rem; }

/* ── Plugin page hero ── */
.plugin-hero {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--border);
}
.plugin-hero__inner { display: flex; align-items: center; gap: 2.5rem; }
.plugin-hero__icon  { width: 80px; height: 80px; border-radius: 20px; flex-shrink: 0; }
.plugin-hero__text  { flex: 1; }
.grad-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: .875rem;
    background: var(--plugin-grad);
}
.plugin-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.plugin-hero p  { font-size: 1.0625rem; margin-bottom: 1.5rem; max-width: 560px; }

/* ── Features grid (plugin page) ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
}
.feature-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--brand-light);
}
.feature-icon svg { width: 20px; height: 20px; color: var(--brand); }
.feature-text h3  { font-size: 1rem; margin-bottom: .25rem; }
.feature-text p   { font-size: .9rem; }

/* ── How it works ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    counter-reset: steps;
}
.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}
.step-number {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    border: 2px solid;
    border-radius: 8px;
    padding: .2rem .6rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.step-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.step-card p  { font-size: .9rem; }

/* ── Compatible with ── */
.compat-list { display: flex; flex-wrap: wrap; gap: .625rem; }
.compat-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .4rem .875rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
}
.compat-badge svg { color: #16a34a; flex-shrink: 0; }

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .75rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item[open] { border-color: #d8b4fe; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: .9875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--surface); }
.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.25rem 1.1rem; border-top: 1px solid var(--border); }
.faq-answer p { font-size: .9375rem; padding-top: .875rem; color: var(--text-muted); }

/* ── Requirements ── */
.requirements {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.req-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
}
.req-badge svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ── CTA banner ── */
.cta-banner {
    background: var(--plugin-grad);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1.0625rem; }
.btn-white {
    background: #fff;
    color: var(--text);
    border: none;
    font-weight: 700;
}
.btn-white:hover { background: rgba(255,255,255,.9); text-decoration: none; }

/* ── Contact ── */
.contact-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .65rem .875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.notice {
    padding: .875rem 1.125rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    font-weight: 500;
}
.notice--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.notice--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    background: var(--surface);
}
.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.footer__brand p {
    font-size: .875rem;
    margin-top: .4rem;
    max-width: 260px;
}
.footer__logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .875rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--brand); }
.footer__col h4 { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: .75rem; }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer__bottom p, .footer__bottom span { font-size: .8125rem; color: var(--text-muted); }
.footer__pro-note {
    font-size: .8125rem;
    color: var(--brand);
    background: var(--brand-light);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .plugin-grid  { grid-template-columns: 1fr; }
    .why-grid     { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid   { grid-template-columns: repeat(2, 1fr); }
    .plugin-hero__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .nav__links, .nav__actions .btn { display: none; }
    .nav__hamburger { display: flex; }

    body.nav-open .nav__links {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 64px 0 0 0;
        background: #fff;
        padding: 1.5rem;
        gap: 0;
        overflow-y: auto;
        z-index: 99;
        border-top: 1px solid var(--border);
    }
    body.nav-open .nav__links a { padding: .875rem 0; border-bottom: 1px solid var(--border); }
    body.nav-open .nav__dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
    }
    body.nav-open .nav__dropdown li a { padding: .6rem 0; border-bottom: none; }

    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .why-grid   { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .cta-banner { padding: 2rem 1.5rem; }
    .requirements { flex-direction: column; }
}
