:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --blue: #0284c7;
  --blue-hover: #0369a1;
  --blue-light: #e0f2fe;
  --blue-dark: #0c4a6e;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-hover); }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
::selection { background: var(--blue-light); color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; color: var(--text); }
.logo-text .rbr { font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.logo-text .sub { font-size: 9px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

nav.primary { display: flex; gap: 2px; }
.nav-item { position: relative; }
nav.primary > .nav-item > a {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--text-body);
  padding: 8px 14px; border-radius: var(--radius);
  transition: background .15s, color .15s;
}
nav.primary > .nav-item > a:hover,
nav.primary > .nav-item > a.active {
  background: var(--blue-light);
  color: var(--blue);
}
.caret { width: 8px; height: 8px; flex-shrink: 0; opacity: 0.5; transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 50;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-inner {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 250px; padding: 6px;
  box-shadow: var(--shadow-md);
}
.dropdown-inner a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13.5px; color: var(--text-body);
  border-radius: 6px; transition: background .12s, color .12s;
}
.dropdown-inner a:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-inner a .dnum {
  font-family: var(--font-mono); font-size: 10px; color: var(--blue); flex-shrink: 0;
  min-width: 22px;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: 0.3px;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn svg { width: 10px; height: 10px; transition: transform .2s; }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 150px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; color: var(--text-body);
  text-align: left; transition: background .12s;
}
.lang-menu button:hover { background: var(--blue-light); color: var(--blue); }
.lang-menu button.active { color: var(--blue); font-weight: 600; }
.flag { font-size: 14px; line-height: 1; }

.burger { display: none; width: 24px; height: 18px; position: relative; flex-shrink: 0; }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--text);
  border-radius: 1px; transition: transform .2s, opacity .2s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 24px;
  font-weight: 600;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--blue); border-radius: 1px; }
h1 {
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.1; letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 24px;
}
h1 em { font-style: normal; color: var(--blue); }
.hero p.lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-muted);
  max-width: 540px; margin-bottom: 36px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius);
  transition: all .2s;
  border: 1px solid transparent;
  letter-spacing: 0.1px;
}
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--blue-hover); transform: translateY(-1px); color: var(--white); }
.btn-ghost { border-color: var(--border); color: var(--text-body); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Sections shared */
section { padding: 96px 0; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-head .desc { color: var(--text-muted); max-width: 480px; margin: 0 auto; font-size: 15px; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: box-shadow .25s, transform .2s;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: 0.5px; }
.card .icon { width: 32px; height: 32px; color: var(--blue); }
.card h3, .card .card-title { font-size: 17px; font-weight: 600; color: var(--text); }
.card p, .card .card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* Service list */
.service-list { display: flex; flex-direction: column; max-width: 800px; margin: 0 auto; }
.service-row {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow .2s, transform .2s;
  cursor: default;
}
.service-row:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.service-row .num {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  min-width: 32px;
}
.service-row .content { flex: 1; }
.service-row h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.service-row p { color: var(--text-muted); font-size: 14px; }
.service-row .arrow { color: var(--blue); font-size: 18px; opacity: 0; transition: opacity .2s; }
.service-row:hover .arrow { opacity: 1; }

/* Solutions grid */
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sol-list { display: flex; flex-direction: column; }
.sol-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 20px;
}
.sol-item:first-child { border-top: 1px solid var(--border); }
.sol-item .tag { font-family: var(--font-mono); color: var(--blue); font-size: 11px; font-weight: 600; padding-top: 2px; min-width: 28px; }
.sol-item h3 { font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.sol-item p { color: var(--text-muted); font-size: 14px; }
.sol-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--bg-alt);
  position: sticky; top: 90px;
}
.sol-panel .stat {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.sol-panel .stat:last-child { border-bottom: none; }
.sol-panel .stat .k { color: var(--text-muted); font-size: 13.5px; }
.sol-panel .stat .v { font-weight: 600; color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
  font-weight: 600;
}
.field input, .field textarea {
  width: 100%; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 12px 14px; font-size: 14px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.form-msg { margin-top: 12px; font-size: 13px; color: var(--blue); display: none; }

.contact-info {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-alt);
}
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row .ic { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.info-row .k { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; font-weight: 600; }
.info-row .v { font-size: 14px; color: var(--text-body); }
.info-row a.v { color: var(--blue); }
.info-row a.v:hover { color: var(--blue-hover); }

/* Page hero (internal pages) */
.page-hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.page-hero h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 600px; font-size: 15px; }
.page-hero .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
.page-hero .back-link:hover { color: var(--blue); }

/* Detail section */
.detail-section { padding: 64px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.detail-content h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.detail-content h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 24px 0 10px; }
.detail-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; line-height: 1.7; }
.detail-content ul { list-style: none; padding: 0; }
.detail-content li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-body);
  font-size: 14px;
}
.detail-content li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.detail-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-alt);
  position: sticky; top: 90px;
}
.detail-sidebar h4 { font-size: 14px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.detail-sidebar ul { list-style: none; }
.detail-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.detail-sidebar li:last-child { border-bottom: none; }
.detail-sidebar li a { color: var(--text-body); }
.detail-sidebar li a:hover { color: var(--blue); }
.detail-sidebar .cta-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-sidebar .cta-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* Footer (Schneider-style) */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13.5px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--blue); }

.footer-social {
  display: flex; gap: 12px; margin-top: 16px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all .2s;
}
.footer-social a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-size: 12px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }
.wa-tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--text); color: var(--white);
  padding: 6px 12px; font-size: 12px; border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; visibility: visible; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .service-row, .wa-float { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sol-grid { grid-template-columns: 1fr; gap: 40px; }
  .sol-panel { position: static; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  nav.primary, .lang-switch { display: none; }
  .nav-open nav.primary {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; gap: 0;
  }
  .nav-open nav.primary .nav-item { width: 100%; }
  .nav-open nav.primary .nav-item > a { padding: 12px 0; width: 100%; border-radius: 0; }
  .nav-open .caret { display: inline-block; margin-left: auto; opacity: 0.6; }
  .nav-open .dropdown {
    display: none; position: static; padding-top: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-open .nav-item.open > .dropdown { display: block; }
  .nav-open .nav-item.open .caret { transform: rotate(180deg); }
  .nav-open .dropdown-inner {
    background: var(--blue-light); border: none; box-shadow: none;
    min-width: 0; border-radius: 8px; padding: 4px; margin-bottom: 8px;
  }
  .nav-open .dropdown-inner a { padding: 10px 12px; }
  .nav-open nav.primary .lang-switch {
    display: block; position: static;
    margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border);
  }
  .burger { display: block; }
  .hero { padding: 60px 0 80px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-sidebar { position: static; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .service-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .service-row .arrow { display: none; }
}