@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}

/* ViaCero Landing — business-focused
   Palette: ink-900 #111512, ink-800 #1b201d, ink-700 #2d332f,
   ink-50 #f6f7f6, brand-500 #2c855b, brand-400 #47a075, brand-300 #74bd97
   Display: Instrument Serif / Body: DM Sans */

:root {
  --bg: #111512;
  --surface: #1b201d;
  --surface-raised: #242a26;
  --border: #333b35;
  --border-ui: #5a645d;
  --text: #f3f5f3;
  --text-muted: #9ca39d;
  --accent: #47a075;
  --accent-soft: #2c855b;
  --accent-glow: rgba(71, 160, 117, 0.12);
  --accent-gradient: linear-gradient(135deg, #47a075, #74bd97);
  --danger: #e05252;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==================== NAV ==================== */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(17, 21, 18, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 32px; height: 32px; object-fit: contain;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  color: var(--text); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

nav.nav-scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(17, 21, 18, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.btn-accent {
  background: var(--accent); color: #000;
}
.btn-accent:hover {
  background: var(--accent-soft); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(71,160,117,0.25);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-ui);
}
.btn-ghost:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; border-radius: 8px; }

/* ==================== HERO ==================== */

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.12;
  max-width: 780px; position: relative;
  text-wrap: balance; letter-spacing: -0.02em;
}
.hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 520px; margin: 24px auto 40px;
  position: relative; line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 14px; position: relative;
  flex-wrap: wrap; justify-content: center;
}

.hero-screenshot {
  position: relative;
  margin-top: 48px;
  max-width: 820px;
  width: 90%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(71,160,117,0.08);
}
.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==================== PROBLEM ==================== */

.problem {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.problem-card {
  padding: 28px; border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.problem-card .icon-circle {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.2rem;
}
.problem-card .icon-circle.red { background: rgba(224,82,82,0.12); color: var(--danger); }
.problem-card .icon-circle.amber { background: rgba(217,119,6,0.12); color: #d97706; }
.problem-card .icon-circle.muted { background: rgba(156,163,157,0.12); color: var(--text-muted); }

.problem-card h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
}
.problem-card p {
  color: var(--text-muted); font-size: 0.85rem; line-height: 1.6;
}

/* ==================== SECTIONS (shared) ==================== */

section { padding: 100px 24px; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }

.section-eyebrow {
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.18;
  text-wrap: balance; letter-spacing: -0.015em;
}
.section-header h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic;
}

.section-header p {
  color: var(--text-muted); font-size: 1.05rem;
  margin-top: 16px; line-height: 1.7;
}

/* ==================== SHOWCASES ==================== */

.showcases {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.showcase-reverse { direction: rtl; }
.showcase-reverse > * { direction: ltr; }

.showcase-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.showcase-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.showcase-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(71,160,117,0.12);
}

.showcase-img img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ==================== HIGHLIGHT ==================== */

.highlight {
  max-width: 1080px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}

.hl-text {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.hl-text .section-eyebrow { text-align: left; }
.hl-text h2 {
  font-size: 1.6rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.015em; margin-bottom: 16px;
}
.hl-text h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic;
}
.hl-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

.hl-visual {
  background: var(--surface-raised);
  padding: 24px; display: flex;
  align-items: center; justify-content: center;
  border-left: 1px solid var(--border);
}

/* ==================== HOW / STEPS ==================== */

.how-section { background: var(--surface); }

.steps { max-width: 800px; margin: 0 auto; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 23px; top: 24px; bottom: 24px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border));
}

.step { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; }

.step-num {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--accent);
  position: relative; z-index: 1;
}

.step-body h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.step-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 560px; }

/* ==================== BENEFITS / COMPARISON ==================== */

