:root {
    --bg: #f4f8ff;
    --bg-elevated: #ffffff;
    --border: #dbe6f7;
    --text: #10233f;
    --text-dim: #5c7291;
    --accent: #2563eb;
    --accent-2: #0891d1;
    --radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
nav.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.brand .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: inline-block;
}

nav.top a.cta {
    background: var(--accent);
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

nav.top a.lang-switch {
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 7px 13px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

nav.top a.lang-switch:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Hero */
.hero {
    padding: 72px 0 56px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 18px;
}

.hero .actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 40px 0 64px;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.card .icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

/* Section headings */
section h2 {
    font-size: 26px;
    margin: 0 0 6px;
}

section .lede {
    color: var(--text-dim);
    margin: 0 0 28px;
}

/* Demo sites */
.sites {
    padding: 8px 0 72px;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.site-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.site-card .tag {
    align-self: flex-start;
    background: rgba(91, 140, 255, 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.site-card h4 { margin: 0; font-size: 16px; }
.site-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; flex: 1; }
.site-card a.open { font-size: 13px; color: var(--accent-2); text-decoration: none; font-weight: 600; }

.empty {
    color: var(--text-dim);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

/* Admin */
.admin-shell { min-height: 100vh; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.admin-header a.logout {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
}

.login-box {
    max-width: 360px;
    margin: 12vh auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
}

.login-box h1 { font-size: 20px; margin: 0 0 4px; }
.login-box p.hint { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }

label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin: 14px 0 6px;
}

input[type=text], input[type=password], input[type=url], textarea, select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 70px; }

button, input[type=submit] {
    cursor: pointer;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 18px;
}

.error {
    background: rgba(214, 69, 69, 0.08);
    border: 1px solid rgba(214, 69, 69, 0.3);
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.success {
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.3);
    color: #0e7490;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel .lede { color: var(--text-dim); font-size: 13px; margin: 0 0 4px; }

table { width: 100%; border-collapse: collapse; margin-top: 6px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.actions { text-align: right; }
td.actions a { color: #b91c1c; text-decoration: none; font-size: 13px; }
