/* Energy Surgical — design system */
:root {
  --ink: #0a1a2f;
  --ink-2: #12284a;
  --ink-3: #1d3a66;
  --gold: #f0a91e;
  --gold-deep: #d18c06;
  --blue: #2f5ba8;
  --surface: #f4f6f9;
  --surface-2: #eaeef4;
  --line: #dfe5ee;
  --text: #0f1e33;
  --muted: #53647a;
  --white: #ffffff;
  --destructive: #b42318;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-control: 6px;
  --shadow: 0 1px 2px rgba(10, 26, 47, .06), 0 12px 32px -12px rgba(10, 26, 47, .18);
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; }

/* Bilingual: every text exists as .en and .pt */
html[data-lang="en"] .pt, html[data-lang="en"] .es { display: none !important; }
html[data-lang="pt"] .en, html[data-lang="pt"] .es { display: none !important; }
html[data-lang="es"] .en, html[data-lang="es"] .pt { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section { padding: 112px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 16px 0 18px; }
.section-head p { color: var(--muted); font-size: 19px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: var(--radius-control); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--ink); }
.link-arrow { font-family: var(--font-head); font-weight: 700; color: var(--blue); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { color: var(--ink); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-control); overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 8px 11px; font: 700 12px var(--font-head); letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%); }
.hero::after {
  content: ""; position: absolute; right: -14vw; top: -18vw; width: 62vw; height: 62vw; border-radius: 50%;
  border: 1px solid rgba(240,169,30,.35); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: calc(100vh - 78px); max-height: 900px; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); font-weight: 800; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { position: relative; z-index: 1; }
