/* ==========================================================================
   WebR Web Design — main stylesheet
   Fluid, responsive dark theme with blue accent.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* App-like behaviour: no double-tap-to-zoom (e.g. double-tapping the menu
   button) and no iOS text auto-resize. Pinch-zoom is disabled via the viewport
   meta + the gesture handler in main.js. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { touch-action: manipulation; }

:root {
    --brand: #4A7CFF;
    --brand-soft: #7EA6FF;
    --bg: #05070E;
    --bg-soft: #0B0F1C;
    --panel: #10152A;
    --panel-2: #151A32;
    --border: rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.16);
    --text: #E9EEFB;
    --muted: #98A0BF;
    --muted-2: #6B7492;
    --success: #4BD68A;
    --warn: #FFC24A;
    --danger: #FF6B7A;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    --shadow-1: 0 6px 20px -8px rgba(0,0,0,.6);
    --shadow-2: 0 20px 60px -20px rgba(0,0,0,.7);
    --shadow-glow: 0 20px 80px -20px rgba(74,124,255,.45);

    --step--1: clamp(.82rem, .78rem + .18vw, .95rem);
    --step-0:  clamp(1rem,   .94rem + .3vw,  1.12rem);
    --step-1:  clamp(1.15rem,1.05rem + .5vw, 1.35rem);
    --step-2:  clamp(1.35rem,1.2rem + .8vw,  1.75rem);
    --step-3:  clamp(1.75rem,1.4rem + 1.6vw, 2.6rem);
    --step-4:  clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);
    --step-5:  clamp(2.8rem, 2rem + 4vw,     5rem);

    --gutter: clamp(1rem, .5rem + 2vw, 2rem);
    --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
    --container: 1200px;

    color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        radial-gradient(1200px 700px at 90% -10%, rgba(74,124,255,.14), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(126,166,255,.10), transparent 60%);
    background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-soft); }

h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1em; color: var(--muted); }
.lede { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }

.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand); color: white; padding: .75rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 600; letter-spacing: -.005em;
    padding: .78rem 1.25rem; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
    font-size: var(--step--1);
}
.btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    color: #05070E;
    box-shadow: 0 12px 30px -12px rgba(74,124,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(74,124,255,.75); color: #05070E; }
.btn-ghost {
    background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-soft); color: var(--brand-soft); }
.btn-sm { padding: .5rem .9rem; font-size: .8rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: var(--step-0); }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5,7,14,.55);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.site-header[data-scroll="1"] { background: rgba(5,7,14,.85); border-bottom-color: var(--border); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: .9rem 0;
}
.brand {
    display: inline-flex; align-items: center; gap: .7rem;
    color: var(--text); font-weight: 700;
}
.brand img { border-radius: 999px; }
.brand-text { font-size: 1.2rem; letter-spacing: -.02em; }
.brand-text em { color: var(--brand); font-style: normal; }
.site-nav ul {
    display: flex; list-style: none; margin: 0; padding: 0; gap: .3rem;
}
.site-nav a {
    display: inline-block; padding: .5rem .9rem; border-radius: 999px;
    color: var(--muted); font-size: .92rem; font-weight: 500;
    transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.site-nav a[aria-current="page"] {
    color: var(--text); background: rgba(74,124,255,.14);
    box-shadow: inset 0 0 0 1px rgba(74,124,255,.35);
}
.header-cta { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; padding: .55rem; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    border-top: 1px solid var(--border);
    background: rgba(5,7,14,.95);
    padding: 1rem var(--gutter);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
    display: block; padding: .8rem 1rem; border-radius: 12px; color: var(--text);
}
.mobile-nav a:hover { background: rgba(255,255,255,.06); }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .menu-toggle { display: inline-block; }
    .header-cta .btn { display: none; }
}
@media (min-width: 901px) {
    .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: clamp(3rem, 1rem + 6vw, 6rem);
    padding-bottom: var(--section-y);
    overflow: hidden;
}
.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 999px; filter: blur(60px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(74,124,255,.55), transparent 65%); }
.orb-2 { width: 380px; height: 380px; left: -100px; top: 40%; background: radial-gradient(circle, rgba(126,166,255,.35), transparent 65%); }
.orb-3 { width: 260px; height: 260px; right: 20%; bottom: -80px; background: radial-gradient(circle, rgba(74,124,255,.28), transparent 65%); }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: 1.15fr 1fr; align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    /* let columns shrink below their content's natural width on small screens */
    .hero-grid > * { min-width: 0; }
}

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand-soft);
    padding: .35rem .8rem; border-radius: 999px;
    background: rgba(74,124,255,.10); border: 1px solid rgba(74,124,255,.28);
}
.hero-title {
    margin: 1rem 0 1.2rem;
    max-width: 15ch;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 40%, rgba(233,238,251,.55));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .grad {
    background: linear-gradient(90deg, var(--brand-soft), var(--brand));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: inline-block;
}
.hero-sub { max-width: 52ch; color: var(--muted); font-size: var(--step-1); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
/* Stats adapt to however many there are: they share the row evenly and
   wrap to a centered line below when they run out of room. */
.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem;
    list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border);
}
.hero-stats li {
    display: flex; flex-direction: column; gap: .2rem;
    flex: 1 1 0; min-width: 110px;
    align-items: center; text-align: center;
}
.hero-stats strong { font-size: var(--step-2); color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: .82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 640px) {
    .hero-stats li { min-width: calc(50% - 1.4rem); }
    /* center the hero on phones */
    .hero-copy { text-align: center; }
    .hero-title, .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
}