.comparison {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

.comp-list { display: flex; flex-direction: column; gap: 24px; }

.comp-item { display: flex; gap: 14px; align-items: flex-start; }

.comp-check {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
}

.comp-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.comp-item p { color: var(--text-muted); font-size: 0.84rem; line-height: 1.55; }

.comp-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.comp-visual-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }

.bar-group { display: flex; flex-direction: column; gap: 6px; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 500; }
.bar-label span:last-child { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.red { background: var(--danger); width: 100%; }
.bar-fill.green { background: linear-gradient(135deg, #47a075, #74bd97); width: 65%; }

.savings-box {
  text-align: center; padding: 16px;
  background: var(--accent-glow);
  border-radius: 12px; border: 1px solid rgba(71,160,117,0.18);
}
.savings-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.savings-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ==================== ROLES ==================== */

.roles-grid {
  max-width: 720px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.role-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.role-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }

.role-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.role-tag.desk { background: rgba(71,160,117,0.12); color: #74bd97; }
.role-tag.mobile { background: rgba(100,149,237,0.12); color: #6495ed; }

.role-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.role-list li {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.role-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ==================== CTA ==================== */

.cta-section { text-align: center; }

.cta-box {
  max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 56px 40px; position: relative;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; line-height: 1.2; text-wrap: balance;
  letter-spacing: -0.015em;
}
.cta-box h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-style: italic;
}
.cta-box p { color: var(--text-muted); margin: 16px 0 32px; font-size: 1rem; line-height: 1.65; }

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ==================== FOOTER ==================== */

footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; flex-wrap: wrap; gap: 16px;
}

.footer-brand {
  font-weight: 700; font-size: 1.1rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-brand-name { color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.footer-brand-name span { color: var(--accent); }

.footer-logo-img {
  width: 24px; height: 24px; object-fit: contain;
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem; color: var(--text-muted);
  width: 100%; text-align: center; margin-top: 16px;
}

/* ==================== UTILIDADES / MENU ==================== */

.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;
}

.section-no-pt { padding-top: 0; }
.mt-14 { margin-top: 14px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-ui, #5a645d);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--text);
}
.nav-toggle svg { display: block; }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
  nav {
    flex-wrap: wrap; background: var(--bg);
    padding: 12px 20px;
    border-bottom: none;
  }
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    order: 10; gap: 0; padding: 16px 0 8px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 4px; display: block;
    font-size: 1rem; color: var(--text);
  }
  .nav-right { order: 9; }
  .nav-right .btn-ghost { display: none; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-screenshot { width: 100%; margin-top: 32px; }
  section { padding: 64px 20px; }
}

@media (max-width: 768px) {
  .problem { padding: 56px 20px; }
  .problem-inner { grid-template-columns: 1fr; gap: 16px; }
  .problem-card { padding: 20px; }
  .showcases { gap: 56px; }
  .showcase { grid-template-columns: 1fr; gap: 20px; }
  .showcase-reverse { direction: ltr; }
  .showcase-text h3 { font-size: 1.15rem; }
  .showcase-text p { font-size: 0.9rem; }
  .showcase-img {
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .highlight { grid-template-columns: 1fr; border-radius: 14px; }
  .hl-text { padding: 32px 24px; }
  .hl-text h2 { font-size: 1.35rem; }
  .hl-visual { border-left: none; border-top: 1px solid var(--border); padding: 16px; }
  .showcase-screenshot { border-radius: 8px; }
  .comparison { grid-template-columns: 1fr; gap: 32px; }
  .comp-visual { padding: 24px; }
  .roles-grid { grid-template-columns: 1fr; gap: 14px; }
  .role-card { padding: 22px; }
  .steps::before { left: 22px; }
  .step { gap: 18px; padding: 20px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.6rem; }
  .footer-links { flex-wrap: wrap; row-gap: 8px; justify-content: center; }
  footer { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; margin: 16px auto 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .cta-box { padding: 36px 20px; border-radius: 14px; }
  .cta-box h2 { font-size: 1.25rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .savings-value { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
