/* Habinix — liquid glass design system (light edition).
   Brand: Navy #0B2545, Steel Grey #8A94A6, Light Silver #D9DEE4, Charcoal #1A1A1A. Montserrat + Inter.
   Frosted white glass over a soft sky-blue light field; navy type for strong contrast. */
:root {
  --navy: #0B2545;
  --ink: #13294a;
  --body: #2c3e5c;
  --muted: #51627e;
  --steel: #6b7a93;
  --silver: #D9DEE4;
  --white: #ffffff;
  --blue: #1f5fbf;
  --sky: #3d8ee6;

  --glass-line: rgba(255, 255, 255, 0.85);
  --edge: rgba(11, 37, 69, 0.08);
  --blur: blur(22px) saturate(180%);
  --shadow: 0 1px 1px rgba(11,37,69,.04), 0 18px 44px -18px rgba(31,72,140,.28);

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-4: clamp(2.2rem, 4.4vw, 3.4rem);
  --step-5: clamp(2.6rem, 6.2vw, 5rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #eef4fc; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: transparent;
  color: var(--body); font-family: var(--f-text); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Living background: soft sky light field ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #e6f0fd 0%, #f4f8fe 45%, #e9f1fb 100%); }
.scene .orb { position: absolute; border-radius: 50%; filter: blur(50px); }
.scene .o1 { width: 50vw; height: 50vw; left: -14vw; top: -14vw; background: radial-gradient(circle, rgba(92,160,255,.55) 0%, rgba(92,160,255,0) 62%); }
.scene .o2 { width: 44vw; height: 44vw; right: -12vw; top: 10vh; background: radial-gradient(circle, rgba(120,214,240,.55) 0%, rgba(120,214,240,0) 62%); }
.scene .o3 { width: 56vw; height: 56vw; left: 22vw; bottom: -30vw; background: radial-gradient(circle, rgba(160,150,255,.45) 0%, rgba(160,150,255,0) 62%); }
.scene .o4 { width: 32vw; height: 32vw; left: 36vw; top: 30vh; background: radial-gradient(circle, rgba(86,140,230,.28) 0%, rgba(86,140,230,0) 62%); }
.scene .grain { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  .scene .o1 { animation: drift1 26s ease-in-out infinite alternate; }
  .scene .o2 { animation: drift2 32s ease-in-out infinite alternate; }
  .scene .o3 { animation: drift3 38s ease-in-out infinite alternate; }
  .scene .o4 { animation: drift2 44s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.1); } }
  @keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(.92); } }
  @keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.08); } }
}

/* ---------- Glass material (frosted white) ---------- */
.glass {
  position: relative;
  background: linear-gradient(150deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0.62) 100%);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(11,37,69,0.04), var(--shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.2) 40%, rgba(130,170,230,0.25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 14px; z-index: 30; padding: 0 var(--gutter); }
