/* RaB Technologies — light design.
   Brand colours come from the logo emblem (teal -> sky -> indigo). */
:root {
    --ink: #0b1220;
    --ink-2: #334155;
    --muted: #5b6678;
    --line: #e3e8ef;
    --bg: #ffffff;
    --soft: #f5f7fb;
    --brand: #4361ee;
    --brand-dark: #3149c9;
    --sky: #0097d6;
    --teal: #00a99d;
    --brand-tint: #eef1fe;
    --grad: linear-gradient(120deg, #00a99d 0%, #0097d6 45%, #4361ee 100%);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px -12px rgba(11, 18, 32, .18);
    --shadow-lg: 0 30px 60px -30px rgba(11, 18, 32, .35);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .15s; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .6em 1.05em; font-size: .92rem; border-radius: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand-dot { color: var(--teal); }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
    .site-nav .btn { margin: 8px 0 0; }
}

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, #e9efff 0%, rgba(233, 239, 255, 0) 60%), radial-gradient(800px 400px at -10% 10%, #e6f8f6 0%, rgba(230, 248, 246, 0) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 8px; }
.hero-visual { position: relative; min-height: 420px; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ec; }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.hero-visual .browser-a { position: relative; width: 92%; z-index: 1; }
.hero-visual .browser-b { position: absolute; width: 62%; right: 0; bottom: -28px; z-index: 2; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { min-height: 0; margin-top: 8px; } .hero-visual .browser-b { width: 58%; bottom: -24px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: #c9d3f8; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* Work / products */
.work-item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.work-item:first-of-type { border-top: 0; padding-top: 0; }
.work-item.flip .work-media { order: 2; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); }
.pill.teal { background: #e3f6f4; color: #007a71; }
.work-item ul.checks { padding: 0; margin: 18px 0; list-style: none; display: grid; gap: 8px; }
.work-item ul.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.work-item ul.checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 900px) { .work-item { grid-template-columns: 1fr; gap: 28px; } .work-item.flip .work-media { order: 0; } }
.work-item[id] { scroll-margin-top: 96px; }
.card.included { padding: 36px; }
.card.included ul.checks { margin-bottom: 0; }
.product-cards .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-cards .card img { border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.product-cards .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-cards .card-body p { flex: 1; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--sky); font-size: .9rem; margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tech logos */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; margin: 0; list-style: none; }
.tech li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.tech img { width: 22px; height: 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; background: var(--grad); filter: blur(80px); opacity: .45; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #c8d0dc; margin: 0; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* Page header (inner pages) */
.page-hero { padding: 64px 0 40px; background: radial-gradient(900px 360px at 90% -20%, #e9efff 0%, rgba(233, 239, 255, 0) 60%); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 680px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Prose (legal pages) */
.prose { max-width: 780px; color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .95rem; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(67, 97, 238, .12); }
.field .error { color: #c0262d; font-size: .88rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.notice-ok { background: #e3f6f4; color: #00665e; border: 1px solid #b6e6e1; }
.notice-err { background: #fdecec; color: #a3242a; border: 1px solid #f6c7c9; }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 20px; }
.contact-card h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 96px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 14px; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .95rem; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--brand); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: .85rem; color: var(--muted); }
.footer-legal p { margin: 0 0 4px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-col:last-child { grid-column: 1 / -1; } }

/* About */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* 404 */
.not-found { text-align: center; padding: 120px 0 40px; }
.not-found .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; margin-bottom: 10px; }
