:root {
  --ink: #09244c;
  --blue: #0878f9;
  --blue-dark: #0755b8;
  --sky: #eaf3fc;
  --paper: #f7fbff;
  --line: #d5e1ec;
  --muted: #60738a;
  --good: #137a50;
  --warn: #ad6a08;
  --danger: #b42737;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #65b9ff; outline-offset: 3px; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Landing page */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; border-bottom: 1px solid rgba(255,255,255,.17); color: #fff; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 15px; letter-spacing: .1em; }
.brand small { margin-top: 6px; font-size: 10px; letter-spacing: .16em; opacity: .72; text-transform: uppercase; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 700; }
.site-nav a { opacity: .78; transition: opacity .18s, transform .18s; }
.site-nav a:hover { opacity: 1; transform: translateY(-1px); }
.phone-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 17px; border: 0; background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 14px 32px rgba(0,0,0,.13); transition: transform .16s, box-shadow .16s, background .16s; }
.phone-button:active, .primary-button:active, .form-button:active { transform: scale(.97); }
.primary-button { background: var(--blue); color: #fff; }
.primary-button:hover { background: #1b8cff; box-shadow: 0 18px 42px rgba(0,85,185,.34); transform: translateY(-2px); }
.hero { position: relative; overflow: hidden; padding: 140px 0 78px; color: #fff; background: #0a2447; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 8% 95%, rgba(8,120,249,.48), transparent 37%), linear-gradient(108deg, rgba(9,35,70,.99) 0 50%, rgba(9,35,70,.56) 73%); }
.hero::after { content: ""; position: absolute; left: -62px; bottom: -62px; width: 254px; height: 170px; border: 22px solid rgba(111,183,255,.16); border-right: 0; border-radius: 62px 0 0 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #86c2ff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: block; width: 25px; height: 2px; background: currentColor; }
h1, h2, h3, .font-tech { font-family: ui-rounded, "Avenir Next", "Segoe UI", sans-serif; }
h1 { margin: 0; max-width: 620px; font-size: clamp(3.2rem, 6vw, 5.3rem); line-height: .97; letter-spacing: -.07em; }
h1 em { color: #4caaFF; font-style: normal; }
.hero p:not(.eyebrow) { max-width: 530px; margin: 27px 0 30px; color: rgba(255,255,255,.76); font-size: 1.14rem; line-height: 1.62; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ghost-link { display: inline-flex; padding: 13px 4px; color: #fff; font-size: 14px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 37px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.74); font-size: 14px; }
.hero-stats span { display: inline-flex; gap: 8px; align-items: center; }
.hero-visual { position: relative; min-height: 470px; }
.hero-visual > img { display: block; width: 100%; height: 470px; object-fit: cover; filter: saturate(.76) contrast(1.07); box-shadow: 0 30px 75px rgba(0,0,0,.34); }
.availability { position: absolute; left: -27px; bottom: 28px; display: flex; align-items: center; gap: 13px; min-width: 290px; padding: 16px 18px; color: var(--ink); background: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #1aaf67; box-shadow: 0 0 0 5px rgba(26,175,103,.13); }
.availability small, .availability strong { display: block; }
.availability small { color: var(--muted); }
.availability strong { margin-top: 3px; font-size: 14px; }
.section { position: relative; padding: 104px 0; }
.section-code { color: #73879d; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.section-heading { display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 48px; margin-bottom: 45px; }
.section-heading h2, .process-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.1vw, 3.6rem); line-height: 1; letter-spacing: -.055em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.6; }
.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.service-card { position: relative; min-height: 260px; overflow: hidden; padding: 36px 30px; border-right: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.service-card:last-child { border: 0; }
.service-card:hover { z-index: 1; transform: translateY(-7px); box-shadow: 0 20px 45px rgba(20,61,101,.12); }
.service-number { position: absolute; right: -5px; bottom: -26px; color: #eef4fa; font-size: 7rem; font-weight: 900; letter-spacing: -.1em; line-height: 1; }
.service-tag { position: relative; display: inline-block; padding: 5px 8px; background: #eaf3fc; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { position: relative; margin: 32px 0 12px; font-size: 1.3rem; }
.service-card p { position: relative; margin: 0; color: var(--muted); line-height: 1.55; }
.process { background: var(--sky); }
.process-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 75px; }
.process-images { position: relative; min-height: 470px; }
.process-images .main-image { width: 78%; height: 420px; object-fit: cover; filter: saturate(.72) contrast(1.08); box-shadow: 0 22px 54px rgba(14,49,86,.16); }
.process-images .small-image { position: absolute; right: 0; bottom: 0; width: 49%; height: 220px; object-fit: cover; border: 9px solid var(--sky); filter: saturate(.7); }
.steps { counter-reset: steps; list-style: none; margin: 32px 0; padding: 0; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 52px 1fr; padding: 17px 0; border-bottom: 1px solid #cbdce9; }
.steps li::before { content: "0" counter(steps); color: var(--blue); font-size: 1.5rem; font-weight: 900; letter-spacing: -.08em; }
.steps strong, .steps span { grid-column: 2; }
.steps span { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.contact { overflow: hidden; padding: 91px 0; color: #fff; background: var(--blue); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: start; }
.contact-copy { padding: 10px 0; }
.contact-brand { display: flex; align-items: center; gap: 20px; }
.contact-brand img { width: 70px; height: 70px; object-fit: contain; filter: brightness(0) invert(1); }
.contact-copy h2 { margin: 6px 0 0; font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -.06em; }
.contact-copy p { max-width: 440px; margin: 28px 0; color: rgba(255,255,255,.83); line-height: 1.65; }
.contact-number { display: inline-flex; flex-direction: column; padding: 18px 23px; color: var(--ink); background: #fff; box-shadow: 0 16px 35px rgba(0,50,116,.21); }
.contact-number small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-number strong { margin-top: 4px; font-size: 1.8rem; }
.contact-form { position: relative; padding: 32px; color: var(--ink); background: #fff; box-shadow: 0 25px 56px rgba(0,46,108,.28); }
.contact-form::before { content: ""; position: absolute; top: -1px; right: -1px; width: 45px; height: 45px; border-top: 3px solid #9ccfff; border-right: 3px solid #9ccfff; }
.form-title { margin: 0 0 22px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; color: #37516e; font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #c8d7e5; border-radius: 0; padding: 11px 12px; color: var(--ink); background: #f9fcff; transition: border-color .15s, box-shadow .15s; }
.field input { min-height: 46px; }
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,120,249,.12); }
.honeypot { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.form-button { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; border: 0; color: #fff; background: var(--ink); font-weight: 900; transition: transform .15s, background .15s; }
.form-button:hover:not(:disabled) { background: #11417b; transform: translateY(-2px); }
.notice { min-height: 20px; margin: 12px 0 0; font-size: 14px; line-height: 1.45; }
.notice.success { color: var(--good); }
.notice.error { color: var(--danger); }
.footer { padding: 24px 0; color: rgba(255,255,255,.63); background: #071a33; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }

/* CRM */
.crm-shell { min-height: 100vh; background: #f3f8fc; }
.crm-topbar { position: sticky; top: 0; z-index: 5; color: #fff; background: #09244c; box-shadow: 0 4px 18px rgba(3,22,48,.14); }
.crm-topbar-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; }
.crm-brand { display: flex; align-items: center; gap: 10px; }
.crm-brand img { width: 42px; height: 42px; object-fit: contain; }
.crm-brand small, .crm-brand strong { display: block; line-height: 1; }
.crm-brand small { margin-bottom: 5px; color: #a9ccfa; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.crm-brand strong { font-size: 15px; letter-spacing: .06em; }
.crm-top-actions { display: flex; align-items: center; gap: 12px; }
.user-pill { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5e9ff; font-size: 13px; }
.button-small { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; font-size: 13px; font-weight: 800; }
.button-small:hover { background: rgba(255,255,255,.1); }
.crm-main { padding: 45px 0 70px; }
.crm-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 26px; }
.crm-heading h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); color: var(--ink); }
.crm-heading p { margin: 11px 0 0; color: var(--muted); }
.status-filter { display: grid; gap: 5px; min-width: 190px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.status-filter select { min-height: 40px; border: 1px solid var(--line); padding: 0 10px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 25px; }
.metric { padding: 18px; border-left: 3px solid var(--blue); background: #fff; box-shadow: 0 10px 28px rgba(18,64,105,.07); }
.metric:nth-child(2) { border-left-color: #d59018; }
.metric:nth-child(3) { border-left-color: #7253db; }
.metric:nth-child(4) { border-left-color: #17845a; }
.metric strong { display: block; color: var(--ink); font-size: 1.8rem; line-height: 1; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.crm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 22px; }
.lead-list { display: grid; gap: 10px; }
.lead-row { width: 100%; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(180px, 1.5fr) auto; align-items: center; gap: 16px; padding: 17px 18px; border: 1px solid transparent; text-align: left; color: var(--ink); background: #fff; box-shadow: 0 7px 22px rgba(18,64,105,.06); transition: transform .16s, border-color .16s, box-shadow .16s; }
.lead-row:hover, .lead-row.selected { border-color: #8ac2f8; transform: translateX(3px); box-shadow: 0 12px 28px rgba(18,64,105,.1); }
.lead-row strong { display: block; }
.lead-row small { display: block; margin-top: 5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-message { color: #526780; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; justify-content: center; min-width: 102px; padding: 6px 9px; color: #0a5db8; background: #eaf3fc; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.badge.contacted { color: #9c6105; background: #fff3dd; }
.badge.in_progress { color: #5b3fbd; background: #eeeafe; }
.badge.closed { color: #11744d; background: #e0f5ea; }
.detail-card { position: sticky; top: 92px; padding: 25px; background: #fff; box-shadow: 0 12px 32px rgba(18,64,105,.1); }
.detail-card h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.detail-meta { display: grid; gap: 6px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.detail-message { padding: 14px; color: #344e6b; background: #f3f8fc; line-height: 1.55; white-space: pre-wrap; }
.detail-card .field { margin-top: 18px; }
.save-button { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 47px; margin-top: 6px; border: 0; color: #fff; background: var(--blue); font-weight: 900; }
.save-button:hover:not(:disabled) { background: #176fd2; }
.empty-card, .login-card, .config-card { padding: 34px; background: #fff; box-shadow: 0 13px 35px rgba(18,64,105,.09); }
.empty-card { color: var(--muted); text-align: center; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: linear-gradient(135deg, #08224a, #0d76e9); }
.login-card { width: min(100%, 430px); color: var(--ink); }
.login-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 27px; }
.login-logo img { width: 54px; height: 54px; object-fit: contain; }
.login-card h1 { margin: 0 0 8px; font-size: 2rem; }
.login-card p { color: var(--muted); line-height: 1.5; }
.loading { padding: 70px 20px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { padding-top: 120px; }
  .hero-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { min-height: 380px; }
  .hero-visual > img { height: 380px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .process-images { min-height: 400px; }
  .process-images .main-image { height: 350px; }
  .crm-grid { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-inner { min-height: 70px; }
  .phone-button { display: none; }
  .hero h1 { font-size: 3.3rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .ghost-link { justify-content: center; }
  .availability { left: 16px; right: 16px; bottom: 18px; min-width: auto; }
  .section { padding: 76px 0; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 25px 20px; }
  .footer-inner, .crm-heading, .crm-topbar-inner { align-items: flex-start; flex-direction: column; }
  .crm-topbar-inner { justify-content: center; padding: 12px 0; }
  .crm-top-actions { width: 100%; justify-content: space-between; }
  .crm-main { padding-top: 32px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .lead-row { grid-template-columns: 1fr; gap: 8px; }
  .lead-message { display: none; }
  .badge { justify-self: start; }
}
