/* ============================================================
   ViaTechLabs — Traffic Aesthetic
   Stop-sign red × Caution yellow × Asphalt black × Marking white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --mp-red:        #E50914;
  --mp-red-bright: #FF1B2D;
  --vc-yellow:     #FFD60A;
  --vc-yellow-soft:#FFE74D;

  --bg:        #0A0A0A;
  --bg-elev:   #141414;
  --bg-line:   #262626;
  --white:     #FFFFFF;

  --text:      #F5F5F5;
  --text-dim:  #A8A8A8;
  --text-mute: #5C5C5C;

  --display:   'Anton', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body:      'IBM Plex Sans', system-ui, sans-serif;
  --mono:      'IBM Plex Mono', 'Courier New', monospace;

  --max:       1180px;
  --gutter:    32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  min-height: 100vh;
}

a { color: var(--vc-yellow); text-decoration: none; transition: color .15s; }
a:hover { color: var(--white); }

::selection { background: var(--vc-yellow); color: var(--bg); }

/* Brand bar */
.brand-bar { display: flex; height: 5px; }
.brand-bar .red    { flex: 1; background: var(--mp-red); }
.brand-bar .yellow { flex: 1; background: var(--vc-yellow); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--bg-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo-compact {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand-logo-compact { height: 42px; }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--bg-line);
}
.lang-switcher a {
  color: var(--text-mute);
  padding: 4px 8px;
  transition: color .15s;
}
.lang-switcher a:hover { color: var(--text); }
.lang-switcher a.active { color: var(--vc-yellow); }
.lang-switcher .sep { color: var(--text-mute); padding: 0 2px; }

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-nav a {
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--vc-yellow);
}

@media (max-width: 720px) {
  .lang-switcher { padding-right: 14px; margin-right: 14px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; }
}

/* ============================================================
   HERO — two column layout
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 80px;
    padding: 110px var(--gutter) 120px;
  }
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-content h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--white);
}
.hero-content h1 .red    { color: var(--mp-red-bright); }
.hero-content h1 .yellow { color: var(--vc-yellow); }

.hero-content p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 56ch;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-line);
}
.section-heading .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--vc-yellow);
  letter-spacing: 0.1em;
}
.section-heading h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
}
.section-heading .rule { flex: 1; height: 1px; background: var(--bg-line); margin: 0 0 6px; align-self: end; }

/* ============================================================
   APP CARDS
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 0 100px;
}
@media (min-width: 760px) { .apps-grid { grid-template-columns: 1fr 1fr; } }

.app-card {
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--mp-red);
}
.app-card.is-vc::before { background: var(--vc-yellow); }
.app-card:hover { transform: translateY(-3px); border-color: var(--mp-red); }
.app-card.is-vc:hover { border-color: var(--vc-yellow); }

.app-card-inner { padding: 32px 30px 30px; }

.app-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  font-family: var(--display);
  font-size: 28px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.app-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.app-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 24px;
  gap: 12px;
}
.app-spec .status {
  padding: 4px 10px;
  border: 1px solid var(--mp-red);
  color: var(--mp-red-bright);
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.app-card.is-vc .app-spec .status {
  border-color: var(--vc-yellow);
  color: var(--vc-yellow);
}
.app-card h3 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--white);
}
.app-card .tagline {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mp-red-bright);
  margin-bottom: 22px;
}
.app-card.is-vc .tagline { color: var(--vc-yellow); }
.app-card .desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin-bottom: 28px; }

.app-card .availability {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.app-card .availability strong { color: var(--text-dim); font-weight: 500; }

.app-card .links {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--bg-line);
}
.app-card .links a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-card .links a:hover { color: var(--mp-red-bright); }
.app-card.is-vc .links a:hover { color: var(--vc-yellow); }
.app-card .links a::before { content: '→'; color: var(--mp-red); }
.app-card.is-vc .links a::before { color: var(--vc-yellow); }
.app-card .links .placeholder {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================================
   CONTACT — single centered email
   ============================================================ */
.contact {
  background: var(--bg-elev);
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  padding: 64px 40px;
  margin-bottom: 96px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--mp-red) 0 50%, var(--vc-yellow) 50% 100%);
}
.contact .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--vc-yellow);
  margin-bottom: 14px;
}
.contact .email {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.contact .email a {
  color: var(--white);
  border-bottom: 2px solid var(--vc-yellow);
  padding-bottom: 4px;
  text-transform: none;
}
.contact .email a:hover { color: var(--vc-yellow); }
.contact .operated-by {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--bg-line);
  background: var(--bg);
  padding: 56px var(--gutter) 40px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .site-footer .inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; align-items: start; }
}
.footer-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}
.site-footer .col p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 36ch;
}
.site-footer .col h4 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--vc-yellow);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer .col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.9;
  text-decoration: none;
}
.site-footer .col a:hover { color: var(--vc-yellow); }
.site-footer .meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px dashed var(--bg-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--gutter) 96px;
}
.legal .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal .breadcrumb a { color: var(--text-dim); }
.legal .breadcrumb a:hover { color: var(--vc-yellow); }

.legal .doc-meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mp-red-bright);
  margin-bottom: 14px;
}
.legal h1 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.005em;
  color: var(--white);
}
.legal .updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--bg-line);
}
.legal h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 44px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--mp-red);
}
.legal p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 16px;
}
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--vc-yellow); border-bottom: 1px solid rgba(255,214,10,0.3); }
.legal a:hover { border-bottom-color: var(--vc-yellow); }
.legal .signoff {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-line);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .hero { padding: 56px var(--gutter) 64px; gap: 40px; }
  .section-heading h2 { font-size: 24px; }
  .app-card-inner { padding: 26px 22px; }
  .app-card h3 { font-size: 32px; }
  .contact { padding: 44px 24px; }
  .legal h2 { font-size: 19px; }
  .footer-logo { width: 200px; }
}
