:root {
    --navy-950: #180f2b;
    --navy-800: #2a1e45;
    --navy-100: #c9c2e0;
    --teal: #00a8a8;
    --teal-tint: #e3f5f5;
    --pink: #fc3c6c;
    --pink-tint: #ffe7ec;
    --orange: #fc9c30;
    --orange-tint: #fff0de;
    --blue: #3da5d9;
    --blue-tint: #e4f3fa;
    --purple: #9b72cf;
    --purple-tint: #f1e9fa;
    --gold: #e3a857;
    --gold-tint: #fbf0df;
    --bg: #f7f6f9;
    --bg-soft: #efedf5;
    --white: #ffffff;
    --ink: #1c1730;
    --muted: #6b6478;
    --line: #e4e1ec;
    --shadow: 0 20px 50px rgba(24, 15, 43, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 246, 249, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(24, 15, 43, .08);
}
.header-inner, .footer-grid, .hero-grid, .split, .founders-grid, .contact-grid, .blog-layout {
    display: grid;
    gap: 28px;
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy-950); letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.main-nav { display: none; gap: 18px; align-items: center; font-weight: 700; color: var(--navy-950); }
.admin-menu-link {
    opacity: .7;
    font-size: .94rem;
}
.main-nav.is-open {
    display: grid;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.nav-toggle {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--navy-950);
    font-weight: 800;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}
.btn-primary { background: var(--navy-950); color: var(--white); box-shadow: 0 12px 24px rgba(24, 15, 43, .24); }
.btn-outline { border-color: var(--navy-950); color: var(--navy-950); background: rgba(255,255,255,.5); }
.btn-small { min-height: 40px; padding: 9px 14px; }
.full { width: 100%; }

.hero {
    padding: 66px 0 52px;
    background:
        radial-gradient(circle at top right, rgba(0, 168, 168, .16), transparent 40%),
        radial-gradient(circle at bottom left, rgba(252, 60, 108, .10), transparent 45%),
        linear-gradient(135deg, var(--bg), var(--bg-soft));
}
.hero-grid { align-items: center; }
.hero h1, .page-hero h1 { font-size: clamp(2.3rem, 8vw, 4.8rem); line-height: .98; margin: 14px 0 18px; letter-spacing: -.04em; color: var(--navy-950); }
.hero p, .page-hero p { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.eyebrow { display: inline-flex; color: var(--teal); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.gold { color: var(--gold); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-panel { display: grid; place-items: center; }
.phone-shot {
    width: min(300px, 100%);
    border-radius: 32px;
    overflow: hidden;
    background: var(--navy-950);
    box-shadow: var(--shadow);
    border: 8px solid var(--navy-950);
}
.phone-shot img { display: block; width: 100%; }

.section { padding: 68px 0; }
.soft { background: var(--bg-soft); }
.split { grid-template-columns: 1fr; align-items: start; }
.section h2, .founders h2 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.08; color: var(--navy-950); margin: 8px 0 14px; letter-spacing: -.03em; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.steps, .cards, .pricing { display: grid; gap: 16px; }
.steps article, .card, .pricing article, .contact-box, .post-card, .detail-card, .message-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(24, 15, 43, .06);
}
.steps span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--accent-tint, var(--teal-tint)); color: var(--accent, var(--teal)); font-weight: 900; }
.card h3, .steps h3, .pricing h3 { margin-bottom: 6px; color: var(--navy-950); }
.card { border-top: 4px solid var(--accent, var(--teal)); }

.accent-teal   { --accent: var(--teal);   --accent-tint: var(--teal-tint); }
.accent-pink   { --accent: var(--pink);   --accent-tint: var(--pink-tint); }
.accent-orange { --accent: var(--orange); --accent-tint: var(--orange-tint); }
.accent-blue   { --accent: var(--blue);   --accent-tint: var(--blue-tint); }
.accent-purple { --accent: var(--purple); --accent-tint: var(--purple-tint); }
.accent-gold   { --accent: var(--gold);   --accent-tint: var(--gold-tint); }

.founders { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.founders h2, .founders h3 { color: var(--white); }
.founders p, .founders li { color: var(--navy-100); }
.founder-lists { display: grid; gap: 12px; margin-top: 22px; }
.founder-lists > div { border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 18px; background: rgba(255,255,255,.05); }
.form-card, .login-card, .admin-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
    color: var(--ink);
}
.form-card h3, .form-card h2 { margin-top: 0; color: var(--navy-950); }
label { display: grid; gap: 7px; font-weight: 800; color: var(--navy-950); margin-bottom: 14px; }
.field-hint {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}
.field-hint.loading { color: var(--teal); }
.field-hint.success-text { color: #11603f; }
.field-hint.error-text { color: #9e2222; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 46px;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: #fbfafd;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-center { margin: 0 auto; }
.form-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 600; }
.form-check input { width: auto; min-height: auto; margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 800; }
.success { background: #ddf7ea; color: #11603f; }
.error { background: #ffe5e5; color: #9e2222; }

.pricing article strong { display: block; color: var(--navy-950); font-size: 1.7rem; margin: 8px 0; }
.pricing .featured { border-color: var(--gold); box-shadow: 0 18px 40px rgba(227,168,87,.18); }
.page-hero { padding: 58px 0; background: linear-gradient(135deg, var(--bg-soft), var(--bg)); }
.content { font-size: 1.05rem; }
.legal-content h2 {
    font-size: 1.45rem;
    margin-top: 30px;
    margin-bottom: 10px;
}
.legal-content p {
    color: var(--muted);
}
.legal-content a {
    color: var(--navy-950);
    font-weight: 800;
}
.contact-grid { grid-template-columns: 1fr; }
.blog-layout { grid-template-columns: 1fr; align-items: start; }
.blog-sidebar { background: var(--navy-950); color: var(--white); border-radius: 8px; padding: 20px; display: grid; gap: 10px; }
.blog-sidebar h2 { color: var(--white); font-size: 1.2rem; margin: 0; }
.post-list { display: grid; gap: 18px; }
.post-card {
    display: grid;
    gap: 18px;
    position: relative;
    overflow: hidden;
}
.post-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--teal), var(--pink), var(--orange));
}
.post-card.no-image {
    display: block;
    padding: 30px;
}
.post-card h2 {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 10px 0 12px;
    color: var(--navy-950);
}
.post-card p {
    max-width: 760px;
    color: var(--muted);
    margin: 0 0 16px;
}
.post-card img, .featured-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; }
.post-meta { color: var(--teal); font-size: .88rem; font-weight: 800; }
.read-more { color: var(--navy-950); font-weight: 900; }

