:root {
    --bg: #f3f8ff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --line-soft: #e7eef8;
    --primary: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 24px;
    --shadow: 0 22px 60px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .16), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 45%, #f8fbff 100%);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }

.site-header {
    width: min(1220px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 12px;
    z-index: 50;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #22d3ee);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(14, 165, 233, .28);
}
.brand-text { letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #334155;
    font-weight: 750;
    font-size: 14px;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.login-link { font-weight: 800; color: #0f172a; }
.login-link:hover { color: var(--primary-dark); }
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 900;
}
.nav-button:hover { background: var(--primary); color: #fff; }

.container, .section, .hero, .quick-menu, .trust-grid, .cta-section, .page-wrap, .checkout-wrap, .auth-wrap, .site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero {
    margin-top: 28px;
    padding: clamp(34px, 6vw, 72px);
    min-height: 520px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    align-items: center;
    gap: 36px;
    background:
        radial-gradient(circle at 88% 8%, rgba(125, 211, 252, .5), transparent 28%),
        linear-gradient(135deg, #07233f 0%, #075985 48%, #0ea5e9 100%);
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: -160px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.hero-copy, .hero-panel, .hero-card { position: relative; z-index: 1; min-width: 0; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 12px;
}
.hero .eyebrow { color: #bae6fd; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6.2vw, 70px);
    line-height: .98;
    letter-spacing: -.06em;
}
.hero p:not(.eyebrow) {
    max-width: 700px;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-points span {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #eff6ff;
    font-weight: 800;
    font-size: 13px;
}
.server-card, .hero-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(14px);
}
.server-top { display: flex; gap: 8px; margin-bottom: 24px; }
.server-dot { width: 12px; height: 12px; border-radius: 50%; background: #7dd3fc; }
.server-card h3 { margin: 0 0 10px; font-size: 26px; }
.server-card p, .hero-card small { color: #e0f2fe; line-height: 1.7; }
.server-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.server-stats div { padding: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; }
.server-stats strong { display: block; color: #fff; font-size: 30px; line-height: 1; }
.server-stats span { display: block; color: #dbeafe; margin-top: 7px; font-size: 13px; }

.btn, button.btn, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover, button.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 16px 36px rgba(14, 165, 233, .24); }
.hero .btn-primary { background: #fff; color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); border: 1px solid #bae6fd; }
.hero .btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-muted { background: #eef6ff; color: #0369a1; }
.full { width: 100%; }

.quick-menu, .trust-grid { display: grid; gap: 16px; }
.quick-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.quick-menu a, .trust-grid div, .feature-card, .process-list > div, .card, .checkout-summary, .checkout-form-card, .auth-card, .table-card, .success-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}
.quick-menu a { padding: 20px; }
.quick-menu strong, .trust-grid strong { display: block; margin-bottom: 6px; color: var(--text); }
.quick-menu span, .trust-grid span, .muted { color: var(--muted); line-height: 1.7; }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
.trust-grid div { padding: 20px; }

.section { margin-top: 72px; margin-bottom: 72px; }
.section-heading { margin-bottom: 28px; }
.section-heading.center { max-width: 840px; text-align: center; margin-left: auto; margin-right: auto; }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin: 16px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.section-heading p:not(.eyebrow), .group-heading p { color: var(--muted); line-height: 1.75; }

.product-group-section { margin-top: 62px; scroll-margin-top: 110px; }
.group-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #eff6ff, #fff);
}
.group-heading h2 { margin: 7px 0 10px; }
.group-badge { flex: 0 0 auto; padding: 10px 15px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 900; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    position: relative;
    overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), #22c55e); }
.price-card-top { min-height: 130px; }
.tag { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 900; }
.price { margin: 0; color: var(--primary-dark); font-weight: 900; font-size: 28px; letter-spacing: -.04em; }
.price.big { font-size: 42px; margin: 14px 0; }
.features { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; color: #334155; flex: 1; }
.features li { position: relative; padding-left: 24px; line-height: 1.5; }
.features li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); position: absolute; left: 0; top: .55em; }
.features.compact { margin-bottom: 0; }

.feature-section { padding-top: 72px; padding-bottom: 72px; background: rgba(255,255,255,.42); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.feature-grid, .process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.feature-card, .process-list > div { padding: 24px; }
.feature-card span, .process-list span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; }
.feature-card p, .process-list p { color: var(--muted); line-height: 1.7; }
.process-list > div { border-left: 4px solid var(--primary); }
.process-list span { border-radius: 50%; background: #0f172a; color: #fff; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 36px; align-items: start; }
.faq-list { display: grid; gap: 14px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }

.cta-section {
    margin-top: 40px;
    margin-bottom: 42px;
    padding: 36px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a, #075985);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}
.cta-section h2 { color: #fff; margin: 6px 0 12px; }
.cta-section p:not(.eyebrow) { color: #dbeafe; }
.site-footer { margin-top: 44px; margin-bottom: 26px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.site-footer strong { display: block; color: var(--text); margin-bottom: 4px; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--primary-dark); font-weight: 800; }

.alert { padding: 18px 20px; border-radius: 18px; border: 1px solid #fed7aa; background: #fff7ed; color: #7c2d12; margin-bottom: 22px; }
.alert p { margin: 7px 0 0; }
.alert.danger, .alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.success { background: #ecfdf5; border-color: #bbf7d0; color: #065f46; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
code { background: rgba(2, 6, 23, .08); padding: 2px 6px; border-radius: 7px; }

.page-wrap { margin-top: 34px; margin-bottom: 80px; }
.page-hero { padding: 30px; margin-bottom: 22px; border-radius: 28px; background: linear-gradient(135deg, #eff6ff, #fff); border: 1px solid var(--line); }
.page-hero h1 { color: var(--text); font-size: clamp(32px, 4.8vw, 52px); margin-bottom: 10px; }
.page-hero p { color: var(--muted); line-height: 1.7; }
.checkout-wrap { margin-top: 34px; margin-bottom: 80px; display: grid; grid-template-columns: .86fr 1.14fr; gap: 22px; align-items: start; }
.checkout-summary, .checkout-form-card, .auth-card, .success-card { padding: 28px; }
.checkout-summary { position: sticky; top: 100px; }
.checkout-form-card h2, .auth-card h1, .success-card h1 { margin-top: 0; }
.form, .auth-card form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #334155; font-weight: 800; }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}
textarea { padding-top: 12px; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, .12); }
.two-cols, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.advanced-fields { background: #f8fafc; }
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; margin-top: 34px; margin-bottom: 80px; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card.wide { max-width: 820px; }
.form-note { text-align: center; color: var(--muted); margin-bottom: 0; }
.form-note a { color: var(--primary-dark); font-weight: 900; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: 42px; font-weight: 900; }
.center-card { text-align: center; max-width: 760px; margin: 0 auto; }
.center-actions { justify-content: center; }

.table-card { overflow: hidden; }
.table-title { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: #e5e7eb; color: #374151; }
.small { font-size: 13px; padding: 8px 12px; }
.top-flash { margin: 6px 0 0; font-size: 14px; }
.top-flash.success { color: #047857; }
.top-flash.error { color: #b91c1c; }

@media (max-width: 1040px) {
    .site-header { align-items: flex-start; flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
    .hero, .checkout-wrap, .faq { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .quick-menu, .trust-grid, .feature-grid, .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site-header, .container, .section, .hero, .quick-menu, .trust-grid, .cta-section, .page-wrap, .checkout-wrap, .auth-wrap, .site-footer { width: min(100% - 24px, 1180px); }
    .header-actions { width: 100%; justify-content: space-between; }
    .hero { padding: 30px 22px; min-height: auto; }
    .quick-menu, .trust-grid, .feature-grid, .process-list, .pricing-grid, .two-cols, .form-grid { grid-template-columns: 1fr; }
    .group-heading, .cta-section, .site-footer { flex-direction: column; align-items: flex-start; }
    .site-footer nav { flex-direction: column; gap: 8px; }
    .price-card { min-height: auto; }
    .data-table { min-width: 720px; }
    .table-card { overflow-x: auto; }
}

/* Client services & invoice pages */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card, .side-card, .payment-confirm-card, .empty-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 45px rgba(15, 23, 42, .055); }
.service-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card h2 { font-size: 26px; margin: 0; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list div { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(0, 1.35fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list dt { color: var(--muted); font-weight: 800; }
.detail-list dd { margin: 0; font-weight: 900; color: var(--text); overflow-wrap: anywhere; }
.compact-list div { grid-template-columns: 110px 1fr; padding: 10px 0; }
.card-actions, .stack-actions { display: grid; gap: 10px; margin-top: auto; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-body { padding: 24px; display: grid; gap: 16px; justify-items: start; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.filter-tabs a { padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 900; text-decoration: none; }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.detail-card { overflow: hidden; }
.side-card { padding: 24px; position: sticky; top: 100px; }
.side-card h3 { margin-top: 0; }
.slim-hero { padding-top: 24px; padding-bottom: 24px; }
.invoice-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.invoice-summary-box { min-width: 230px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: right; }
.invoice-summary-box strong { display: block; margin: 12px 0 4px; color: var(--primary-dark); font-size: 30px; letter-spacing: -.04em; }
.invoice-summary-box small { color: var(--muted); font-weight: 800; }
.payment-confirm-card { max-width: 760px; margin: 0 auto; padding: 30px; display: grid; gap: 22px; }
.payment-confirm-card h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 10px; }
@media (max-width: 1040px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .invoice-hero { flex-direction: column; align-items: flex-start; }
    .invoice-summary-box { width: 100%; text-align: left; }
}
@media (max-width: 700px) {
    .service-grid { grid-template-columns: 1fr; }
    .detail-list div, .compact-list div { grid-template-columns: 1fr; gap: 4px; }
    .table-actions { min-width: 180px; }
}

/* OS select helper */
.form-help {
    display: block;
    margin-top: 8px;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.5;
}
