/* ===== 212 Design Lab ===== */
:root {
  --ink: #05080f;
  --ink-2: #0a1120;
  --ink-3: #0f1a30;
  --blue: #1b6dff;
  --blue-2: #3d8bff;
  --blue-soft: #6aa8ff;
  --white: #ffffff;
  --text-dim: #b7c1d6;
  --light-bg: #f6f8fc;
  --light-card: #ffffff;
  --light-text: #0b0f1a;
  --light-dim: #5b6478;
  --line-dark: rgba(255,255,255,.12);
  --line-light: #e4e8f0;
  --radius: 10px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--head); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: italic; color: var(--blue-2); font-weight: 800; }
.blue { color: var(--blue); }
.center { text-align: center; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
section { position: relative; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

/* Eyebrow labels */
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }
.eyebrow-lg { font-size: 14px; letter-spacing: .42em; color: var(--white); margin-bottom: 18px; }
.eyebrow-lg i { font-style: normal; color: var(--text-dim); margin: 0 .3em; }
.eyebrow-lg span { color: var(--blue-2); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 14px; border: 2px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 28px rgba(27,109,255,.35); }
.btn-primary:hover { background: #0f5ef0; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(27,109,255,.5); }
.btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { border-color: var(--blue-2); background: rgba(27,109,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.link { display: inline-flex; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--blue); }
.link span { transition: transform .2s; }
.link:hover span { transform: translateX(4px); }

.ico { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(5,8,15,.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { width: 96px; height: auto; }
.nav { display: flex; gap: 34px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.nav a { position: relative; padding: 6px 0; color: #e6ebf5; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--blue-2); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 24px; height: 2px; background: var(--blue-2); transform: translateX(-50%); border-radius: 2px; }
.nav-cta { border-color: var(--blue); padding: 11px 22px; border-radius: 999px; }
.nav-cta-mobile { display: none !important; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 150px 0 90px; background: radial-gradient(ellipse at 75% 40%, #0f1e3d 0%, transparent 60%), linear-gradient(180deg, #05080f 0%, #0a0f1a 70%, #0d1220 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.035)); pointer-events: none; }
.hero-glow { position: absolute; width: 700px; height: 700px; right: -120px; top: -40px; background: radial-gradient(circle, rgba(27,109,255,.22), transparent 65%); filter: blur(20px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; }
.hero h1 em { display: inline-block; white-space: nowrap; }
.lead { color: var(--text-dim); font-size: 18px; margin-top: 22px; max-width: 540px; }
.hero .lead { color: #dfe5f1; }

/* Device mockups (pure CSS) */
.devices { position: relative; height: 440px; perspective: 1400px; }
.laptop { position: absolute; left: 0; right: 70px; top: 10px; transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.laptop-screen { aspect-ratio: 16/10.5; background: #151a24; border-radius: 16px 16px 4px 4px; padding: 12px; box-shadow: 0 0 0 2px #2a303c, 0 40px 80px rgba(0,0,0,.6); }
.screen-ui { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: url(/assets/mountains-night.svg) center bottom / cover; }
.screen-ui::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,15,.85) 0%, rgba(5,8,15,.2) 70%), radial-gradient(circle at 70% 45%, rgba(27,109,255,.35), transparent 50%); }
.screen-nav { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.screen-nav img { width: 42px; margin-right: auto; }
.screen-nav span { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.screen-nav b, .screen-hero b { font-family: var(--head); font-size: 9px; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--blue-2); color: #fff; }
.screen-hero { position: relative; padding: 8% 7%; }
.screen-hero strong { display: block; font-family: var(--head); font-style: italic; font-weight: 800; font-size: clamp(16px, 2.2vw, 28px); line-height: 1.1; }
.screen-hero small { display: block; margin: 10px 0 14px; font-size: 10px; color: var(--text-dim); }
.screen-hero b { background: var(--blue); border-color: var(--blue); }
.laptop-base { height: 16px; margin: 0 -6%; background: linear-gradient(180deg, #c9ced8, #7c838f); border-radius: 0 0 18px 18px; box-shadow: 0 30px 50px rgba(0,0,0,.7); }
.phone { position: absolute; right: 0; bottom: 0; width: 170px; aspect-ratio: 9/18.5; background: #0c0f16; border-radius: 28px; padding: 9px; box-shadow: 0 0 0 2px #2a303c, -20px 30px 60px rgba(0,0,0,.7); transform: rotate(4deg); animation: float 7s ease-in-out infinite reverse; }
.phone-screen { height: 100%; border-radius: 21px; background: url(/assets/mountains-night.svg) center bottom / cover; padding: 30px 14px; position: relative; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, rgba(27,109,255,.4), transparent 60%); }
.phone-screen img { position: relative; width: 92px; margin: 0 auto 24px; }
.phone-screen p { position: relative; font-family: var(--head); font-weight: 800; font-size: 14px; line-height: 1.3; }
.phone-screen p span { color: var(--blue-2); font-style: italic; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ===== Approach ===== */
.approach { background: var(--ink); padding: 34px 0 40px; border-top: 1px solid var(--line-dark); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.approach-item { display: flex; align-items: center; gap: 22px; padding: 8px 32px; }
.approach-item:first-child { padding-left: 0; }
.approach-item + .approach-item { border-left: 1px solid var(--line-dark); }
.approach-item h3 { font-size: 20px; font-weight: 700; }
.approach-item p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ===== Light sections ===== */
.light { background: var(--light-bg); color: var(--light-text); padding: 90px 0; }
.light h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-intro { color: var(--light-dim); max-width: 420px; font-size: 15px; }
.head-aside { display: flex; align-items: flex-end; gap: 28px; }
.head-aside .link { flex: none; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; background: var(--light-card); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11,15,26,.08); border-color: #c9d8f5; }
.service-card .ico { margin-bottom: 26px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.service-card p { color: var(--light-dim); font-size: 14.5px; flex: 1; margin-bottom: 26px; }

/* ===== Security ===== */
.security { background: radial-gradient(ellipse at 75% 50%, #0d2552 0%, #070b15 55%, var(--ink) 100%); padding: 100px 0; overflow: hidden; }
.security-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.security h2 { font-size: clamp(34px, 3.8vw, 48px); font-weight: 800; }
.security h2 em { display: block; }
.security .lead { color: #dfe5f1; }
.vault { position: relative; height: 380px; display: grid; place-items: center; }
.rack { position: absolute; top: 20px; bottom: 20px; width: 34%; background: linear-gradient(90deg, #0c121f, #151d2e); border: 1px solid #1f2a40; border-radius: 6px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: space-around; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.rack-l { left: 4%; transform: perspective(800px) rotateY(28deg); }
.rack-r { right: 4%; transform: perspective(800px) rotateY(-28deg); }
.rack i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f2a40 0 70%, var(--blue-2) 70% 74%, #1f2a40 74%); opacity: .9; animation: blink 3s infinite; }
.rack i:nth-child(odd) { animation-delay: 1.2s; }
.rack i:nth-child(3n) { animation-delay: .5s; }
@keyframes blink { 50% { opacity: .45; } }
.shield { position: relative; width: 52%; max-width: 230px; animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 22px rgba(61,139,255,.6)); transform: scale(1.03); } }

/* ===== Portfolio ===== */
.work { gap: 16px; }
.work-card h3 { font-size: 15px; font-weight: 700; margin-top: 16px; }
.tags { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 6px 0 12px; font-weight: 600; }
.thumb { aspect-ratio: 4/3; border-radius: 6px; background: radial-gradient(circle at 50% 40%, #1a2440, #070a12 75%); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; overflow: hidden; transition: transform .3s; }
.work-card:hover .thumb { transform: scale(1.02); }
.mini-laptop { width: 88%; border: 5px solid #1d222d; border-bottom-width: 9px; border-radius: 6px; background: #0b0f18; box-shadow: 0 18px 30px rgba(0,0,0,.6); }
.mini-screen { aspect-ratio: 16/10; display: flex; padding: 10px; gap: 8px; }
.ms-copy { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ms-copy b { font-family: var(--head); font-size: 10px; line-height: 1.1; color: #fff; font-style: italic; }
.ms-copy i { height: 3px; width: 70%; background: #3a4560; border-radius: 2px; }
.ms-product { flex: 1; border-radius: 40% 40% 12px 12px; background: linear-gradient(160deg, #f1f3f8, #9aa3b5); }
.mini-phone { width: 36%; aspect-ratio: 9/18; border: 3px solid #252b38; border-radius: 12px; background: linear-gradient(180deg, #0c1428, #060a14); padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 26px rgba(0,0,0,.6); }
.mini-phone:first-child { transform: rotate(-8deg); }
.mini-phone:last-child { transform: rotate(6deg); align-items: center; justify-content: center; }
.mini-phone b { font-family: var(--head); font-size: 9px; line-height: 1.15; }
.mini-phone svg { width: 60%; }
.mini-phone i { width: 100%; height: 6px; border-radius: 3px; background: #1a2846; }
.light-screen .mini-screen { background: #eef0f4; }
.shop-col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.shop-col b { font-family: var(--head); font-size: 9px; color: #111; }
.figure { flex: 1; border-radius: 30px 30px 3px 3px; background: linear-gradient(#1a1d24, #000); width: 60%; margin: 0 auto; }
.shop-house { flex: 1.3; border-radius: 3px; background: linear-gradient(160deg, transparent 40%, #2c2a28 40% 60%, #4a3f36 60%), linear-gradient(#cfd7e4, #e9edf3); }
.mini-tablet { width: 92%; aspect-ratio: 4/3; border: 5px solid #1d222d; border-radius: 10px; background: #070c18; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 26px rgba(0,0,0,.6); }
.mini-tablet svg { flex: 1; width: 100%; }
.dash-row { display: flex; gap: 5px; }
.dash-row i { flex: 1; height: 16px; border-radius: 3px; background: #101c36; border: 1px solid #1d2c4d; }
.dash-row.small i { height: 10px; }

/* ===== Process ===== */
.process { padding: 90px 0 100px; background: linear-gradient(180deg, rgba(5,8,15,.6), rgba(5,8,15,.85)), url(/assets/mountains-night.svg) center bottom / cover; }
.process h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; top: 12px; right: 4px; color: var(--blue-2); font-size: 26px; }
.num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--blue); font-family: var(--head); font-weight: 700; font-size: 15px; margin-bottom: 18px; background: rgba(5,8,15,.6); box-shadow: 0 0 20px rgba(27,109,255,.25); }
.steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: 14px; max-width: 230px; }

/* ===== FAQ ===== */
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s; }
details[open] { border-color: #b9cdf3; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--head); font-weight: 700; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--light-dim); padding-bottom: 20px; }

/* ===== CTA ===== */
.cta { padding: 120px 0; background: linear-gradient(90deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.55) 45%, rgba(5,8,15,0) 75%), url(/assets/mountains-dusk.svg) center / cover; }
.cta h2 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; text-transform: uppercase; }
.cta h2 em { color: var(--blue); }
.cta .lead { color: #dfe5f1; max-width: 440px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); padding: 44px 0 28px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 14px; font-family: var(--head); font-weight: 600; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--blue-2); }
.footer-nav a:first-child { color: var(--blue-2); }
.social { display: flex; gap: 18px; }
.social svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; transition: stroke .2s; }
.social .fill { fill: #fff; stroke: none; }
.social a:hover svg { stroke: var(--blue-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; font-size: 13px; color: var(--text-dim); }
.footer-bottom span { margin: 0 8px; }

/* ===== Reveal animation ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 24px; background: rgba(5,8,15,.97); border-bottom: 1px solid var(--line-dark); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .nav a.active::after { display: none; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 18px; justify-content: center; border-bottom: 2px solid var(--blue) !important; border-color: var(--blue); }
  .menu-open .nav { transform: none; }
  .menu-open .site-header { background: rgba(5,8,15,.97); }
  .hero { padding-top: 120px; }
  .hero-grid, .security-grid { grid-template-columns: 1fr; }
  .devices { height: 360px; max-width: 560px; }
  .approach-grid { grid-template-columns: 1fr; gap: 18px; }
  .approach-item { padding: 0; }
  .approach-item + .approach-item { border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 18px; }
  .section-head.split, .head-aside { flex-direction: column; align-items: flex-start; gap: 16px; }
  .vault { height: 320px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .cards-4, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .devices { height: 280px; }
  .laptop { right: 50px; }
  .phone { width: 110px; border-radius: 20px; padding: 6px; }
  .phone-screen { border-radius: 15px; padding: 18px 8px; }
  .phone-screen img { width: 64px; margin-bottom: 14px; }
  .phone-screen p { font-size: 10px; }
  .eyebrow-lg { letter-spacing: .28em; font-size: 12px; }
  .lead { font-size: 16px; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .cta { background: linear-gradient(180deg, rgba(5,8,15,.85), rgba(5,8,15,.5)), url(/assets/mountains-dusk.svg) 70% center / cover; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Simple pages (404 / legal) ===== */
.page .site-header { position: sticky; }
.page-body { min-height: 70vh; padding: 80px 0 100px; }
.page-body h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-bottom: 18px; }
.page-body h2 { font-size: 22px; margin: 34px 0 10px; }
.page-body p { color: var(--light-dim); margin-bottom: 12px; }
.page-body a:not(.btn) { color: var(--blue); text-decoration: underline; }
.page-body .todo { font-style: italic; font-weight: 600; color: #b45309; }
.page .nav-cta { display: inline-flex; }
.page .footer-bottom { margin-top: 0; }
