/* welten.no - design tokens */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #070b18; --ink-2: #0d1328; --ink-3: #151d3a;
  --text: #0f172a; --text-2: #475569; --text-3: #5f6b7f; /* 4.5:1+ on white and --bg-alt (WCAG AA) */
  --line: #e5e8f0; --bg: #ffffff; --bg-alt: #f5f7fb;
  --brand: #4f46e5; --brand-2: #3b82f6; --brand-3: #06b6d4;
  --grad: linear-gradient(120deg, #818cf8 0%, #60a5fa 45%, #22d3ee 100%);
  --grad-btn: linear-gradient(120deg, #6366f1, #3b82f6 55%, #06b6d4);
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 30px 80px -24px rgba(15, 23, 42, .3);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font: 600 .97rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(79, 70, 229, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-icon { padding: .7em; border-radius: 12px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--brand); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic, .card:hover .link-arrow .ic { transform: translateX(4px); }
.link-arrow.sm { font-size: .93rem; }

/* header */
/* The frosted background lives on ::before: a backdrop-filter on .nav itself would make it the containing
   block for the fixed mobile menu, squeezing the full-screen overlay into the 76px header. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: background .3s, box-shadow .3s; }
.nav.scrolled::before { background: rgba(7, 11, 24, .72); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand .logo-mark { border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(99, 102, 241, .8); transition: transform .3s; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.links { display: flex; align-items: center; gap: 6px; }
.links > a:not(.btn) { color: rgba(255, 255, 255, .78); font-weight: 550; font-size: .95rem; padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.links > a:not(.btn):hover, .links > a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.links .btn { margin-left: 8px; }
.lang-switch { display: inline-flex; gap: 4px; font-size: .85rem !important; letter-spacing: .04em; }
.lang-cur { color: #fff; } .lang-sep { opacity: .35; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger .ic { width: 26px; height: 26px; }
.burger .i-close { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; background: #4f46e5; top: -240px; left: -160px; }
.o2 { width: 520px; height: 520px; background: #0891b2; bottom: -260px; right: -120px; animation-delay: -6s; opacity: .45; }
.o3 { width: 380px; height: 380px; background: #7c3aed; top: 30%; right: 30%; animation-delay: -12s; opacity: .3; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.12); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-home { padding: 150px 0 110px; min-height: min(100vh, 900px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-grid > *, .case > *, .about-grid > *, .contact-grid > *, .news-grid > *, .service-row > * { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.kicker-light { color: #a5b4fc; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(226, 232, 255, .78); max-width: 620px; margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 34px; margin: 52px 0 0; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 620px; }
.stats dt { font-size: 2.2rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 8px 0 0; font-size: .86rem; color: rgba(226, 232, 255, .62); line-height: 1.4; max-width: 170px; }
.hero-page { padding: 168px 0 96px; }
.hero-page h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 900px; }
.hero-page .lead { margin-bottom: 0; }
.hero-message { padding: 190px 0 140px; }
.hero-message .lead { margin: 22px auto 36px; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-weight: 550; font-size: .93rem; margin-bottom: 26px; }
.back:hover { color: #fff; }

/* hero visual: intranet mock */
.hero-visual { position: relative; perspective: 1400px; }
.mock { background: linear-gradient(160deg, rgba(30, 41, 82, .9), rgba(13, 19, 40, .95)); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(99, 102, 241, .15), inset 0 1px 0 rgba(255, 255, 255, .08); transform: rotateY(-12deg) rotateX(6deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.hero-visual:hover .mock { transform: rotateY(-4deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock-bar i:first-child { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.mock-body { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 330px; }
.mock-side { border-right: 1px solid rgba(255, 255, 255, .06); padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-side b { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-btn); margin-bottom: 8px; }
.mock-side span { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.mock-side span.on { background: rgba(129, 140, 248, .7); }
.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-kpis div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.mock-kpis small { height: 6px; width: 60%; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.mock-kpis strong { font-size: 1.3rem; letter-spacing: -.02em; }
.mock-kpis em { font-style: normal; font-size: .72rem; color: #fca5a5; } .mock-kpis em.up { color: #6ee7b7; }
.mock-chart { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; height: 128px; overflow: hidden; }
.mock-chart svg { width: 100%; height: 100%; display: block; }
.mock-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock-rows { display: flex; flex-direction: column; gap: 9px; }
.mock-rows span { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.mock-rows span:nth-child(2) { width: 80%; } .mock-rows span:nth-child(3) { width: 60%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float-card .ic { width: 22px; height: 22px; padding: 4px; border-radius: 7px; color: #fff; background: var(--grad-btn); }
.fc1 { left: -34px; bottom: 54px; } .fc2 { right: -18px; top: 30px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* sections */
.section { padding: 110px 0; position: relative; background: var(--bg); } /* explicit white: accessibility checkers otherwise see the hero glow behind the text */
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-head .sub { color: var(--text-2); font-size: 1.12rem; margin: 20px 0 0; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-dark .section-head h2 { color: #fff; }
.h-sm { font-size: 1.5rem; margin-bottom: 22px; }

/* cards */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; color: inherit; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: .97rem; margin: 0; }
.card-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: var(--brand); background: linear-gradient(135deg, #eef2ff, #e0f2fe); border: 1px solid #e0e7ff; flex: none; }
.card-ic .ic { width: 24px; height: 24px; }
.card-ic-lg { width: 64px; height: 64px; border-radius: 18px; }
.card-ic-lg .ic { width: 30px; height: 30px; }
.service-card { overflow: hidden; }
.service-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.service-card:hover::after { opacity: 1; }
.card-more { margin-top: auto; padding-top: 22px; color: var(--brand); }
.card-more .ic { transition: transform .25s; }
.service-card:hover .card-more .ic { transform: translateX(5px); }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { padding: 32px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, #f8faff); border: 1px solid var(--line); }
.pain-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #a5b4fc; }
.pain-ic .ic { width: 22px; height: 22px; }
.pain h3 { margin: 20px 0 10px; }
.pain p { color: var(--text-2); margin: 0; }
.value-card .card-ic { margin-bottom: 4px; }

/* project cards */
.project-card { padding: 0; overflow: hidden; }
.pc-logo { background: #f5f5f5; border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; overflow: hidden; }
.pc-logo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.project-card:hover .pc-logo img { transform: scale(1.06); }
.pc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { margin: 14px 0 8px; }
.pc-body p { margin-bottom: 18px; }
.pc-body .link-arrow { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .74rem; font-weight: 650; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.chip-soft { background: #f1f5f9; color: var(--text-2); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(6px); }
.step-n { font-size: .85rem; font-weight: 700; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 14px 0 10px; color: #fff; }
.step p { color: rgba(226, 232, 255, .68); font-size: .96rem; margin: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 42px; right: -22px; width: 22px; height: 1px; background: linear-gradient(90deg, rgba(129, 140, 248, .6), transparent); }
.steps-light .step { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.steps-light .step h3 { color: var(--text); }
.steps-light .step p { color: var(--text-2); }
.quote { margin: 80px auto 0; max-width: 860px; text-align: center; }
.quote > .ic { width: 40px; height: 40px; color: #818cf8; opacity: .7; }
.quote blockquote { margin: 18px 0 22px; font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.35; }
.quote figcaption { display: inline-flex; align-items: center; gap: 10px; color: rgba(226, 232, 255, .7); font-size: .95rem; }

/* services page */
.service-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 60px; }
.service-index a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .92rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.service-index a:hover { border-color: #a5b4fc; box-shadow: var(--shadow); }
.service-index .ic { color: var(--brand); }
.service-list { display: flex; flex-direction: column; gap: 22px; }
.service-row { display: grid; grid-template-columns: 110px 1.4fr 1fr; gap: 40px; padding: 40px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.sr-head { display: flex; flex-direction: column; gap: 14px; }
.sr-n { font-size: .85rem; font-weight: 700; color: var(--text-3); letter-spacing: .1em; }
.sr-body h2 { font-size: 1.75rem; margin-bottom: 12px; }
.sr-short { font-size: 1.1rem; color: var(--text); font-weight: 550; }
.sr-body p:last-child { color: var(--text-2); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--grad-btn); margin-top: 1px; }
.service-row .checks { align-self: center; padding: 24px; border-radius: 16px; background: var(--bg-alt); }

/* case page */
.case { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose p, .prose li { color: #334155; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 14px; margin: 24px 0; }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid #818cf8; color: var(--text-2); font-size: 1.15rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.side-card { position: sticky; top: 100px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.side-card .pc-logo { border-radius: 14px; border: 1px solid var(--line); margin-bottom: 22px; }
.side-card h3 { font-size: 1rem; margin: 24px 0 14px; }
.side-card .btn { margin-top: 26px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.about-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-block { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8faff); }
.about-block h2 { font-size: 1.35rem; margin-bottom: 12px; }
.about-block p { color: var(--text-2); margin: 0; }
.portrait { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--ink); box-shadow: 0 20px 40px -16px rgba(79, 70, 229, .6); margin-bottom: 18px; }
.side-name { font-size: 1.35rem; font-weight: 750; margin: 0; letter-spacing: -.02em; }
.side-role { color: var(--text-2); margin: 2px 0 0; font-size: .95rem; }
.career { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.career li { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.side-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.side-stat strong { font-size: 2.4rem; letter-spacing: -.03em; background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-stat span { color: var(--text-2); }
.about-cta { margin: 56px auto 0; max-width: 760px; text-align: center; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.4; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .3s, border-color .3s; }
a.info-card:hover { transform: translateX(4px); border-color: #c7d2fe; }
.info-card small { display: block; color: var(--text-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.info-card strong { font-weight: 650; font-size: 1.04rem; line-height: 1.45; }
.info-card.office { align-items: flex-start; }
.info-card.office strong { display: block; }
.office-phone { display: flex; width: fit-content; align-items: center; gap: 7px; margin-top: 6px; font-weight: 600; font-size: .98rem; color: var(--brand); }
.office-phone:hover { text-decoration: underline; }
.foot-office { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.foot-office a { padding-left: 26px; }
.info-social { padding: 10px 6px; }
.info-social small { color: var(--text-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.form-card { padding: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 24px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.field i { font-style: normal; font-weight: 400; color: var(--text-3); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 12px; border: 1px solid #d6dbe7; background: #fbfcfe; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.field .err { display: block; font-style: normal; color: #dc2626; font-size: .85rem; margin-top: 5px; min-height: 0; }
.field .err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { background: #fef2f2; color: #b91c1c; padding: 12px 15px; border-radius: 12px; font-size: .95rem; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.privacy { color: var(--text-3); font-size: .85rem; margin: 0; max-width: 360px; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done p { color: var(--text-2); }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--grad-btn); margin-bottom: 18px; box-shadow: 0 16px 36px -12px rgba(79, 70, 229, .7); }
.done-ic .ic { width: 30px; height: 30px; }
.done-ic-lg { width: 84px; height: 84px; margin-bottom: 26px; }

/* newsletter */
.news-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.issues { display: flex; flex-direction: column; gap: 14px; }
.issue { display: block; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.issue:hover { transform: translateY(-3px); border-color: #c7d2fe; }
.issue time { font-size: .82rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.issue h3 { margin: 8px 0; font-size: 1.3rem; line-height: 1.22; }
.issue p { color: var(--text-2); margin: 0 0 12px; }
/* small photo to the left (the first image in the issue) */
.issue.has-pic { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: start; }
.issue-pic { width: 148px; height: 148px; object-fit: cover; border-radius: 14px; display: block; background: var(--bg-alt); }
/* line the photo up with the headline: skip the date line (its height) + the headline's top margin */
.issue.has-pic time { display: block; line-height: 1.4; }
.issue.has-pic .issue-pic { margin-top: calc(.82rem * 1.4 + 8px + 4px); }
@media (max-width: 640px) { .issue.has-pic { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 20px; } .issue-pic { width: 84px; height: 84px; border-radius: 12px; } }
.empty-note { padding: 30px; border-radius: 18px; border: 1px dashed #cbd5e1; color: var(--text-2); background: var(--bg-alt); }
.signup-card h2 { font-size: 1.4rem; margin: 18px 0 8px; }
.signup-card > p { color: var(--text-2); }
.signup-msg { font-size: .92rem; margin: 12px 0 0; min-height: 1px; }
.signup-msg.ok { color: #047857; } .signup-msg.bad { color: #b91c1c; }
.signup-msg:empty { margin: 0; }
.signup .privacy { margin-top: 12px; }
.article { margin-bottom: 70px; }
.article-signup .side-card { position: static; }

/* CTA band */
.cta-band { padding: 0 0 110px; }
.section-alt + .cta-band, .section-dark + .cta-band { padding-top: 110px; }
.section-alt + .cta-band { background: linear-gradient(var(--bg-alt), var(--bg-alt) 50%, var(--bg) 50%); }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: clamp(40px, 7vw, 84px); background: var(--ink); color: #fff; text-align: center; }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 15% 0%, rgba(99, 102, 241, .55), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(6, 182, 212, .45), transparent 70%); }
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cta-card p { color: rgba(226, 232, 255, .75); font-size: 1.15rem; max-width: 620px; margin: 18px auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* footer */
.footer { background: var(--ink); color: rgba(226, 232, 255, .7); padding: 80px 0 30px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr; gap: 40px; }
.foot-brand p { margin: 18px 0 22px; max-width: 280px; }
.footer h2.foot-h { color: #fff; font-size: .95rem; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(226, 232, 255, .7); transition: color .2s; }
.footer a:hover { color: #fff; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: 10px; }
.foot-news p { margin-bottom: 14px; }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; }
.signup-row input::placeholder { color: rgba(226, 232, 255, .45); }
.signup-row input:focus { outline: none; border-color: #818cf8; }
.footer .signup-msg.ok { color: #6ee7b7; } .footer .signup-msg.bad { color: #fca5a5; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.social a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.social-dark { margin-top: 10px; }
.social-dark a { background: var(--ink); color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }

/* hidden on screen, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* newsletter byline */
.byline { margin: 22px 0 0; font-size: .95rem; color: rgba(226, 232, 255, .72); }

/* privacy links in the footer + cookie bar */
.foot-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(226, 232, 255, .7); cursor: pointer; transition: color .2s; }
.link-btn:hover { color: #fff; }
.link-btn[hidden], [data-cookie-settings][hidden] { display: none; }
.cookie-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 460px; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: rgba(13, 19, 40, .96); color: rgba(226, 232, 255, .85); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px); font-size: .88rem; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.cookie-bar.on { opacity: 1; transform: none; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); min-width: 92px; }
.cookie-btn:hover { background: rgba(255, 255, 255, .16); }
.privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.privacy-updated { font-size: .9rem; color: var(--muted, #64748b); margin-top: 40px; }
@media (max-width: 640px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; } .cookie-actions { justify-content: stretch; } .cookie-btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mock-line { stroke-dashoffset: 0; }
}

/* responsive */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 80px 1fr; }
  .service-row .checks { grid-column: 2; }
}
@media (max-width: 960px) {
  .burger { display: block; position: relative; z-index: 60; }
  .links { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding: 100px 28px 40px; overflow-y: auto; overscroll-behavior: contain; background: #070b18; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open .brand { position: relative; z-index: 60; }
  .links > a:not(.btn) { font-size: 1.5rem; font-weight: 650; padding: 12px 8px; }
  .links .btn { margin: 20px 0 0; padding: 1em; font-size: 1.05rem; }
  /* visible immediately on open (so focus can move into the menu), fade out on close */
  .nav.open .links { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
  .nav.open .burger .i-open { display: none; } .nav.open .burger .i-close { display: block; }
  .hero-grid, .case, .about-grid, .contact-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 10px auto 0; }
  .mock { transform: none; }
  .fc1 { left: -8px; } .fc2 { right: -8px; }
  .cards-3, .pains, .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .side-card { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 76px 0; }
  .hero-home { padding: 120px 0 70px; }
  .hero-page { padding: 130px 0 64px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats div:last-child { display: none; }
  .cards-3, .cards-4, .pains, .steps, .about-blocks, .field-row, .foot-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
  .service-row .checks { grid-column: auto; }
  .sr-head { flex-direction: row; align-items: center; }
  .form-card { padding: 26px 20px; }
  .float-card { display: none; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding-bottom: 76px; }
}
