:root {
    --blue: #12317d;
    --blue-900: #071b3d;
    --teal: #16b7bd;
    --teal-dark: #087d86;
    --green: #20b86f;
    --orange: #ffad55;
    --ink: #111827;
    --muted: #64748b;
    --line: #d8e3ee;
    --soft: #f4f8fb;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(7, 27, 61, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--muted); line-height: 1.7; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px clamp(18px, 4vw, 64px);
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(216,227,238,.78);
    backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.brand-copy { display: grid; gap: 1px; font-weight: 800; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; color: var(--muted); font-weight: 700; }
.site-nav a { padding: 10px 0; }
.site-nav a.active, .site-nav a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 5px auto; background: var(--blue); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 24px rgba(18,49,125,.2); }
.btn-accent { color: #172033; background: var(--orange); box-shadow: 0 12px 24px rgba(255,173,85,.25); }
.btn-ghost { color: var(--blue); background: #edfafa; }
.btn-outline { color: var(--blue); border: 1px solid var(--line); background: var(--white); }

.hero {
    min-height: calc(100vh - 71px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .9fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: center;
    padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 76px) 54px;
    background: linear-gradient(120deg, #071b3d 0%, #12317d 54%, #087d86 100%);
    color: var(--white);
    overflow: hidden;
}
.hero-copy { max-width: 780px; }
.hero-logo-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: rgba(255,255,255,.88); font-weight: 800; }
.hero-logo-lockup img { width: 54px; height: 54px; object-fit: contain; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 74px); line-height: 1.04; letter-spacing: 0; }
.hero p { max-width: 690px; color: rgba(255,255,255,.82); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.proof-pill { padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.proof-pill strong { display: block; color: var(--white); }
.proof-pill span { color: rgba(255,255,255,.72); font-size: 13px; }

.pos-preview {
    background: rgba(255,255,255,.98);
    color: var(--ink);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.preview-top { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.dot:nth-child(2) { background: var(--green); }
.dot:nth-child(3) { background: var(--teal); }
.preview-grid { display: grid; grid-template-columns: 1fr .8fr; min-height: 390px; }
.product-list, .cart-box { padding: 18px; }
.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: var(--soft); }
.product-tile { min-height: 98px; padding: 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }
.product-tile strong { display: block; margin-bottom: 10px; color: var(--blue); }
.cart-box { border-left: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.total { margin-top: 20px; padding: 18px; border-radius: 8px; background: #e8fbf7; font-size: 22px; font-weight: 800; color: var(--blue); }

.section { padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 76px); }
.section.alt { background: var(--soft); }
.section.dark { color: var(--white); background: var(--blue-900); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark p, .section.dark .lead { color: rgba(255,255,255,.74); }
.section-head { max-width: 820px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--teal-dark); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.section.dark .eyebrow, .hero .eyebrow { color: var(--orange); }
h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; color: var(--blue-900); letter-spacing: 0; }
h3 { margin: 0 0 10px; color: var(--blue); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(7,27,61,.07);
}
.card p { margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #e8fbf7; color: var(--teal-dark); font-weight: 900; margin-bottom: 18px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric { background: var(--white); padding: 28px; }
.metric strong { display: block; font-size: 30px; color: var(--blue); }
.metric span { color: var(--muted); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; }
.content-list { display: grid; gap: 14px; padding: 0; margin: 22px 0; list-style: none; }
.content-list li { padding: 16px; border-left: 4px solid var(--teal); background: rgba(22,183,189,.08); border-radius: 8px; color: var(--muted); }
.feature-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.feature-row + .feature-row { margin-top: 20px; }
.feature-number { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 8px; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--teal)); font-weight: 800; }
.quote { font-size: 18px; color: var(--ink); }
.quote-author { margin-top: 16px; color: var(--blue); font-weight: 800; }

.form-panel {
    max-width: 780px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; margin-bottom: 16px; }
label { font-weight: 800; color: var(--blue); }
input, textarea, select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }

.pricing-card { display: grid; gap: 14px; }
.pricing-card.featured { border-color: var(--teal); box-shadow: 0 20px 44px rgba(22,183,189,.16); }
.plan-badge { justify-self: start; padding: 6px 10px; border-radius: 999px; color: var(--blue); background: #e8fbf7; font-size: 12px; font-weight: 800; }
.price { font-size: 38px; color: var(--blue); font-weight: 800; }
.price small { font-size: 15px; color: var(--muted); }
.check-list { padding: 0; margin: 18px 0; list-style: none; }
.check-list li { padding: 8px 0; color: var(--muted); }
.check-list li:before { content: "+"; color: var(--green); font-weight: 900; margin-right: 8px; }
.calculator-output { padding: 18px; border-radius: 8px; background: #e8fbf7; color: var(--blue); font-size: 22px; font-weight: 800; }

.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { padding: 24px; background: var(--blue-900); color: var(--white); }
.sidebar .brand { color: var(--white); margin-bottom: 22px; }
.sidebar .brand-copy small { color: rgba(255,255,255,.7); }
.sidebar a { display: block; padding: 12px 0; color: rgba(255,255,255,.78); font-weight: 700; }
.sidebar a:hover { color: var(--white); }
.dashboard-main { padding: 34px; background: var(--soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.stack-top { margin-top: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--blue); background: #f1f6fb; }

.flash { margin: 18px clamp(18px, 5vw, 76px) 0; padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.flash.success { background: #eafaf2; color: #09633a; }
.flash.error { background: #fff0ed; color: #9b2c1e; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 30px;
    padding: 46px clamp(18px, 5vw, 76px);
    color: rgba(255,255,255,.75);
    background: var(--blue-900);
}
.footer-brand { color: var(--white); margin-bottom: 12px; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.68); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-weight: 700; color: rgba(255,255,255,.86); }
.newsletter p { margin: 4px 0 12px; color: rgba(255,255,255,.68); }
.newsletter label { color: var(--white); }
.newsletter div { display: flex; gap: 10px; margin-top: 10px; }

.chat-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    gap: 2px;
    min-width: 154px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--teal-dark));
    box-shadow: var(--shadow);
}
.chat-float span { font-size: 12px; color: rgba(255,255,255,.78); }
.chat-float strong { font-size: 14px; }

[data-animate] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .site-header { flex-wrap: wrap; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav, .nav-actions { display: none; width: 100%; }
    .site-nav.open, .nav-actions.open { display: grid; }
    .hero, .split, .grid-2, .dashboard-layout { grid-template-columns: 1fr; }
    .grid-3, .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .brand-copy small { display: none; }
    .hero { min-height: auto; padding-top: 46px; }
    .hero-proof, .preview-grid, .grid-4, .grid-3, .metric-strip { grid-template-columns: 1fr; }
    .hero-actions, .newsletter div { flex-direction: column; }
    .btn { width: 100%; }
    .section, .dashboard-main { padding-left: 16px; padding-right: 16px; }
    .form-panel { padding: 22px; }
    .chat-float { left: 16px; right: 16px; bottom: 12px; min-width: 0; grid-template-columns: auto 1fr; align-items: center; }
}
