:root {
    --ink: #111827;
    --muted: #647084;
    --line: #dde5f2;
    --paper: #f5f7fb;
    --white: #ffffff;
    --cyan: var(--secondary, #13b8d8);
    --green: var(--accent, #16a673);
    --amber: #f6b13d;
    --purple: var(--primary, #6d5efc);
    --deep: #14102a;
    --deep-2: #251d4a;
    --danger: #dc3f4d;
    --shadow: 0 24px 70px rgba(17, 24, 39, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fbfcff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 5vw, 76px);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(221, 229, 242, .78);
    box-shadow: 0 12px 34px rgba(17, 24, 39, .05);
    backdrop-filter: blur(16px);
}
.brand, .site-header nav, .hero-actions, .contact-points { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 800; letter-spacing: 0; }
.brand-logo {
    display: block;
    width: min(198px, 58vw);
    height: auto;
}
.brand-mark-img {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ink), var(--purple));
}
.site-header nav a { color: var(--muted); font-weight: 700; font-size: 14px; }
.site-header nav a:hover { color: var(--ink); }
.nav-cta {
    color: white !important;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--purple), #33245f);
    box-shadow: 0 10px 26px rgba(109, 94, 252, .24);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: clamp(58px, 7vw, 92px) clamp(20px, 5vw, 76px) clamp(54px, 7vw, 86px);
    background:
        linear-gradient(120deg, rgba(109, 94, 252, .20), transparent 36%),
        linear-gradient(315deg, rgba(19, 184, 216, .14), transparent 38%),
        radial-gradient(circle at 76% 30%, rgba(246, 177, 61, .14), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f8faff 46%, #f0f3ff 100%);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -34% 42%;
    height: 55%;
    z-index: -1;
    background: linear-gradient(90deg, rgba(109, 94, 252, .12), rgba(19, 184, 216, .16));
    clip-path: polygon(12% 0, 100% 22%, 86% 100%, 0 74%);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(40px, 4.4vw, 62px);
    line-height: 1;
    letter-spacing: 0;
}
h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.2; }
.hero-copy p, .section-heading p, .split-section p, .contact-section p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}
.hero-copy p { font-size: clamp(18px, 1.6vw, 21px); }
.button {
    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;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary {
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--deep));
    box-shadow: 0 16px 34px rgba(109, 94, 252, .28);
}
.secondary { color: var(--ink); background: rgba(255, 255, 255, .8); border-color: var(--line); }
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 720px;
}
.hero-metrics div {
    padding: 15px;
    border: 1px solid rgba(109, 94, 252, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
}
.hero-metrics strong {
    display: block;
    color: var(--purple);
    font-size: 13px;
}
.hero-metrics span {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.hero-workspace {
    transform: rotate(-1.2deg);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(247, 249, 255, .94));
    box-shadow: 0 38px 100px rgba(32, 25, 69, .22);
    overflow: hidden;
    animation: floatCard 7s ease-in-out infinite;
}
.workspace-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}
.workspace-toolbar div { display: flex; gap: 8px; }
.workspace-toolbar span { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); }
.workspace-toolbar span:nth-child(2) { background: var(--green); }
.workspace-toolbar span:nth-child(3) { background: var(--amber); }
.workspace-toolbar strong { color: var(--muted); font-size: 13px; }
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 205px;
    gap: 1px;
    background: var(--line);
}
.workspace-main, .workspace-side { background: white; padding: 20px; }
.pipeline-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.pipeline-head strong { color: var(--green); }
.pipeline-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.pipeline-row:last-child { border-bottom: 0; }
.pipeline-row span, .workspace-side span { color: var(--muted); font-weight: 700; }
.pipeline-row strong {
    color: var(--purple);
    font-size: 13px;
}
.workspace-side { display: grid; gap: 14px; }
.workspace-side div {
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(109, 94, 252, .09), rgba(19, 184, 216, .08)),
        var(--paper);
}
.workspace-side strong {
    display: block;
    font-size: 26px;
    line-height: 1;
}
.workspace-footer {
    padding: 18px 20px;
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--ink));
    font-weight: 900;
}
.compact-hero { min-height: auto; }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 22px clamp(20px, 5vw, 76px);
    background: var(--deep);
    border-block: 1px solid rgba(255, 255, 255, .08);
}
.trust-strip span {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.section, .split-section, .contact-section { padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 76px); }
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
    gap: 28px;
    align-items: end;
    max-width: 1180px;
    margin-bottom: 34px;
}
.section-heading .eyebrow, .section-heading h2 { grid-column: 1; }
.section-heading p { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 4px; }
.muted {
    background:
        linear-gradient(180deg, #f7f8ff, #eef3fb),
        var(--paper);
}
.service-grid, .process-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.service-card, .process-grid article, .testimonial-grid figure, .contact-form, details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.service-card {
    position: relative;
    min-height: 260px;
    padding: 28px 28px 76px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(17, 24, 39, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--cyan), var(--green));
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 94, 252, .32);
    box-shadow: var(--shadow);
}
.service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    color: white;
    border-radius: 8px;
    background: var(--cyan);
    font-weight: 900;
}
.service-card:nth-child(3n+2) .service-icon { background: var(--green); }
.service-card:nth-child(3n) .service-icon { background: var(--purple); }
.service-card p, .process-grid p, .testimonial-grid blockquote, details p { color: var(--muted); }
.service-meta {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.service-meta span { color: var(--purple); }

.split-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
    background: #ffffff;
}
.about-copy { display: grid; gap: 26px; }
.about-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.about-panel div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
}
.about-panel strong { display: block; margin-bottom: 6px; }
.about-panel span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.process-grid { counter-reset: step; }
.process-grid article {
    position: relative;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 250, 255, .98));
    box-shadow: 0 16px 44px rgba(17, 24, 39, .06);
}
.process-grid article::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), transparent);
}
.process-grid article:last-child::after { display: none; }
.process-grid span { display: block; margin-bottom: 24px; color: var(--purple); font-size: 34px; font-weight: 900; }
.testimonial-grid figure { margin: 0; padding: 26px; }
.testimonial-grid figcaption { margin-top: 18px; font-weight: 800; }
.testimonial-grid figcaption span { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.faq-list { display: grid; gap: 12px; max-width: 940px; }
details { padding: 20px 22px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; }

.contact-section {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(28px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(109, 94, 252, .26), transparent 38%),
        linear-gradient(315deg, rgba(19, 184, 216, .16), transparent 34%),
        var(--deep);
    color: white;
    overflow: hidden;
}
.contact-section::before {
    content: "";
    position: absolute;
    inset: 10% 0 auto auto;
    width: 42%;
    height: 76%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    transform: skewX(-10deg);
}
.contact-section p, .contact-section .eyebrow { color: rgba(255, 255, 255, .78); }
.contact-section .eyebrow::before { background: rgba(255, 255, 255, .7); }
.contact-points { flex-wrap: wrap; color: rgba(255, 255, 255, .85); font-weight: 700; }
.contact-points span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}
.contact-benefits {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    max-width: 520px;
}
.contact-benefits div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
}
.contact-benefits strong { color: white; }
.contact-benefits span { color: rgba(255, 255, 255, .76); }
.contact-form {
    padding: 26px;
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
}
input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(109, 94, 252, .16);
    border-color: var(--purple);
}
.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
textarea { resize: vertical; }
.notice { margin-bottom: 14px; padding: 12px; border-radius: 8px; background: rgba(22, 166, 115, .12); color: var(--green); font-weight: 800; }
.notice.error { background: rgba(220, 63, 77, .12); color: var(--danger); }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(20px, 5vw, 76px);
    color: var(--muted);
    background: white;
    border-top: 1px solid var(--line);
}
.site-footer p { margin: 4px 0 0; }
.site-footer div:last-child { display: grid; justify-items: end; gap: 4px; }
.text-link { color: var(--purple); font-weight: 800; }
.rich-text { max-width: 900px; color: var(--muted); font-size: 18px; }
.no-pad { padding: 0; }