.bar { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.16em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--f-display); font-weight: 500; font-size: 0.93rem; color: var(--body); text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--navy); background: rgba(31,95,191,0.08); }
.nav a[aria-current="page"] { color: var(--navy); background: rgba(31,95,191,0.12); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: rgba(255,255,255,0.7); border: 1px solid var(--edge); border-radius: 999px; padding: 9px 16px; font: 600 0.9rem var(--f-display); color: var(--navy); cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .bar { flex-wrap: wrap; border-radius: 26px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; padding: 13px 24px; border-radius: 999px; text-decoration: none; color: var(--white) !important; background: linear-gradient(180deg, #1f4f8f 0%, var(--navy) 100%); border: 1px solid rgba(11,37,69,0.9); box-shadow: 0 10px 24px -10px rgba(11,37,69,0.6), inset 0 1px 0 rgba(255,255,255,0.25); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(11,37,69,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn.ghost { color: var(--navy) !important; background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.95); box-shadow: inset 0 1px 0 #fff, 0 6px 18px -10px rgba(31,72,140,0.35); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn.ghost:hover { background: rgba(255,255,255,0.92); }

/* ---------- Scroll reveal (both directions) ---------- */
.js .reveal { opacity: 0; transform: translateY(46px) scale(.965); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .8s ease; transition-delay: calc(var(--i, 0) * 90ms); will-change: transform, opacity; }
.js .reveal[data-from="above"] { transform: translateY(-46px) scale(.965); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal[data-from="above"] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; background: linear-gradient(180deg, #0B2545 30%, #2b5fa6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--body); margin: 26px 0 36px; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .tagline { margin-top: 40px; font-family: var(--f-display); font-weight: 600; font-size: var(--step--1); color: var(--steel); letter-spacing: 0.08em; }
.stage { position: relative; padding: 26px; }
.stage .drawing { width: 100%; height: auto; color: var(--navy); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px rgba(61,142,230,.7); }
.chip.c1 { top: -18px; left: 8%; }
.chip.c2 { bottom: -18px; right: 10%; }
.chip.c3 { top: 42%; right: -14px; }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: float 6s ease-in-out infinite; }
  .chip.c2 { animation-delay: -2s; } .chip.c3 { animation-delay: -4s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
.drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.5; }
.drawing .thin { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; }
.drawing .dim { fill: none; stroke: var(--steel); stroke-width: 1; }
.drawing .fillbar { fill: rgba(31,95,191,.14); }
.drawing .acc { fill: none; stroke: var(--sky); stroke-width: 1.8; }
.drawing .dot { fill: var(--sky); }
.drawing .screen { fill: rgba(255,255,255,.75); }
.drawing text { font-family: var(--f-text); font-size: 12px; fill: var(--steel); }
.drawing text.lbl { fill: var(--navy); font-family: var(--f-display); font-weight: 600; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 1.8s cubic-bezier(.6,.05,.25,1) forwards; animation-delay: calc(var(--d, 0s) + .3s); }
  .drawing .appear { opacity: 0; animation: appear .7s ease forwards; animation-delay: calc(var(--d, 1.2s) + .3s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { max-width: 560px; }
  .chip.c3 { right: 6px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.head p { color: var(--body); margin: 0; }
.head .more { justify-self: start; margin-top: 18px; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 18px; }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.g3, .grid.g2, .grid.g4 { grid-template-columns: 1fr; } }

.card { padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .3s; }
a.card:hover { transform: translateY(-4px); background: linear-gradient(150deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 100%); box-shadow: inset 0 1px 0 #fff, 0 26px 50px -20px rgba(31,72,140,.4); }
.card p { margin: 0; color: var(--body); }
.card .icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #3d8ee6 0%, #1f4f8f 100%); box-shadow: 0 8px 18px -8px rgba(31,95,191,.7), inset 0 1px 0 rgba(255,255,255,0.4); margin-bottom: 6px; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.8rem; font-weight: 500; color: var(--navy); background: rgba(31,95,191,0.08); border: 1px solid rgba(31,95,191,0.14); border-radius: 999px; padding: 4px 11px; }
.card .go { margin-top: auto; padding-top: 8px; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--blue); }

.product .kind { font-size: var(--step--1); color: var(--steel); font-weight: 500; }
.product h3 { font-size: var(--step-2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; color: var(--navy); margin-top: auto; padding-top: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.status.soon::before { background: var(--sky); box-shadow: 0 0 8px rgba(61,142,230,.8); }
.status.live::before { background: #1fa971; box-shadow: 0 0 8px rgba(31,169,113,.7); }
.mono { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--white); background: linear-gradient(145deg, #2b6fc9 0%, #0B2545 100%); box-shadow: 0 10px 22px -10px rgba(11,37,69,.7), inset 0 1px 0 rgba(255,255,255,0.35); margin-bottom: 8px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps .num::before { content: counter(s, decimal-leading-zero); }
.num { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; background: linear-gradient(180deg, #2b6fc9, rgba(43,111,201,0.35)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { padding: 11px 18px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--navy); }

/* CTA: the one dark navy panel, for contrast */
.cta { padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; overflow: hidden;
  background: linear-gradient(135deg, #0B2545 0%, #17407a 100%) !important; border-color: rgba(255,255,255,0.25) !important; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(120,190,255,0.45), transparent 70%); pointer-events: none; }
.cta h2 { max-width: 18ch; color: var(--white); }
.cta p { color: rgba(226,236,250,0.85); margin: 12px 0 0; }
.cta .btn { color: var(--navy) !important; background: linear-gradient(180deg, #ffffff, #e3ebf5); border-color: #fff; position: relative; z-index: 1; }

.page-head { padding: clamp(56px, 9vw, 110px) 0 clamp(16px, 3vw, 32px); }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; background: linear-gradient(180deg, #0B2545 30%, #2b5fa6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { font-size: var(--step-1); color: var(--body); margin: 18px 0 0; max-width: 54ch; }
.crumbs { font-size: var(--step--1); color: var(--steel); margin: 0 0 16px; }

.panel { padding: clamp(26px, 4vw, 48px); }
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin: 1.8em 0 .6em; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.meta { color: var(--steel); font-size: var(--step--1); }
.note { border-radius: var(--r-sm); background: rgba(61,142,230,0.1); border: 1px solid rgba(61,142,230,0.3); padding: 16px 20px; margin: 18px 0; }
.note p:last-child { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
.facts dt { font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.facts dd { margin: 0; color: var(--body); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--edge); }
.list li:last-child { border-bottom: 0; }
.list strong { display: block; font-family: var(--f-display); color: var(--navy); margin-bottom: 3px; }
.list span { color: var(--body); }
.list a { color: var(--blue); text-decoration: none; font-weight: 600; }
.list a:hover { text-decoration: underline; }

.contact-card { padding: 26px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.contact-card strong { font-family: var(--f-display); font-size: 1.1rem; color: var(--navy); }
.contact-card span { color: var(--body); }
.contact-card em { font-style: normal; color: var(--blue); font-weight: 600; margin-top: 8px; }

/* Footer: deep navy glass to anchor the page */
.site-footer { margin-top: 40px; padding: 0 var(--gutter) 24px; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(11,37,69,0.94) 0%, rgba(19,52,98,0.9) 100%) !important; border-color: rgba(255,255,255,0.18) !important; }
.foot::before { opacity: .35; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--white); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot a { color: rgba(217,226,238,0.85); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot p, .foot address { color: rgba(217,226,238,0.78); font-style: normal; font-size: 0.95rem; }
.foot .brand { margin-bottom: 14px; color: var(--white); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: var(--step--1); color: rgba(217,226,238,0.7); }
.legal a { margin-left: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.notfound { min-height: 56vh; display: flex; align-items: center; }