.site-footer { padding: 46px 0 24px; background: var(--navy-950); color: var(--white); }
.footer-grid { grid-template-columns: 1fr; }
.footer-brand { color: var(--white); }
.site-footer p { color: var(--navy-100); max-width: 480px; }
.site-footer nav { display: grid; gap: 10px; color: var(--navy-100); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: var(--navy-100); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, var(--bg-soft), var(--bg)); }
.login-card { width: min(420px, 100%); }
.login-card img { width: 96px; margin: 0 auto 12px; }
.admin-body { background: #f6f5fa; }
.admin-sidebar { background: var(--navy-950); color: var(--white); padding: 18px; }
.admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.admin-sidebar a { color: var(--white); font-weight: 800; }
.admin-main { padding: 22px; }
.admin-title-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.admin-subtitle { margin: 6px 0 0; color: var(--muted); }
.admin-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-cards article { background: var(--white); border-radius: 8px; padding: 22px; border: 1px solid var(--line); }
.admin-cards article.highlight { border-color: var(--gold); box-shadow: 0 14px 32px rgba(227,168,87,.16); }
.admin-cards strong { display: block; font-size: 2rem; color: var(--navy-950); }
.admin-quick-actions {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 24px;
}
.quick-action {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(24, 15, 43, .06);
}
.quick-action span {
    color: var(--teal);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.quick-action strong {
    color: var(--navy-950);
    font-size: 1.2rem;
    line-height: 1.2;
}
.quick-action.primary {
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
    border-color: var(--navy-800);
}
.quick-action.primary span { color: var(--navy-100); }
.quick-action.primary strong { color: var(--white); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy-950); background: var(--bg-soft); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions button, .actions a { border: 0; background: transparent; color: var(--navy-950); font: inherit; font-weight: 900; cursor: pointer; padding: 0; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--teal-tint); color: var(--teal); font-size: .82rem; font-weight: 900; }
.back-link { color: var(--navy-950); font-weight: 900; }
.admin-form { max-width: 820px; margin-top: 14px; }
.admin-form.compact { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
.message-list { display: grid; gap: 14px; }
.message-card.unread { border-color: var(--gold); }

@media (min-width: 760px) {
    .main-nav { display: flex; }
    .nav-toggle { display: none; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; }
    .hero-actions { flex-direction: row; }
    .split { grid-template-columns: .9fr 1.1fr; }
    .steps, .pricing { grid-template-columns: repeat(4, 1fr); }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .founders-grid { grid-template-columns: 1fr .85fr; align-items: start; }
    .founder-lists, .form-row, .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout { grid-template-columns: 250px 1fr; }
    .post-card.has-image { grid-template-columns: 220px 1fr; }
    .post-card.no-image { grid-template-columns: 1fr; }
    .admin-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
    .admin-sidebar { min-height: 100vh; position: sticky; top: 0; align-self: start; }
    .admin-sidebar nav { display: grid; }
    .admin-main { padding: 34px; }
    .admin-form.compact { grid-template-columns: 1fr auto; }
}
