:root {
--bg: #f6f5fb;
--card: #ffffff;
--border: #e6e4f0;
--text: #1f1b2e;
--muted: #6b6580;
--accent: #6d4de6;
--accent-dark: #5636c9;
--accent-soft: #efeaff;
--good: #1a8f5e;
--good-bg: #e7f7ef;
--bad: #c23b3b;
--bad-bg: #fdecec;
--warn: #b8860b;
--warn-bg: #fdf5e3;
--radius: 14px;
--radius-lg: 20px;
--shadow-sm: 0 1px 2px rgba(31,27,46,.06), 0 1px 1px rgba(31,27,46,.04);
--shadow-md: 0 6px 16px -4px rgba(31,27,46,.12), 0 2px 6px -2px rgba(31,27,46,.06);
--shadow-lg: 0 20px 44px -12px rgba(31,27,46,.18);
--shadow-accent: 0 10px 24px -8px rgba(109,77,230,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- top nav ---- */
.nav {
background: rgba(255,255,255,.85);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 50;
}
.nav-inner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 0;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 800;
font-size: 16.5px;
color: var(--text);
letter-spacing: -0.01em;
}
.brand-mark {
width: 32px; height: 32px; border-radius: 9px;
background: linear-gradient(135deg, var(--accent), var(--accent-dark));
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 14px; font-weight: 800;
flex-shrink: 0;
box-shadow: var(--shadow-accent);
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- buttons ---- */
.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 18px; border-radius: 9px; border: 1px solid transparent;
font-size: 14px; font-weight: 600; cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(109,77,230,.5); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #faf9ff; text-decoration: none; transform: translateY(-1px); border-color: #d8d4ea; }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: #f3caca; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.hero-actions .btn, .final-cta .btn { padding: 13px 26px; font-size: 15.5px; border-radius: 10px; }

/* ---- cards / layout ---- */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
margin-bottom: 20px;
box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; font-size: 17px; }
.muted { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
width: 100%; padding: 10px 12px; border-radius: 8px;
border: 1px solid var(--border); font-size: 14px; font-family: inherit;
background: #fff; color: var(--text);
transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-narrow { max-width: 420px; margin: 60px auto; }

/* ---- alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-success { background: var(--good-bg); color: var(--good); }

/* ---- key / code display ---- */
.keybox {
display: flex; align-items: center; gap: 10px;
background: #faf9ff; border: 1px solid var(--border); border-radius: 8px;
padding: 12px 14px; font-family: Consolas, Monaco, monospace; font-size: 15px;
letter-spacing: 0.5px; word-break: break-all;
}

/* ---- badges ---- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-active, .badge-online { background: var(--good-bg); color: var(--good); }
.badge-disabled, .badge-offline { background: var(--bad-bg); color: var(--bad); }
.badge-pro { background: var(--accent-soft); color: var(--accent-dark); }
.badge-standard { background: #eef0f4; color: var(--muted); }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }

/* ---- hero (marketing home) ---- */
.hero { text-align: center; padding: 88px 20px 64px; position: relative; }
.hero::before {
content: "";
position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
width: 640px; height: 420px; max-width: 90vw;
background: radial-gradient(ellipse at center, var(--accent-soft) 0%, rgba(239,234,255,0) 70%);
z-index: -1; pointer-events: none;
}
.hero .eyebrow {
display: inline-block; color: var(--accent-dark); background: var(--accent-soft);
padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
letter-spacing: 0.02em; margin-bottom: 20px;
}
.hero h1 {
font-size: clamp(32px, 5.2vw, 54px);
line-height: 1.1;
letter-spacing: -0.02em;
margin: 0 auto 18px;
max-width: 820px;
overflow-wrap: break-word;
font-weight: 800;
}
.hero p { color: var(--muted); font-size: 17.5px; max-width: 620px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #ddd8ef; }
.feature h3 { margin-top: 0; font-size: 15.5px; margin-bottom: 6px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 13.5px; margin-bottom: 0; }
.feature-icon {
width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark);
display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; }

footer { color: var(--muted); font-size: 13px; padding: 56px 0 28px; border-top: 1px solid var(--border); margin-top: 56px; background: #faf9ff; }

.inline-form { display: inline; }

/* ---- marketing sections ---- */
.section-title { font-size: 28px; text-align: center; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.section-subtitle { color: var(--muted); text-align: center; margin: 0 0 36px; font-size: 15.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-n {
width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px;
box-shadow: var(--shadow-accent);
}
.step h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 700; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.pricing-card-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.pricing-card-featured::before {
content: "MOST POPULAR";
position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-accent); white-space: nowrap;
}
.pricing-card .price { font-size: 24px; font-weight: 800; margin: 6px 0 4px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; }
.check-list li::before {
content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%;
background: var(--good-bg);
box-shadow: inset 0 0 0 1px var(--good);
}
.check-list li::after {
content: "\2713"; position: absolute; left: 2.5px; top: 5.5px; color: var(--good); font-size: 10px; font-weight: 700;
}

.intro-band {
max-width: 760px; margin: 0 auto 64px; text-align: center;
}
.intro-band .section-title { margin-bottom: 16px; }
.intro-text { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0; }
.intro-text strong { color: var(--text); }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
padding: 18px 22px; margin-bottom: 12px; transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:hover { border-color: #ddd8ef; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 18px; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0 18px; line-height: 1.65; }

.final-cta {
text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
color: #fff; border-radius: var(--radius-lg); padding: 60px 24px; margin: 64px 0 20px;
box-shadow: var(--shadow-lg);
}
.final-cta h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; }
.final-cta p { margin: 0 0 26px; opacity: 0.92; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 24px -8px rgba(0,0,0,.25); }
.final-cta .btn-primary:hover { background: #f3f1ff; }

/* ---- generic content pages (Privacy Policy, Terms, Features, etc.) ---- */
.page-header { padding: 48px 0 10px; text-align: center; }
.page-header h1 { font-size: 36px; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.prose { max-width: 740px; margin-left: auto; margin-right: auto; padding: 34px 38px; }
.prose h2 { font-size: 20px; margin: 32px 0 12px; font-weight: 700; padding-left: 14px; border-left: 3px solid var(--accent); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 22px 0 8px; font-weight: 700; }
.prose p { margin: 0 0 15px; font-size: 15.5px; line-height: 1.75; color: #363047; }
.prose ul, .prose ol { margin: 0 0 15px; padding-left: 22px; }
.prose li { margin-bottom: 7px; font-size: 15.5px; line-height: 1.7; }
.prose a { text-decoration: underline; }
@media (max-width: 600px) { .prose { padding: 26px 20px; } }

/* ---- footer ---- */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 0 0 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent-dark); text-decoration: none; }
.footer-brand .brand { margin-bottom: 2px; }

/* ---- 404 ---- */
.not-found { text-align: center; padding: 80px 20px; }
.not-found-code { font-size: 72px; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.not-found h1 { margin: 8px 0 6px; font-size: 24px; }

/* ---- admin sub-nav ---- */
.admin-subnav { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.admin-subnav-link { padding: 10px 4px; margin-right: 18px; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.admin-subnav-link:hover { color: var(--text); text-decoration: none; }
.admin-subnav-active { color: var(--accent-dark); border-bottom-color: var(--accent); }
 .nav-links a.btn, .nav-links a.btn:hover { color: #fff; font-weight: 600; } .nav-links a.btn-primary { background: var(--accent); }