.hero-media img { width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.hero-tag {
  position: relative; display: inline-block; margin: 18px 0 0 24px; background: var(--white); border-left: 3px solid var(--gold);
  box-shadow: var(--shadow); padding: 14px 18px; border-radius: var(--radius-md); max-width: 280px;
}
.hero-tag strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.hero-tag span { font-size: 13px; color: var(--muted); }

/* Credentials band */
.creds { background: var(--ink); color: var(--white); }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 40px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred b { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.cred span { font-size: 15px; color: #c7d2e2; }

/* Partners */
.partners { border-bottom: 1px solid var(--line); }
.partners-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 0; flex-wrap: wrap; }
.partners-row .label { font: 700 12px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partner-mark { display: flex; align-items: baseline; gap: 10px; }
.partner-mark b { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.partner-mark small { font-size: 13px; color: var(--muted); }

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.product-card .media { background: var(--surface); height: 260px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.product-card .media img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chip { align-self: flex-start; font: 700 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: #eaf0fa; padding: 5px 10px; border-radius: var(--radius-sm); }
.product-card h3 { font-size: 22px; }
.product-card .maker { font-size: 14px; color: var(--muted); }
.product-card p { color: var(--muted); font-size: 15.5px; }
.status { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; flex: none; }
.status.pending::before { background: var(--gold); }
.status.info::before { background: var(--blue); }

/* Spotlight */
.spotlight { background: var(--surface); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot-media { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.spot-media img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.spot-grid h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 16px 0 18px; }
.spot-grid > div > p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.checklist { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.checklist svg { margin-top: 3px; color: var(--gold-deep); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.pillar:last-child { border-right: 0; margin-right: 0; }
.pillar svg { color: var(--blue); margin-bottom: 22px; }
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* LATAM */
.latam { background: radial-gradient(circle at 80% 20%, var(--ink-3) 0%, var(--ink) 60%); color: var(--white); position: relative; overflow: hidden; }
.latam .eyebrow { color: #9fb6dd; }
.latam h2 { color: var(--white); }
.latam .section-head p { color: #c7d2e2; }
.latam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.map svg { width: 100%; height: auto; max-height: 560px; }
.country-list { list-style: none; display: grid; gap: 0; }
.country { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: center; }
.country:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.country h3 { color: var(--white); font-size: 21px; }
.country p { color: #aebcd2; font-size: 14.5px; margin-top: 4px; }
.badge { font: 700 11px var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.badge-hub { background: var(--gold); color: var(--ink); }
.badge-presence { border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.badge-hq { background: var(--white); color: var(--ink); }
.badge-soon { border: 1px dashed var(--gold); color: var(--gold); }
.note { font-size: 13px; color: #8fa1bb; margin-top: 22px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 15px var(--font-head); color: var(--gold-deep); position: absolute; top: -12px; background: var(--white); padding-right: 10px; }
.step h3 { font-size: 20px; margin: 6px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.contact-grid h2 { font-size: clamp(32px, 3.4vw, 44px); margin: 16px 0 18px; }
.contact-grid > div > p { color: var(--muted); font-size: 18px; }
.contact-points { list-style: none; display: grid; gap: 18px; margin-top: 36px; }
.contact-points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.contact-points svg { color: var(--blue); margin-top: 3px; }
.contact-points b { display: block; font-family: var(--font-head); color: var(--ink); }
.contact-points a { color: var(--muted); }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; }

/* Form controls */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--destructive); margin-left: 3px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--text); background: var(--white);
  border: 1px solid #c9d3e0; border-radius: var(--radius-control); padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,91,168,.15); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field .err { color: var(--destructive); font-size: 13px; }
.field .help { color: var(--muted); font-size: 13px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 4px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--text); cursor: pointer; }
.checks input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.form-actions .btn { width: 100%; padding: 17px; font-size: 16px; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-error { color: var(--destructive); font-size: 14px; }
.form-legal { font-size: 12.5px; color: var(--muted); }
.form-status { color: var(--muted); }
.thanks { text-align: center; padding: 40px 10px; }
.thanks h3 { font-size: 26px; margin-bottom: 10px; }
.thanks p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #aebcd2; padding: 72px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand img { height: 32px; width: auto; margin-bottom: 18px; filter: brightness(1.05); }
.foot-grid h4 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: #aebcd2; }
.foot-grid a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: #8091ab; }

/* Technologies page */
.page-hero { background: var(--ink); color: var(--white); padding: 96px 0 80px; }
.page-hero .eyebrow { color: #9fb6dd; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 4.6vw, 60px); margin: 18px 0 18px; max-width: 900px; }
.page-hero p { color: #c7d2e2; font-size: 19px; max-width: 720px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { text-decoration: none; color: var(--white); border: 1px solid rgba(255,255,255,.28); padding: 9px 14px; border-radius: var(--radius-control); font-size: 14px; font-weight: 500; }
.jump a:hover { background: var(--white); color: var(--ink); }
.tech { padding: 104px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.tech:nth-of-type(even) { background: var(--surface); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.tech:nth-of-type(even) .tech-grid > .tech-media { order: 2; }
.tech-media { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.tech-media img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.tech h2 { font-size: clamp(30px, 3.2vw, 42px); margin: 14px 0 8px; }
.tech .maker { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.tech .desc { font-size: 17.5px; color: var(--text); margin-bottom: 26px; }
.callout { border-left: 3px solid var(--gold); background: var(--white); padding: 16px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 26px; font-size: 15.5px; box-shadow: var(--shadow); }
.reg { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 14.5px; }
.reg div { display: flex; flex-direction: column; }
.reg span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.reg b { font-family: var(--font-head); color: var(--ink); }
.cta-band { background: var(--gold); padding: 72px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3vw, 38px); max-width: 720px; }
.cta-band .btn-primary { background: var(--ink); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--ink-3); }

/* Responsive */
@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .pillar:nth-child(2) { border-right: 0; margin-right: 0; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 32px 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .nav .btn { display: none; }
  .hero-grid, .spot-grid, .latam-grid, .contact-grid, .tech-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { min-height: 0; max-height: none; padding: 48px 0 56px; }
  .tech:nth-of-type(even) .tech-grid > .tech-media { order: 0; }
  .section { padding: 80px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .products-grid, .pillars, .steps, .creds-grid, .checks, .lead-form, .foot-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; margin-right: 0; padding-right: 0; }
  .cred { border-left: 0; padding-left: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .form-card { padding: 26px 20px; }
  .hero-tag { position: static; margin-top: 16px; }
}
/* Videos */
.videos-home { background: var(--white); }
.tech-videos { margin-top: 64px; }
.tech-videos .eyebrow { margin-bottom: 20px; }
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vgrid.one { grid-template-columns: minmax(0, 620px); }
.vcard { margin: 0; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.vcard video, .vcard iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; object-fit: contain; }
.vcard figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.vcard .dur { color: #9fb6dd; font-weight: 600; font-size: 13px; }
@media (max-width: 760px) { .vgrid, .vgrid.one { grid-template-columns: 1fr; } }
