/* CITY TEHNO / Light edition. Self-contained, with no external dependencies. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f7fc;
  --text: #172745;
  --muted: #66748b;
  --line: #e0e7f1;
  --accent: #254ff0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
::selection { background: #dce7ff; color: #1834a4; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.container { width: calc(100% - 112px); max-width: 1328px; margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: #77859a; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 30; background: var(--accent); color: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { transform: none; }

/* Navigation */
.header { position: relative; z-index: 10; background: white; }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.7px; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; padding: 7px; border-radius: 10px; background: var(--accent); fill: none; stroke: white; stroke-width: 2.7; }
nav { display: flex; align-items: center; gap: 35px; font-size: .875rem; font-weight: 500; }
nav a { transition: color .2s, background .2s; }
nav a:hover { color: var(--accent); }
.nav-contact { margin-left: 16px; padding: 11px 20px; border: 1px solid #cad6eb; border-radius: 30px; }
.nav-contact:hover { background: #eef3ff; }
.nav-contact span { margin-left: 22px; }
.menu-toggle { display: none; }

/* Opening composition */
.hero { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 35px; padding-top: 65px; }
.hero-content { align-self: center; padding-bottom: 22px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: #365591; background: #eef3ff; border: 1px solid #e1e9fb; border-radius: 30px; padding: 7px 12px; font-size: .75rem; font-weight: 600; letter-spacing: .8px; }
.small-cross { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.hero h1 { font-size: clamp(3.1rem,5.4vw,5.1rem); line-height: 1.06; font-weight: 600; letter-spacing: -.062em; margin: 30px 0 26px; }
.hero h1 .accent { display: inline-block; padding-bottom: 5px; }
.hero-description { color: #617088; line-height: 1.8; margin: 0 0 30px; font-size: 1.0625rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--accent); color: white; border-radius: 40px; padding: 9px 10px 9px 22px; font-size: .9375rem; font-weight: 600; box-shadow: 0 6px 18px #254ff01a; transition: background .2s, transform .2s; }
.button:hover { background: #163ccb; transform: translateY(-2px); }
.button span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffffff20; font-size: 1.25rem; }
.text-link { font-size: .875rem; font-weight: 500; padding: 12px 0; }
.text-link span { margin-left: 9px; color: var(--accent); }
.text-link:hover { color: var(--accent); }
.hero-visual { align-self: center; position: relative; min-width: 0; background: linear-gradient(145deg,#f0f5ff 0%,#e8efff 65%,#e5f6ff 100%); border: 1px solid #e0e9fa; border-radius: 32px; padding: 26px 6px 24px; }
.visual-top, .visual-bottom { display: flex; justify-content: space-between; gap: 12px; color: #51678d; font: .75rem/1.5 var(--mono); }
.visual-top { margin-inline: 23px; letter-spacing: .3px; }
.visual-code { color: #51678d; white-space: nowrap; }
.network { width: 100%; height: auto; overflow: visible; }
.visual-bottom { margin-inline: 23px; font-size: .75rem; }
.visual-bottom span:first-child { display: flex; align-items: center; gap: 8px; }
.visual-bottom i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.visual-bottom span:last-child { display: none; }
.diagram-node rect { fill: #ffffff; stroke: #c8d7f1; filter: drop-shadow(0 3px 4px #6d88b318); }
.diagram-node path, .diagram-node circle { stroke: #315af5; stroke-width: 1.5; }
.diagram-node text { font: 12px var(--mono); letter-spacing: -.2px; fill: #203656; }
.diagram-node .node-caption { font: 11px var(--font); fill: #647b9b; letter-spacing: 0; }
.core { filter: drop-shadow(0 7px 11px #254ff026); }
.hero-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-top: 62px; padding-bottom: 24px; color: #66768d; font: .75rem/1.5 var(--mono); letter-spacing: .9px; }
.hero-bottom a { display: flex; gap: 22px; align-items: center; font: .875rem var(--font); letter-spacing: 0; color: var(--text); }
.hero-bottom a span { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; }
.hero-bottom a:hover { color: var(--accent); }

/* About */
.section { padding-block: 100px; }
.section-label { color: #5f7291; font: 500 .75rem/1.7 var(--mono); letter-spacing: 1px; }
.section-index { color: var(--accent); margin-right: 15px; }
h2 { font-size: clamp(2rem,3.6vw,3.25rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 550; margin: 0; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 45px; }
.about .section-label { padding-top: 8px; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 30px; }
.about-copy p { color: #66748b; font-size: 1rem; line-height: 1.8; margin: 0; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 34px; font-size: .875rem; }
.principles>span { padding: 15px; background: #f4f7fc; border-radius: 12px; }
.principles b { display: block; font: .75rem var(--mono); color: var(--accent); margin-bottom: 12px; font-weight: 400; }

/* Expertise: two large cards and three compact cards. */
.expertise { padding-top: 35px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
.section-heading .section-label { margin-bottom: 23px; }
.section-heading>p { color: #66748b; font-size: 1rem; margin: 0 0 5px; }
.services { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.service { position: relative; grid-column: span 2; background: #f4f7fc; border: 1px solid #e6ecf5; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:nth-child(-n+2) { grid-column: span 3; background: #eef3ff; }
.service:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #254ff009; border-color: #b5c7f5; }
.service-number { position: absolute; right: 26px; top: 24px; font: .75rem var(--mono); color: #697c9a; }
.service>svg { width: 49px; height: 49px; padding: 10px; margin-bottom: 28px; border-radius: 13px; background: white; stroke: var(--accent); stroke-width: 1.5; fill: none; box-shadow: 0 3px 8px #254ff006; }
.service h3 { font-size: 1.375rem; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 7px; }
.service-title>span { display: block; font-size: .875rem; line-height: 1.45; color: #62718a; }
.service>p { font-size: 1rem; line-height: 1.7; color: #62718a; margin: 19px 0 24px; }
.service-tag { margin-top: auto; font: .75rem var(--mono); letter-spacing: .8px; color: #385897; }

/* Coming soon */
.coming-panel { position: relative; overflow: hidden; background: #254ff0; color: white; border-radius: 28px; padding: 42px 46px; }
.coming-panel:after { content: ''; position: absolute; inset: 0 0 0 55%; background-image: linear-gradient(#ffffff13 1px,transparent 1px),linear-gradient(90deg,#ffffff13 1px,transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: linear-gradient(90deg,transparent,black); }
.coming-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 43px; }
.coming-top .section-label, .coming-top .section-index { color: #e4ecff; }
.coming-badge { display: flex; align-items: center; gap: 9px; background: #ffffff15; border: 1px solid #ffffff4a; border-radius: 30px; padding: 7px 13px; font: .75rem var(--mono); letter-spacing: .8px; white-space: nowrap; }
.coming-badge i { width: 6px; height: 6px; border-radius: 50%; background: #a3d8ff; animation: status-pulse 3s ease-in-out infinite; }
.coming-panel h2 { font-size: clamp(2rem,3.5vw,3.4rem); position: relative; z-index: 1; }
.coming-panel h2 span { color: #d4e1ff; }
.coming-bottom { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.coming-bottom p { color: #e0e9ff; font-size: 1rem; margin: 24px 0 0; line-height: 1.75; }
.coming-mark { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #ffffff50; border-radius: 50%; font-size: 2.7rem; line-height: 1; flex-shrink: 0; }

/* Real contact links */
.contacts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; }
.contact-intro .section-label { margin-bottom: 27px; }
.contact-intro h2 { font-size: clamp(2rem,3.1vw,3rem); }
.contact-intro>p { color: #66748b; font-size: 1rem; margin: 25px 0 0; }
.contact-list { margin: 0; min-width: 0; }
.contact-list>div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: #66748b; font-size: .875rem; margin-bottom: 10px; }
.contact-list dd { font-size: clamp(1.1rem,1.8vw,1.7rem); font-weight: 500; letter-spacing: -.04em; margin: 0; }
.contact-list a { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 44px; }
.contact-list a span { color: var(--accent); }
.contact-list a:hover { color: var(--accent); }

/* Quiet, oversized signature */
.footer { border-top: 1px solid var(--line); padding-top: 37px; }
.footer-brand { display: block; font-size: clamp(3rem,12vw,11.3rem); font-weight: 650; letter-spacing: -.07em; line-height: 1.05; white-space: nowrap; color: #d8e3f5; width: fit-content; transition: color .3s; }
.footer-brand:hover { color: #b8ccf3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px 30px; color: #64738a; font-size: .75rem; }
.footer-bottom>a { color: #253c61; }
.footer-bottom>a>span { margin-left: 20px; }
.reveal { opacity: 1; transform: none; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes status-pulse { 50% { opacity: .45; } }

@media (max-width:1100px) {
  .container { width: calc(100% - 64px); }
  .hero { column-gap: 24px; padding-top: 45px; }
  .hero h1 { font-size: clamp(2.7rem,5.3vw,3.7rem); }
  .hero-actions { gap: 14px; }
  .visual-top { font-size: .625rem; margin-inline: 13px; }
  .visual-bottom { font-size: .625rem; margin-inline: 13px; }
  .about { grid-template-columns: 1fr 2.6fr; gap: 30px; }
  .section { padding-block: 80px; }
  .expertise { padding-top: 25px; }
  .service { padding: 23px; }
  .service h3 { font-size: 1.1875rem; }
  .contacts { gap: 40px; }
}
@media (max-width:800px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 84px; }
  nav { gap: 18px; }
  .nav-contact { margin-left: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero h1 { font-size: clamp(3.2rem,8.7vw,4.7rem); }
  .hero-content { padding-bottom: 0; }
  .hero-description { max-width: 510px; }
  .hero-visual { margin-top: 38px; max-width: 590px; width: 100%; justify-self: center; padding-block: 23px; }
  .visual-top, .visual-bottom { font-size: .75rem; margin-inline: 22px; }
  .hero-bottom { margin-top: 32px; }
  .about { grid-template-columns: 1fr; gap: 25px; }
  .section { padding-block: 64px; }
  .expertise { padding-top: 15px; }
  .services { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .service, .service:nth-child(-n+2) { grid-column: span 1; }
  .service:last-child { grid-column: 1/-1; }
  .section-heading>p { max-width: 190px; font-size: .9375rem; }
  .section-heading>p br { display: none; }
  .coming-panel { padding: 32px; }
  .coming-panel h2 { font-size: 2.4rem; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .contact-list { width: 100%; }
  .contact-list dd { font-size: 1.5rem; }
  .contact-intro h2 { font-size: 2.7rem; }
}
@media (max-width:560px) {
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 78px; }
  .logo { font-size: 1.125rem; }
  .logo svg { width: 34px; height: 34px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; padding: 8px; background: #f1f5fd; border: 1px solid #dce5f4; border-radius: 50%; color: var(--text); cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { width: 100%; padding: 5px 0 20px; justify-content: space-between; gap: 10px; font-size: .8125rem; }
  .nav-contact { padding: 9px 12px; }
  .nav-contact span { margin-left: 8px; }
  .js-enabled nav { display: none; }
  .js-enabled nav.is-open { display: flex; }
  .hero { padding-top: 27px; }
  .eyebrow { font-size: .625rem; letter-spacing: .4px; padding: 7px 10px; }
  .hero h1 { font-size: clamp(2.65rem,10.4vw,3.6rem); margin: 25px 0 22px; line-height: 1.1; }
  .hero-description { font-size: 1rem; margin-bottom: 24px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 12px 20px; }
  .button { font-size: .875rem; padding-left: 18px; gap: 20px; }
  .text-link { font-size: .875rem; }
  .hero-visual { border-radius: 22px; padding: 20px 0; margin-top: 30px; }
  .visual-top, .visual-bottom { font-size: .625rem; margin-inline: 15px; }
  .visual-top { letter-spacing: 0; }
  .hero-bottom { gap: 20px; letter-spacing: 0; font-size: .6875rem; }
  .hero-bottom>span { max-width: 215px; }
  .hero-bottom a { gap: 8px; flex-shrink: 0; }
  .hero-bottom a span { width: 28px; height: 28px; }
  h2 { font-size: 2.05rem; }
  .about-copy { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
  .principles { gap: 7px; font-size: .75rem; }
  .principles>span { padding: 12px 8px; border-radius: 9px; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading>p { max-width: 290px; margin-top: 20px; font-size: 1rem; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(-n+2), .service:last-child { grid-column: 1; }
  .service { padding: 25px; border-radius: 20px; }
  .service h3 { font-size: 1.375rem; }
  .service>svg { margin-bottom: 20px; }
  .service>p { margin-block: 17px 22px; }
  .coming-panel { padding: 26px; border-radius: 23px; }
  .coming-top { flex-wrap: wrap; gap: 17px; margin-bottom: 30px; }
  .coming-panel h2 { font-size: 1.95rem; }
  .coming-bottom { align-items: end; gap: 12px; }
  .coming-bottom p { font-size: 1rem; }
  .coming-mark { width: 39px; height: 39px; font-size: 1.5rem; }
  .contact-intro h2 { font-size: 2.15rem; }
  .contact-list dd { font-size: 1.35rem; }
  .footer { padding-top: 25px; }
  .footer-brand { font-size: 12.2vw; }
  .footer-bottom { flex-wrap: wrap; gap: 14px; font-size: .75rem; padding-block: 24px; }
  .footer-bottom>span:nth-child(2) { display: none; }
  .footer-bottom>a>span { margin-left: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
  .flow { display: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* Theme selector: always accessible outside the mobile navigation. */
.header-inner { gap: 24px; }
.logo { order: 1; }
.header-inner nav { order: 2; margin-left: auto; }
.header-actions { order: 3; display: flex; align-items: center; gap: 10px; }
.theme-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); }
.theme-switch[hidden] { display: none; }
.theme-switch button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 24px; background: transparent; color: var(--muted); cursor: pointer; font-size: .8125rem; font-weight: 550; }
.theme-switch button[aria-pressed="true"] { background: var(--bg); color: var(--accent); box-shadow: 0 2px 7px #17274512; }
.theme-switch button:hover { color: var(--accent); }
.theme-switch svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
@media (max-width:1100px) {
  .theme-switch button span { display: none; }
  .theme-switch button { width: 40px; padding: 8px; }
  .header-inner { gap: 20px; }
  .header-inner nav { gap: 20px; }
}
@media (max-width:800px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-actions { order: 2; margin-left: auto; gap: 8px; }
  .header-inner nav { order: 3; width: 100%; margin: 0; padding: 5px 0 20px; justify-content: space-between; }
  .js-enabled nav { display: none; }
  .js-enabled nav.is-open { display: flex; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 40px; height: 44px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width:380px) {
  .logo { font-size: .9375rem; gap: 7px; letter-spacing: -.5px; }
  .logo svg { width: 28px; height: 30px; padding: 5px; }
  .header-inner { gap: 8px; }
}

/* Dark scheme: the same layout with independently tuned surfaces and contrast. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101722;
  --surface: #192334;
  --text: #edf2ff;
  --muted: #a6b5ce;
  --line: #2c3b52;
  --accent: #93aeff;
}
[data-theme="dark"] ::selection { background: #365ba3; color: white; }
[data-theme="dark"] .header { background: var(--bg); }
[data-theme="dark"] .logo svg, [data-theme="dark"] .button { background: #315af5; }
[data-theme="dark"] .button:hover { background: #466efc; }
[data-theme="dark"] .nav-contact { border-color: #40516c; }
[data-theme="dark"] .nav-contact:hover { background: #1f2d45; }
[data-theme="dark"] .eyebrow { color: #b5c9f8; background: #1b2a43; border-color: #2a3d5b; }
[data-theme="dark"] .muted { color: #99abc7; }
[data-theme="dark"] .hero-description,
[data-theme="dark"] .about-copy p,
[data-theme="dark"] .section-heading>p,
[data-theme="dark"] .service-title>span,
[data-theme="dark"] .service>p,
[data-theme="dark"] .contact-intro>p,
[data-theme="dark"] .contact-list dt,
[data-theme="dark"] .footer-bottom { color: #a6b5ce; }
[data-theme="dark"] .section-label,
[data-theme="dark"] .hero-bottom,
[data-theme="dark"] .service-number { color: #a2b4d1; }
[data-theme="dark"] .hero-visual { background: linear-gradient(145deg,#1b2842,#1a2440 65%,#163247); border-color: #2b3c5b; }
[data-theme="dark"] .visual-top,
[data-theme="dark"] .visual-code,
[data-theme="dark"] .visual-bottom { color: #acc0e1; }
[data-theme="dark"] #dots circle { fill: #3b5275; }
[data-theme="dark"] .orbit-lines { stroke: #354966; }
[data-theme="dark"] .connection { stroke: #759afa; }
[data-theme="dark"] .flow { fill: #b5d6ff; }
[data-theme="dark"] .core>path:first-child { fill: #263e69; stroke: #3c5d96; }
[data-theme="dark"] .diagram-node rect { fill: #202f49; stroke: #445b7c; filter: drop-shadow(0 3px 4px #060d181c); }
[data-theme="dark"] .diagram-node path,
[data-theme="dark"] .diagram-node circle { stroke: #9dbbff; }
[data-theme="dark"] .diagram-node text { fill: #ecf2ff; }
[data-theme="dark"] .diagram-node .node-caption { fill: #b0c0db; }
[data-theme="dark"] .principles>span { background: #192536; }
[data-theme="dark"] .service { background: #192334; border-color: #2a3950; }
[data-theme="dark"] .service:nth-child(-n+2) { background: #1c2941; }
[data-theme="dark"] .service:hover { border-color: #5677b2; box-shadow: 0 12px 30px #00000012; }
[data-theme="dark"] .service>svg { background: #263650; }
[data-theme="dark"] .service-tag { color: #a4bfff; }
[data-theme="dark"] .coming-panel { background: #284ac5; }
[data-theme="dark"] .coming-top .section-label,
[data-theme="dark"] .coming-top .section-index { color: #e4ecff; }
[data-theme="dark"] .footer-brand { color: #354a6b; }
[data-theme="dark"] .footer-brand:hover { color: #5e7ba9; }
[data-theme="dark"] .footer-bottom>a { color: #c4d6f4; }
[data-theme="dark"] .theme-switch button[aria-pressed="true"] { background: #304566; color: white; }