/* Mockup window */
.hero-visual { position: relative; }
.mock-window {
    position: relative;
    background: linear-gradient(180deg, #0C1226, #060915);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2), var(--shadow-glow);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-10deg) rotateX(4deg) translateZ(0);
    transition: transform .8s ease;
}
.hero-visual:hover .mock-window { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.mock-chrome {
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1rem;
    background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border);
}
.mock-chrome > span { width: 10px; height: 10px; border-radius: 999px; background: #2a3252; }
.mock-chrome > span:nth-child(1) { background: #FF6B7A; }
.mock-chrome > span:nth-child(2) { background: #FFC24A; }
.mock-chrome > span:nth-child(3) { background: #4BD68A; }
.mock-url { flex: 1; min-width: 0; margin-left: .8rem; background: rgba(255,255,255,.05); padding: .28rem .8rem; border-radius: 999px; font-size: .72rem; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 1.1rem 1.2rem 1.4rem; }
.mock-nav { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.mock-logo { font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 1rem; }
.mock-logo em { color: var(--brand); font-style: normal; }
.mock-links { display: flex; gap: .55rem; margin-left: auto; }
.mock-links span { width: 42px; min-width: 0; flex-shrink: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.mock-btn { width: 78px; height: 24px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-soft)); }
.mock-hero { padding: .4rem 0 1rem; }
.mock-h1 {
    font-size: 1.1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
    max-width: 22ch;
}
.mock-h1 em { color: var(--brand-soft); font-style: normal; }
.mock-sub { margin-top: .6rem; height: 8px; width: 80%; background: rgba(255,255,255,.08); border-radius: 4px; }
.mock-sub::after { content:''; display:block; margin-top:.35rem; height:8px; width:55%; background: rgba(255,255,255,.06); border-radius: 4px; }
.mock-cta { margin-top: .9rem; width: 90px; height: 26px; border-radius: 999px; background: rgba(74,124,255,.85); }
.mock-chart { margin-top: 1rem; border: 1px solid var(--border); border-radius: 12px; padding: .8rem; background: rgba(255,255,255,.02); }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* ---------- Features ---------- */
.features, .process, .testimonials, .service-grid-wrap, .portfolio-wrap, .blog-wrap, .contact-wrap, .team, .split, .faq {
    padding: var(--section-y) 0;
    position: relative;
}
.feature-grid {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.6rem; text-align: center;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(300px 200px at var(--mx,50%) var(--my,0%), rgba(74,124,255,.14), transparent 70%);
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(74,124,255,.35); background: linear-gradient(180deg, rgba(74,124,255,.06), rgba(255,255,255,.01)); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(74,124,255,.25), rgba(74,124,255,.05));
    color: var(--brand-soft);
    margin: 0 auto 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.process-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
}
.process-item {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 1.4rem; position: relative;
}
.process-item::after {
    content: ''; position: absolute; top: 1.4rem; right: -1rem; width: 2rem; height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
    display: none;
}
.process-item:not(:last-child)::after { display: block; }
.process-step {
    display: inline-block; font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--brand-soft); font-size: .82rem; letter-spacing: .1em;
    padding: .25rem .55rem; border-radius: 6px; background: rgba(74,124,255,.1);
    margin-bottom: .8rem;
}
.process-item h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.process-item p { color: var(--muted); margin: 0; }

/* ---------- Admin panel showcase ---------- */
.admin-showcase { padding: var(--section-pad, 5rem) 0; }
.admin-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .admin-showcase-grid { grid-template-columns: 1fr; gap: 2rem; } }
.admin-showcase-copy h2 { font-size: var(--step-3); margin: .4rem 0 .8rem; }
.admin-showcase-copy > p { color: var(--muted); margin: 0 0 1.4rem; max-width: 40ch; }
.admin-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.admin-feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.admin-feature-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.admin-feature-ico svg { width: 20px; height: 20px; }
.admin-feature-list strong { display: block; font-size: 1rem; }
.admin-feature-list em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: .1rem; }
/* realistic, layered admin-panel visual */
.admin-stack { position: relative; padding: 22px 26px 34px 0; }
.admin-win { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--panel); box-shadow: 0 40px 70px -34px rgba(0,0,0,.7); }
.admin-win-chrome { display: flex; align-items: center; gap: .38rem; padding: .5rem .7rem; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--border); }
.admin-win-chrome > span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.admin-win-chrome em { margin-left: .5rem; font-style: normal; font-size: .68rem; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
/* the window sitting behind, angled for depth */
.admin-win-back { position: absolute; top: 0; right: 0; width: 74%; transform: rotate(3deg); opacity: .55; filter: saturate(.7); }
.admin-editor-mini { padding: .8rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.admin-editor-field label { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2, #7a8199); margin-bottom: .25rem; }
.admin-editor-input { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 6px; padding: .45rem .55rem; font-size: .72rem; color: var(--muted); }
.admin-editor-input.tall { padding-bottom: 1.2rem; }
.admin-editor-row { display: flex; gap: .4rem; margin-top: .1rem; }
.admin-chip { font-size: .62rem; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; background: var(--brand); color: #fff; }
.admin-chip.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }
/* the front window: the dashboard */
.admin-win-front { position: relative; z-index: 2; margin-left: 8%; }
.admin-dash { display: grid; grid-template-columns: 118px 1fr; }
.admin-dash-side { background: rgba(0,0,0,.22); border-right: 1px solid var(--border); padding: .7rem .5rem; }
.admin-dash-brand { display: flex; align-items: center; gap: .4rem; padding: .1rem .3rem .7rem; }
.admin-dash-brand i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--brand), var(--brand-soft)); }
.admin-dash-brand b { font-size: .72rem; color: var(--text); }
.admin-dash-navgroup { display: flex; flex-direction: column; gap: .12rem; }
.admin-dash-navgroup a { display: flex; align-items: center; gap: .45rem; padding: .34rem .4rem; border-radius: 6px; font-size: .66rem; color: var(--muted); }
.admin-dash-navgroup a svg { width: 13px; height: 13px; opacity: .8; flex-shrink: 0; }
.admin-dash-navgroup a.is-active { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand-soft); }
.admin-dash-badge { margin-left: auto; font-size: .55rem; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: .04rem .3rem; }
.admin-dash-main { padding: .8rem .9rem; display: flex; flex-direction: column; gap: .7rem; }
.admin-dash-top { display: flex; flex-direction: column; gap: .1rem; }
.admin-dash-crumb { font-size: .55rem; letter-spacing: .12em; color: var(--muted-2, #7a8199); }
.admin-dash-top strong { font-size: .95rem; }
.admin-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.admin-stat { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .55rem; }
.admin-stat-label { display: block; font-size: .55rem; color: var(--muted); margin-bottom: .2rem; }
.admin-stat b { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.admin-stat i { font-style: normal; font-size: .55rem; color: var(--muted-2, #7a8199); margin-left: .25rem; }
.admin-stat i.up { color: #4bd68a; }
.admin-dash-panel { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .6rem; }
.admin-dash-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .3rem; }
.admin-dash-panel-head b { font-size: .7rem; }
.admin-dash-panel-head span { font-size: .55rem; color: var(--muted-2, #7a8199); }
.admin-dash-chart { width: 100%; height: 58px; display: block; }
.admin-dash-activity { display: flex; flex-direction: column; gap: .3rem; }
.admin-act { display: flex; align-items: center; gap: .45rem; font-size: .62rem; color: var(--muted); }
.admin-act i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.admin-act b { color: var(--text); font-weight: 600; }
.admin-act time { margin-left: auto; font-size: .55rem; color: var(--muted-2, #7a8199); }
.admin-toast { position: absolute; bottom: 0; left: -6px; z-index: 3; display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 16px 34px -14px rgba(0,0,0,.65); font-size: .68rem; color: var(--text); }
.admin-toast-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #4bd68a; color: #05231a; }
.admin-toast-check svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .admin-win-back { display: none; } .admin-win-front { margin-left: 0; } .admin-stack { padding: 8px 8px 26px; } }
@media (max-width: 420px) { .admin-dash { grid-template-columns: 92px 1fr; } .admin-dash-navgroup a span { display: none; } }

/* ---------- Testimonials ---------- */
.test-track {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.test-card {
    background: linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.8rem;
    margin: 0;
}
.test-card p { color: var(--text); font-size: var(--step-1); margin: 0 0 1.2rem; }
.test-card footer { display: flex; flex-direction: column; }
.test-card strong { color: var(--text); }
.test-card span { color: var(--muted-2); font-size: .85rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
    padding: var(--section-y) 0;
}
.cta-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(74,124,255,.22), transparent 60%),
        linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 3vw, 3rem);
}
.cta-inner h2 { font-size: var(--step-3); margin: 0 0 .4rem; }
.cta-inner p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .cta-inner { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Page hero (secondary) ---------- */
.page-hero {
    padding: clamp(4rem, 3rem + 4vw, 7rem) 0 clamp(2rem, 1rem + 3vw, 4rem);
    position: relative; overflow: hidden;
}
.page-hero h1 { max-width: 20ch; font-size: var(--step-5); margin: .8rem 0 1rem; }
.page-hero .lede { max-width: 62ch; }
@media (max-width: 640px) {
    .page-hero { text-align: center; }
    .page-hero h1, .page-hero .lede { margin-left: auto; margin-right: auto; }
}
.page-hero-orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero-orbit span:first-child { position: absolute; right: -160px; top: -80px; width: 500px; height: 500px; border-radius: 999px; background: radial-gradient(circle, rgba(74,124,255,.4), transparent 65%); filter: blur(60px); }
.page-hero-orbit span:last-child { position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 999px; background: radial-gradient(circle, rgba(126,166,255,.28), transparent 65%); filter: blur(60px); }

/* ---------- About ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .values { grid-template-columns: 1fr; } }
.value-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem; text-align: center; }
.value-card h3 { font-size: var(--step-1); margin: 0 0 .4rem; }
.value-card p { margin: 0; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.team-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; text-align: center; }
.team-avatar {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid; place-items: center;
    font-size: 1.6rem; font-weight: 800; color: var(--bg);
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    box-shadow: 0 10px 30px -10px rgba(74,124,255,.6);
    overflow: hidden;
}
.team-avatar.has-photo { width: 96px; height: 96px; background: var(--panel); }
.team-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { font-size: var(--step-1); margin: 0 0 .1rem; }
.team-card .role { display: block; color: var(--brand-soft); font-size: .85rem; margin-bottom: .8rem; }
.team-card p { margin: 0; color: var(--muted); }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: .6rem;
    text-align: center;
    transition: transform .25s ease, border-color .25s ease;
    position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-3px); border-color: rgba(74,124,255,.4); }
.service-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(74,124,255,.25), rgba(74,124,255,.05)); color: var(--brand-soft); }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: var(--step-2); margin: .3rem 0 0; }
.price { color: var(--brand-soft); font-weight: 600; letter-spacing: .04em; }
.service-features { list-style: none; margin: .3rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.service-features li { color: var(--muted); font-size: .95rem; padding-left: 1.4rem; position: relative; }
.service-features li::before {
    content: ''; position: absolute; left: 0; top: .5rem;
    width: 14px; height: 8px;
    border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.service-link { margin-top: auto; color: var(--brand-soft); font-weight: 600; }
.service-link:hover .arrow { transform: translateX(3px); }

/* ===== Owner-set alignment (Content Editor → “Alignment” on any block) =====
   Any block wrapper carries data-align / data-align-heading / -text / -icon /
   -buttons ("left|center|right"). Rules are element-typed, so ONE set works on
   every section (heroes, section headers, card grids, CTAs…). text-align covers
   text; align-self re-anchors flex children (e.g. service cards, hero copy);
   auto margins re-anchor block-level icons/buttons. Higher specificity than the
   base + mobile-centering rules, so an explicit choice wins on phones too. */

/* whole-block */
[data-align="left"]   { text-align: left; }
[data-align="center"] { text-align: center; }
[data-align="right"]  { text-align: right; }
[data-align] .service-card, [data-align] .feature-card, [data-align] .value-card,
[data-align] .team-card, [data-align] .process-item { text-align: inherit; }
[data-align="left"]  .service-card { align-items: flex-start; }
[data-align="center"] .service-card { align-items: center; }
[data-align="right"] .service-card { align-items: flex-end; }
[data-align="left"]  .feature-icon, [data-align="left"]  .service-icon, [data-align="left"]  .team-avatar { margin-left: 0; margin-right: auto; }
[data-align="center"] .feature-icon, [data-align="center"] .service-icon, [data-align="center"] .team-avatar { margin-left: auto; margin-right: auto; }
[data-align="right"] .feature-icon, [data-align="right"] .service-icon, [data-align="right"] .team-avatar { margin-left: auto; margin-right: 0; }

/* headings (section titles + card titles) */
[data-align-heading="left"]   :is(h1, h2, h3, h4) { text-align: left;   align-self: flex-start; }
[data-align-heading="center"] :is(h1, h2, h3, h4) { text-align: center; align-self: center;     }
[data-align-heading="right"]  :is(h1, h2, h3, h4) { text-align: right;  align-self: flex-end;   }

/* text: prose only — paragraphs, ledes, eyebrows, quotes, card roles.
   Lists have their own control below so a left-aligned paragraph doesn't drag
   the checklist with it. */
[data-align-text="left"]   :is(p, .lede, .eyebrow, blockquote, .role) { text-align: left;   align-self: flex-start; }
[data-align-text="center"] :is(p, .lede, .eyebrow, blockquote, .role) { text-align: center; align-self: center;     }
[data-align-text="right"]  :is(p, .lede, .eyebrow, blockquote, .role) { text-align: right;  align-self: flex-end;   }

/* lists / checklists — positions the whole list block (align-self for flex
   cards, auto margins otherwise); items keep their natural left-to-right text */
[data-align-list="left"]   :is(ul, ol) { align-self: flex-start; margin-left: 0;    margin-right: auto; text-align: left; }
[data-align-list="center"] :is(ul, ol) { align-self: center;     margin-left: auto; margin-right: auto; text-align: left; }
[data-align-list="right"]  :is(ul, ol) { align-self: flex-end;   margin-left: auto; margin-right: 0;    text-align: left; }

/* icons + avatars + step badges */
[data-align-icon="left"]   :is(.feature-icon, .service-icon, .team-avatar, .admin-feature-ico, .process-step) { margin-left: 0;    margin-right: auto; align-self: flex-start; }
[data-align-icon="center"] :is(.feature-icon, .service-icon, .team-avatar, .admin-feature-ico, .process-step) { margin-left: auto; margin-right: auto; align-self: center;     }
[data-align-icon="right"]  :is(.feature-icon, .service-icon, .team-avatar, .admin-feature-ico, .process-step) { margin-left: auto; margin-right: 0;    align-self: flex-end;   }

/* button rows */
[data-align-buttons="left"]   :is(.hero-ctas, .cta-inner) { justify-content: flex-start; }
[data-align-buttons="center"] :is(.hero-ctas, .cta-inner) { justify-content: center;      }
[data-align-buttons="right"]  :is(.hero-ctas, .cta-inner) { justify-content: flex-end;    }
[data-align-buttons] .hero-ctas { display: flex; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(74,124,255,.35); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--brand-soft); transition: transform .2s ease; font-size: 1.4rem; }
.faq details[open] .chev { transform: rotate(45deg); }
.faq p { margin: 1rem 0 0; color: var(--muted); }

/* ---------- Portfolio ---------- */
/* auto-fill (not auto-fit): with only a couple of projects the cards keep a
   sensible width instead of each stretching to fill half the row */
.portfolio-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.portfolio-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden; transition: transform .3s ease, border-color .3s ease;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); }
.port-thumb { position: relative; aspect-ratio: 5/3; overflow: hidden; }
.port-art { width: 100%; height: 100%; display: block; }
.port-num {
    position: absolute; top: 1rem; left: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: rgba(255,255,255,.6); font-size: .85rem;
    padding: .3rem .55rem; border-radius: 6px; background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
}
.port-body { padding: 1.4rem 1.6rem 1.6rem; }
.port-cat { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.portfolio-card h3 { margin: .5rem 0 .3rem; font-size: var(--step-2); }
.portfolio-card p { margin: 0 0 1rem; color: var(--muted); }
.port-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.port-tags span { font-size: .72rem; padding: .25rem .55rem; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); }
img.port-art { object-fit: cover; }

/* screenshot / image thumbnail: blurred dark overlay + centered title over it */
.portfolio-card.has-shot .port-thumb { aspect-ratio: 16 / 10; }
.portfolio-card.has-shot img.port-art { filter: saturate(1.05); transition: transform .4s ease; }
.portfolio-card.has-shot:hover img.port-art { transform: scale(1.04); }
.port-shot-overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; padding: 1.2rem; text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.62));
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.port-shot-cat {
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    color: var(--title-color, #fff); opacity: .82;
}
.port-shot-title {
    margin: 0; font-size: var(--step-2); line-height: 1.15; font-weight: 800;
    color: var(--title-color, #fff); text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.port-visit {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
    font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none;
}
.port-visit:hover { gap: .6rem; }
.port-visit .arrow { transition: transform .2s ease; }
.port-visit:hover .arrow { transform: translateX(2px); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.blog-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem;
    transition: transform .25s ease, border-color .25s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(74,124,255,.35); }
.blog-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--muted-2); font-size: .8rem; }
.blog-meta .tag { padding: .2rem .5rem; border-radius: 6px; background: rgba(74,124,255,.12); color: var(--brand-soft); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.blog-card h2 { font-size: var(--step-2); margin: 0; }
.blog-card p { color: var(--muted); margin: 0; }
.blog-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted-2); }
.read-more { color: var(--brand-soft); font-weight: 600; }

/* Post */
.post { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.post .container { max-width: 780px; }
.back-link { color: var(--muted); font-size: .85rem; }
.post-meta { color: var(--muted-2); font-size: .85rem; margin: 1.5rem 0 .5rem; display: flex; gap: .6rem; }
.post-title { margin: .3rem 0 1rem; }
.post-cover { border-radius: var(--r-lg); margin: 1.6rem 0; border: 1px solid var(--border); }
.post-body p { color: var(--text); font-size: var(--step-1); line-height: 1.75; margin: 0 0 1.4rem; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--text); margin: 2rem 0 .8rem; letter-spacing: -.015em; }
.post-body h2 { font-size: var(--step-3); }
.post-body h3 { font-size: var(--step-2); }
.post-body ul, .post-body ol { color: var(--text); font-size: var(--step-1); line-height: 1.75; padding-left: 1.5rem; margin: 0 0 1.4rem; }
.post-body li { margin-bottom: .5rem; }
.post-body code { background: rgba(255,255,255,.07); padding: .1em .4em; border-radius: 5px; font-size: .88em; }
.post-body a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
    border-left: 3px solid var(--brand); background: rgba(255,255,255,.03);
    margin: 0 0 1.4rem; padding: .7rem 1.2rem; border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.post-body pre {
    background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 1rem 1.2rem; overflow-x: auto; margin: 0 0 1.4rem;
}
.post-body pre code { background: none; padding: 0; display: block; font-size: .9rem; line-height: 1.65; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: .4rem 0 1.4rem; border: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-tags .tag { padding: .3rem .7rem; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); font-size: .78rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 1rem; }
.contact-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.2rem 1.4rem; }
.contact-block p { margin: .3rem 0 0; color: var(--text); font-size: var(--step-1); }

