/* Emdepi Technologies — light, modern software-company look in the BillDine azure family.
   Fonts are self-hosted (SIL Open Font License, assets/fonts/OFL-LICENSE.txt): nothing loads from another site. */

@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light;
  --azure: #0A6BBF;
  --azure-600: #085699;
  --azure-400: #2B8FE3;
  --sky: #3DB4FF;
  --cyan: #22D3EE;
  --sun: #FFC83D;
  --ink: #0B1F35;
  --ink-2: #33485A;
  --muted: #5B6F82;
  --line: #D9E8F6;
  --line-2: #E8F1FA;
  --bg: #FFFFFF;
  --bg-2: #F5FAFF;
  --bg-3: #EAF4FD;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 20px 50px -20px rgba(10, 107, 191, .28);
  --shadow-sm: 0 6px 18px -8px rgba(10, 107, 191, .25);
  --radius: 22px;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad: linear-gradient(120deg, var(--azure) 0%, var(--azure-400) 45%, var(--cyan) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--azure); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--azure-600); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark .mark-bg { fill: var(--azure); }
.mark .mark-fg { fill: #fff; }
.mark .mark-accent { fill: var(--sun); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm1 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--ink); letter-spacing: -.01em; }
.wm2 { font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--azure); margin-top: 2px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.nav a:hover { color: var(--azure); background: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--azure); box-shadow: var(--shadow-sm); }

/* ---------- buttons, pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-billdine { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px rgba(10, 107, 191, .6); }
.btn-primary:hover, .btn-billdine:hover { color: #fff; box-shadow: 0 16px 34px -10px rgba(10, 107, 191, .7); }
.btn-ghost { background: #fff; color: var(--azure); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--azure-400); color: var(--azure-600); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 800; letter-spacing: .02em; color: var(--azure-600); background: var(--bg-3); border: 1px solid var(--line); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--azure); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- hero with soft aurora + grid ---------- */
.hero, .page-head { position: relative; isolation: isolate; overflow: hidden; }
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 80%); }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 16s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; left: 55%; top: 0; background: #9FD3FF; }
.aurora span:nth-child(2) { width: 420px; height: 420px; left: 10%; top: 20%; background: #B9F1FA; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 260px; height: 260px; left: 72%; top: 38%; background: #FFE7A8; animation-delay: -11s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .aurora span, .float, .pulse { animation: none !important; } html { scroll-behavior: auto; } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }

/* the "assistant console" visual */
.console { position: relative; margin-bottom: 30px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px; box-shadow: var(--shadow), inset 0 1px 0 #fff; padding: 22px; }
.console-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.console-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console-top b { margin-left: auto; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--azure); }
.msg { border-radius: 16px; padding: 12px 16px; font-size: .95rem; margin-bottom: 12px; max-width: 88%; }
.msg.q { background: var(--bg-3); color: var(--ink); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.a { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg.a strong { color: var(--azure-600); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; font-size: .85rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.float small { display: block; font-weight: 700; color: var(--muted); font-size: .75rem; }
.float.f1 { left: -26px; bottom: -30px; }
.float.f2 { right: -18px; top: -22px; animation-delay: -3s; }
.float img { width: 34px; height: 34px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 2s infinite; flex: none; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- sections & cards ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-2), #fff); border-block: 1px solid var(--line-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(11, 31, 53, .02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C6DDF3; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-dashed { background: transparent; border-style: dashed; border-width: 2px; display: flex; flex-direction: column; justify-content: center; }
.card-dashed:hover { transform: none; box-shadow: none; }
.icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; color: var(--azure); background: linear-gradient(135deg, var(--bg-3), #fff); border: 1px solid var(--line); margin-bottom: 18px; }
.icon-sm { width: 22px; height: 22px; color: var(--azure); flex: none; margin-top: 3px; }

/* product spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, #fff 0%, var(--bg-2) 100%); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.spotlight::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 180, 255, .25), transparent 70%); pointer-events: none; }
.device { position: relative; margin-bottom: 30px; }
.device .tablet { border-radius: 26px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -24px rgba(11, 31, 53, .45); }
.device .tablet img { display: block; border-radius: 16px; width: 100%; }
.device .phone { position: absolute; right: -10px; bottom: -30px; width: 30%; border-radius: 26px; background: var(--ink); padding: 7px; box-shadow: 0 24px 50px -20px rgba(11, 31, 53, .5); }
.device .phone img { display: block; border-radius: 20px; width: 100%; }
.product-logo { display: block; height: 56px; width: auto; margin-bottom: 18px; }
.product-logo-lg { height: 76px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--ink); font-size: .95rem; }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps .card { padding-top: 62px; }
.steps .card::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; left: 28px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 60px); background: var(--grad); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 30px 60px -28px rgba(10, 107, 191, .7); }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .94; margin: 0; }
.cta a:not(.btn) { color: #fff; }
.cta .actions { margin-top: 0; }
.cta .btn-primary { background: #fff; color: var(--azure-600); box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.label { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
address { font-style: normal; }
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--azure-400); box-shadow: 0 0 0 4px rgba(43, 143, 227, .15); }
.hint, .note { font-size: .92rem; color: var(--muted); }
.note { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }

/* details list (about) */
.details { display: grid; margin: 0; }
.details > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.details > div:last-child { border-bottom: 0; }
.details dt { font-weight: 800; color: var(--ink); }
.details dd { margin: 0; }

/* legal prose */
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-name { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.35rem; margin-bottom: 8px; }
.site-footer h2 { font-family: var(--text); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--azure); }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .9rem; }
.legal p { margin: 0; }

/* reveal on scroll (progressive: everything is visible without script) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .spotlight, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float.f1 { left: 8px; } .float.f2 { right: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav ul { width: 100%; justify-content: space-between; }
  .nav a { padding: 0 10px; }
  .header-row { padding: 10px 0; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .float { display: none; }
  .device .phone { width: 34%; }
}

/* small spacing helpers (the site allows no inline styles) */
.mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-22 { margin-top: 22px; }
.pt-24 { padding-top: 24px !important; }
.h2-sm { font-size: 1.7rem; }
