:root {
  --navy-950: #060d1a;
  --navy-900: #0b1628;
  --navy-800: #12223b;
  --navy-700: #1c3150;
  --ink: #0f1b2d;
  --body: #3b4a5f;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #00a5b8;          /* logo teal */
  --accent-dark: #0077c0;     /* logo blue */
  --accent-soft: #e3f5f8;
  --warn: #b4540a;
  --danger: #c0392b;
  --ok: #0f8a5f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; font-size: 16px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #0b4f8a; text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: .01em; }
.brand img { height: 46px; width: auto; display: block; }
.brand span b { color: var(--accent); font-weight: 750; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--body); text-decoration: none; font-size: .94rem; font-weight: 550; }
.nav a:hover { color: var(--accent-dark); }
.nav .btn, .nav .btn:hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #fff; color: var(--accent-dark); border: 1px solid #b9dbea; }
.btn-ghost:hover { border-color: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 85% 10%, #dff3f7 0%, transparent 65%), linear-gradient(180deg, #f5fbfd 0%, #ffffff 100%); padding: 72px 0 84px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 640px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 580px; font-size: 1.12rem; }
.hero-logo { justify-self: center; width: min(360px, 100%); filter: drop-shadow(0 18px 30px rgba(0, 119, 192, .18)); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-waves { position: absolute; left: -80px; bottom: -40px; width: 700px; max-width: 80%; opacity: .35; pointer-events: none; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; }
.hero-stats div { font-size: .9rem; color: var(--muted); }
.hero-stats strong { display: block; color: var(--ink); font-size: 1.02rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { width: 220px; order: -1; } }

/* Term chips */
.terms { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.terms span { font-size: .8rem; font-weight: 650; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row .check { flex: 1; min-width: 110px; justify-content: center; }
.radio-row .check:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); color: var(--accent-dark); }
.device-row { display: flex; gap: 8px; margin-bottom: 8px; }
.device-row input { font-family: var(--mono); }
.summary { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }

/* Billing toggle */
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.toggle { display: inline-flex; background: #e9eef5; border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,45,.12); }

/* Product cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .platform { align-self: flex-start; font-size: .75rem; font-weight: 650; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.card p.tagline { color: var(--muted); font-size: .95rem; min-height: 3em; }
.features { list-style: none; padding: 0; margin: 0 0 22px; font-size: .92rem; flex: 1; }
.features li { padding: 6px 0 6px 26px; position: relative; border-top: 1px dashed var(--line); }
.features li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: rotate(-45deg); }
.card .devices { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }

/* Steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 48px; }
.step { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.step p { margin: 0; font-size: .93rem; }

/* Services */
.services { background: var(--navy-900); color: #b7c3d4; }
.services h2, .services h3 { color: #fff; }
.services .lead { color: #93a3b8; }
.services .eyebrow { color: #3cc6d6; }
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.svc { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 26px; }
.svc .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(20,194,176,.12); display: grid; place-items: center; margin-bottom: 16px; }
.svc .icon svg { width: 24px; height: 24px; stroke: #3cc6d6; }
.svc p { font-size: .93rem; }
.svc ul { margin: 0; padding-left: 18px; font-size: .88rem; color: #93a3b8; }
.svc li { margin: 4px 0; }
.env-strip { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.env-strip span { border: 1px solid var(--navy-700); border-radius: 999px; padding: 8px 16px; font-size: .88rem; color: #c6d1e1; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: 11px 13px; border: 1px solid #cfd8e3; border-radius: 9px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(20,194,176,.35); border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-weight: 500; cursor: pointer; margin: 0; }
.check input { width: auto; margin: 0; accent-color: var(--accent-dark); }
.hp { position: absolute; left: -9999px; }
.msg { margin-top: 14px; font-size: .92rem; padding: 10px 14px; border-radius: 9px; display: none; }
.msg.show { display: block; }
.msg.error { background: #fdecea; color: var(--danger); }
.msg.success { background: #e5f6ee; color: var(--ok); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6,13,26,.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
.modal .row { margin-bottom: 14px; }
.modal .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; color: var(--ink); }
.modal .total strong { font-size: 1.5rem; }
.modal .close { float: right; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.small { font-size: .84rem; color: var(--muted); }

/* License key display */
.keybox { font-family: var(--mono); font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: .04em; background: var(--navy-950); color: #fff; padding: 18px 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 20px 0; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge.active { background: #e5f6ee; color: var(--ok); }
.badge.expired { background: #fff3e0; color: var(--warn); }
.badge.revoked { background: #fdecea; color: var(--danger); }
.page { padding: 64px 0 96px; }
.narrow { max-width: 720px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #7f8fa6; font-size: .9rem; padding: 40px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #b7c3d4; text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: #fff; }

/* Admin table */
table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td code { font-family: var(--mono); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

/* Illustrations (replace files in /images with real screenshots or photos any time) */
.card-img { display: block; width: calc(100% + 52px); margin: -26px -26px 18px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--navy-900); }
.svc-img { display: block; width: calc(100% + 52px); margin: -26px -26px 18px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.svc { overflow: hidden; }
.svc .icon { margin-top: -40px; position: relative; background: var(--navy-800); border: 1px solid var(--navy-700); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-box { background: var(--navy-900); color: #b7c3d4; border-radius: var(--radius); padding: 28px; }
.contact-box h3 { color: #fff; }
.contact-box a { color: #3cc6d6; font-weight: 650; font-size: 1.05rem; word-break: break-all; }