.contact-form {
    background: linear-gradient(180deg, var(--panel), var(--bg-soft));
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.5vw, 2.4rem);
    display: grid; gap: 1rem;
}
.field { display: grid; gap: .4rem; }
/* Honeypot: parked far off-screen (display:none would tip off smarter bots) */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
    background: rgba(255,255,255,.03); border: 1px solid var(--border-strong);
    color: var(--text); font: inherit; font-size: 1rem;
    padding: .78rem .9rem; border-radius: 12px;
    transition: border-color .18s ease, background .18s ease;
    width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand); background: rgba(74,124,255,.05);
    box-shadow: 0 0 0 3px rgba(74,124,255,.18);
}
.field textarea { resize: vertical; min-height: 140px; }
/* Native dropdown lists: the open <option> list ignores the styled control, so
   give options an explicit dark background + light text. Without this some
   OS/browser combos paint light-on-light (or dark-on-dark) unreadable menus. */
select { color-scheme: dark; }
select option, select optgroup {
    background-color: var(--panel);
    color: var(--text);
}
select option:disabled { color: var(--muted-2); }
.alert { padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; border: 1px solid; }
.alert-success { background: rgba(75,214,138,.1); border-color: rgba(75,214,138,.35); color: #a5f0c4; }
.alert-error { background: rgba(255,107,122,.1); border-color: rgba(255,107,122,.35); color: #ffb0b8; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound-code {
    font-size: clamp(6rem, 5rem + 10vw, 12rem); font-weight: 800; letter-spacing: -.05em;
    background: linear-gradient(180deg, var(--brand), transparent 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--section-y);
    border-top: 1px solid var(--border);
    padding: clamp(2rem, 3vw, 4rem) 0 2rem;
    background: linear-gradient(180deg, transparent, rgba(74,124,255,.04));
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { text-align: center; }
    .footer-brand .brand { justify-content: center; }
    /* the tagline box is width-capped (34ch) — center the box, not just its text,
       otherwise it stays pinned to the left and looks off-centre */
    .footer-brand p { margin-inline: auto; }
    .footer-bottom { flex-direction: column; justify-content: center; }
    .socials { justify-content: center; }
}
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--muted); font-size: .95rem; }
.site-footer a:hover { color: var(--brand-soft); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: .82rem; }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--muted); font-size: .82rem; }

