/* Intellecta Plugin Portal — brand stylesheet.
   White background, charcoal type, Intellecta magenta→purple accent (from the logo). */

:root {
    --ink:      #15181e;
    --ink-soft: #2b313c;
    --muted:    #5f6b7a;
    --line:     #e7e9ee;
    --bg:       #ffffff;
    --bg-soft:  #f7f8fa;
    --brand-1:  #e0218a;  /* magenta */
    --brand-2:  #6a2c91;  /* purple  */
    --brand-grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
    --ok:       #1f9d55;
    --radius:   14px;
    --shadow:   0 10px 30px rgba(20,24,30,.08);
    --maxw:     1160px;
    --font:     system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(224,33,138,.28); }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-light   { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand-logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--brand-2); text-decoration: none; }
.nav .btn { padding: 9px 20px; }

/* ---- Hero ---- */
.hero {
    position: relative;
    background: #0d0f13 center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.7) 42%, rgba(8,9,12,.25) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 96px 24px; max-width: var(--maxw); }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #e8eaef; margin-bottom: 1.6em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em;
    font-size: .76rem; font-weight: 700; color: #fff;
    background: var(--brand-grad); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.bg-soft { background: var(--bg-soft); }

/* ---- Plugin grid ---- */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) { .plugin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plugin-grid { grid-template-columns: 1fr; } }

.plugin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.plugin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.plugin-card .thumb { aspect-ratio: 1 / 1; background: #000; }
.plugin-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.plugin-card h3 { margin-bottom: 6px; }
.plugin-card .tagline { color: var(--muted); font-size: .98rem; flex: 1; }
.plugin-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

.badge-free {
    display: inline-block; font-weight: 700; font-size: .8rem;
    color: var(--ok); background: rgba(31,157,85,.12);
    padding: 4px 12px; border-radius: 999px;
}
.badge-soon {
    display: inline-block; font-weight: 700; font-size: .8rem;
    color: var(--muted); background: var(--bg-soft);
    padding: 4px 12px; border-radius: 999px;
}
.plugin-card.soon { opacity: .85; }
.plugin-card.soon .thumb {
    background: var(--brand-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem; text-align: center; padding: 24px;
}

/* ---- Plugin detail ---- */
.plugin-hero { background: #0d0f13; color: #fff; }
.plugin-hero .wrap { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; padding: 64px 24px; }
@media (max-width: 760px) { .plugin-hero .wrap { grid-template-columns: 1fr; } }
.plugin-hero .art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.plugin-hero h1 { color: #fff; }
.plugin-hero .tagline { font-size: 1.2rem; color: #e8eaef; }
.meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin: 18px 0 26px; color: #cdd2db; font-size: .95rem; }
.meta-row strong { color: #fff; }

.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .feature-cols { grid-template-columns: 1fr; } }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.feature-card h3 { display: flex; align-items: center; gap: 10px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list > li { padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list > li:first-child { border-top: 0; padding-top: 0; }
.feature-list h4 { margin: 0 0 6px; font-size: 1.02rem; }
.feature-list ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }

.note {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-left: 4px solid var(--brand-1);
    border-radius: 10px; padding: 16px 20px; margin: 0 0 8px;
}

.req-list { columns: 2; gap: 30px; }
@media (max-width: 600px) { .req-list { columns: 1; } }
.req-list li { margin-bottom: 8px; }

/* ---- Version history ---- */
.versions { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.version-row { display: grid; grid-template-columns: 110px 130px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: baseline; }
.version-row:first-child { border-top: 0; }
.version-row .v { font-weight: 800; color: var(--brand-2); }
.version-row .d { color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) { .version-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---- CTA band ---- */
.cta-band { background: var(--brand-grad); color: #fff; border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fbe6f2; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: 12px; }
.price-card .price-amount { font-size: 2rem; font-weight: 800; color: var(--ink); }
.price-card .price-amount span { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.price-card form, .price-card > a.btn { margin-top: auto; }
.price-card p { margin: 12px 0 18px; }

/* ---- Account ---- */
.acct-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; background: #fff; }
.acct-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acct-meta { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0; color: var(--muted); font-size: .95rem; }
.acct-meta strong { color: var(--ink); }
.keybox { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.keybox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); word-break: break-all; }
.lstat { display:inline-block; font-size:.78rem; font-weight:700; padding:4px 12px; border-radius:999px; }
.lstat-active { color: var(--ok); background: rgba(31,157,85,.12); }
.lstat-expired, .lstat-cancelled, .lstat-disabled { color:#b3261e; background:#fdecea; }
.sites-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.avail-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-top:1px solid var(--line); flex-wrap: wrap; }
.avail-row:first-child { border-top:0; }
.acct-panel { border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:#fff; }

/* ---- Footer ---- */
.site-footer { background: #0d0f13; color: #aeb6c2; padding: 56px 0 40px; }
.site-footer a { color: #e7e9ee; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.site-footer .brand-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .92; }
.footer-legal { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .9rem; color: #7c8492; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