@keyframes floatCard {
    0%, 100% { transform: rotate(-1.2deg) translateY(0); }
    50% { transform: rotate(-.3deg) translateY(-10px); }
}

@media (max-width: 900px) {
    .hero, .split-section, .contact-section { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .service-grid, .process-grid, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid article::after { display: none; }
}
@media (max-width: 640px) {
    .site-header { align-items: flex-start; flex-direction: column; padding-block: 12px; }
    .site-header nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .hero { min-height: auto; }
    .hero-workspace { transform: none; animation: none; }
    .workspace-grid, .hero-metrics, .about-panel, .form-row, .service-grid, .process-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .contact-benefits div { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    .site-footer div:last-child { justify-items: start; }
}

.admin-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7f8fc 0%, #eef2f9 100%);
    font-size: 14px;
    overflow-x: hidden;
}
.admin-body h1, .admin-body h2, .admin-body h3 { font-weight: 700; }
.admin-body .eyebrow { color: var(--purple); font-weight: 700; }
.admin-body label, .login-body label { font-weight: 600; }
.admin-body input, .admin-body textarea, .admin-body select,
.login-body input, .login-body textarea, .login-body select {
    font-weight: 500;
}
.admin-body .button, .login-body .button { font-weight: 650; }
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px;
    background:
        linear-gradient(180deg, rgba(109, 94, 252, .18), transparent 32%),
        linear-gradient(180deg, #17122f, #0f172a);
    color: white;
    box-shadow: 18px 0 48px rgba(15, 23, 42, .14);
    overflow-y: auto;
}
.admin-brand {
    display: flex;
    align-items: center;
    padding: 4px 6px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.admin-brand .brand-logo { width: 188px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar nav a {
    position: relative;
    padding: 9px 11px 9px 17px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    font-weight: 560;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-sidebar nav a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(140, 124, 255, .72);
    transform: translateY(-50%);
}
.admin-sidebar nav a:hover {
    color: white;
    background: rgba(255, 255, 255, .09);
    transform: translateX(2px);
}
.admin-sidebar .secondary {
    width: 100%;
    margin-top: auto;
    color: white;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: none;
}
.admin-main {
    min-width: 0;
    max-width: 1420px;
    margin-left: 260px;
    padding: 34px clamp(26px, 4vw, 54px) 44px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.admin-header h1, .login-card h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.admin-stats article, .admin-panel, .admin-form, .admin-table {
    border: 1px solid rgba(221, 229, 242, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 38px rgba(17, 24, 39, .06);
}
.admin-stats article {
    position: relative;
    padding: 18px 18px 20px;
    overflow: hidden;
}
.admin-stats article::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.admin-stats strong {
    display: block;
    color: var(--deep);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}
.admin-stats span, .table-row span, .message-row span, .message-row small {
    color: var(--muted);
    font-weight: 500;
}
.admin-panel, .admin-form { padding: 24px 26px; }
.admin-panel h2 { font-size: 24px; margin-bottom: 18px; }
.admin-table { overflow: hidden; }
.table-row, .message-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    transition: background .18s ease;
}
.table-row:hover, .message-row:hover { background: transparent; }
.table-row:last-child, .message-row:last-child { border-bottom: 0; }
.table-row span { display: block; max-width: 760px; }
.table-row a, .message-row, .admin-panel a { color: var(--purple); font-weight: 650; }
.table-row button {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}
.message-row {
    grid-template-columns: minmax(180px, .6fr) minmax(260px, 1fr) auto;
    color: var(--ink);
}
.message-row strong { font-weight: 650; }
.check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
}
.check input { width: auto; }
.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(109, 94, 252, .18), transparent 38%),
        linear-gradient(315deg, rgba(37, 194, 227, .15), transparent 35%),
        #f5f6fb;
}
.login-card {
    width: min(460px, 100%);
    padding: 30px;
    border: 1px solid rgba(221, 229, 242, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 80px rgba(23, 18, 47, .14);
}
.login-card .brand { margin-bottom: 24px; }
.login-card .brand-logo { width: min(230px, 100%); }
.login-card .button { width: 100%; }

@media (max-width: 900px) {
    .admin-sidebar {
        position: static;
        width: auto;
        height: auto;
    }
    .admin-main { margin-left: 0; }
    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .table-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .admin-stats, .admin-sidebar nav { grid-template-columns: 1fr; }
    .admin-main { padding: 22px 16px; }
    .message-row { grid-template-columns: 1fr; }
}