/* ---------- Reveal animation (only hide once JS has taken over) ---------- */
html.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
html.js-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .mock-window { transform: none !important; }
}

/* ---------- Loading screen (configured in admin Site Settings) ---------- */
.webr-loader {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
    background: var(--bg);
    background-image: radial-gradient(700px 400px at 50% 40%, rgba(74,124,255,.08), transparent 65%);
    transition: opacity .45s ease;
}
.webr-loader[hidden] { display: none; }
.webr-loader.is-done { opacity: 0; pointer-events: none; }
.webr-loader-ring { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.webr-loader-ring img { border-radius: 999px; }
/* Brand text inside the ring (an alternative to the logo image); the last
   letter is accented the same way as the header brand text. font-size is set
   inline from the "Logo size" slider so the word scales with the ring. */
.webr-loader-word { font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.webr-loader-word em { color: var(--brand); font-style: normal; }
.webr-loader-ring::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 4px solid rgba(74,124,255,.16); border-top-color: var(--brand);
    animation: webr-spin 1s linear infinite;
}
@keyframes webr-spin { to { transform: rotate(360deg); } }
.webr-loader small { color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
/* Size variants (Settings → Loading screen); the default rules above are "medium" */
.webr-loader[data-size="small"] { gap: 1rem; }
.webr-loader[data-size="small"] .webr-loader-ring { width: 92px; height: 92px; }
.webr-loader[data-size="small"] .webr-loader-ring::before { border-width: 3px; }
.webr-loader[data-size="small"] small { font-size: .85rem; }
.webr-loader[data-size="large"] { gap: 1.7rem; }
.webr-loader[data-size="large"] .webr-loader-ring { width: 200px; height: 200px; }
.webr-loader[data-size="large"] .webr-loader-ring::before { border-width: 5px; }
.webr-loader[data-size="large"] small { font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) {
    .webr-loader-ring::before { animation: none; border-top-color: rgba(74,124,255,.16); }
}

/* ---------- Footer credit ---------- */
.made-by { color: var(--muted-2); font-size: .82rem; transition: color .18s ease; }
.made-by b { color: var(--muted); font-weight: 600; transition: color .18s ease; }
.made-by:hover, .made-by:hover b { color: var(--brand-soft); }

/* ---------- Cookie consent banner ---------- */
.cookie-consent {
    position: fixed; left: 50%; bottom: clamp(.8rem, 2vw, 1.4rem); transform: translateX(-50%);
    z-index: 1500; width: min(680px, calc(100% - 2rem));
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
    background: linear-gradient(180deg, var(--panel, #10152A), var(--bg-soft, #0B0F1C));
    border: 1px solid var(--border-strong, rgba(255,255,255,.16)); border-radius: 14px;
    padding: 1rem 1.2rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1 1 260px; min-width: 0; }
.cookie-consent a { color: var(--brand-soft); }
.cookie-consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
@media (max-width: 480px) {
    .cookie-consent { flex-direction: column; align-items: stretch; gap: .8rem; padding: .9rem 1rem; }
    /* in the column layout the text must NOT grow, or flex-grow stretches it
       vertically and balloons the whole box */
    .cookie-consent p { flex: 0 0 auto; }
    .cookie-consent-actions { justify-content: flex-end; }
}

/* ---------- Legal pages (privacy / cookies) ---------- */
.legal-page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.75; }
.legal-body ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0; }
.legal-body a { color: var(--brand-soft); }
.legal-updated { font-size: .82rem; color: var(--muted-2); font-style: italic; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: .7rem .8rem; border: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--text); font-weight: 600; background: rgba(255,255,255,.03); }
.legal-table td { color: var(--muted); }
.legal-table code { color: var(--brand-soft); font-family: var(--mono, monospace); font-size: .85em; }

/* ---------- Empty-state boxes (sections awaiting real content) ---------- */
.empty-note {
    max-width: 560px; margin: 0 auto; text-align: center;
    border: 1px dashed var(--border-strong); border-radius: 18px;
    background: rgba(255,255,255,.02);
    padding: clamp(2rem, 5vw, 3.2rem) 2rem;
}
.empty-note h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.empty-note p { color: var(--muted); margin: 0 0 1.4rem; }

/* ============================================================
   Mobile centering + smaller titles
   On phones, content reads better centered. We center the blocks
   that look good centered (heros, section copy, cards, contact,
   process/steps, blog cards) and dial the biggest titles down a
   notch so more fits on screen. Running form fields stay as-is.
   ============================================================ */
@media (max-width: 640px) {
    /* smaller headline sizes on phones */
    h1 { font-size: clamp(2.1rem, 1.6rem + 3vw, 2.8rem); }
    h2 { font-size: clamp(1.7rem, 1.4rem + 2vw, 2.2rem); }
    .hero-title, .page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 4vw, 2.9rem); }

    /* center the content blocks that read well centered */
    .feature-card, .process-item, .service-card, .blog-card,
    .contact-block, .contact-side, .empty-note,
    .value-card, .team-card { text-align: center; }
    .service-card .svc-head, .service-card ul { text-align: center; list-style-position: inside; }
    .contact-block p, .feature-card p, .process-item p, .blog-card p { margin-left: auto; margin-right: auto; }

    /* icons / media inside centered cards line up in the middle */
    .feature-card .icon, .process-step, .service-card .svc-icon,
    .feature-icon, .card-icon { margin-left: auto; margin-right: auto; }

    /* buttons inside centered cards center too */
    .service-card .btn, .blog-card .btn, .feature-card .btn,
    .port-visit { margin-left: auto; margin-right: auto; }
}

/* Footer "Get the app" install button (PWA) */
.footer-install-wrap { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.footer-install {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--brand); color: #fff; border: 0; border-radius: 999px;
    padding: .4rem .95rem; font: inherit; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: filter .15s ease, transform .15s ease;
}
.footer-install:hover { filter: brightness(1.08); }
.footer-install:active { transform: translateY(1px); }
.footer-install-tip { font-size: .8rem; color: var(--muted); }
