@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --dhag-bg: #f5f4f0;
  --dhag-surface: #ffffff;
  --dhag-surface-muted: #efeee9;
  --dhag-heading: #101318;
  --dhag-text: #303740;
  --dhag-muted: #68717a;
  --dhag-border: #d9d8d2;
  --dhag-border-strong: #c4c0b8;
  --dhag-accent: #234e70;
  --dhag-accent-hover: #183b57;
  --dhag-radius: 12px;
}

* { box-sizing: border-box; }
html { background: var(--dhag-bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--dhag-text); background: var(--dhag-bg); }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
body::selection { background: #234e70; color: #fff; }

/* COMPANY SITE */
.company-page {
  --page-bg: #f5f4f0;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --ink: #101318;
  --text: #303740;
  --muted: #68717a;
  --border: #d9d8d2;
  --border-strong: #c4c0b8;
  --metal: #a7a198;
  --accent: #234e70;
  --accent-hover: #183b57;
  --accent-soft: #e6edf1;
  --container: 1220px;
  --reading: 740px;
  --radius: 12px;
  --nav-height: 76px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(16, 19, 24, .035) 1px, transparent 1px) center top / calc(min(100vw - 96px, var(--container)) / 12) 100%,
    var(--page-bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.company-page main { padding-top: var(--nav-height); }
.company-page :focus-visible { outline: 3px solid rgba(35, 78, 112, .32); outline-offset: 3px; border-radius: 8px; }

.company-page #loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: var(--page-bg);
  transition: opacity .35s ease;
}
.company-page #loader-logo { width: 124px; height: 124px; display: block; object-fit: contain; opacity: 0; transition: opacity .35s ease .1s; }
.company-page #loader-text { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.company-page #loader-bar-wrap { width: 176px; height: 1px; background: var(--border); }
.company-page #loader-bar { width: 0; height: 1px; background: var(--ink); transition: width .8s ease; }

.company-page .site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px max(32px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(217, 216, 210, .86);
  background: rgba(245, 244, 240, .9);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease;
}
.company-page .site-nav.visible { opacity: 1; transform: translateY(0); }
.company-page .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}
.company-page .nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.company-page .nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.company-page .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.company-page .nav-links a:hover,
.company-page .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-soft); }
.company-page .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.company-page .nav-toggle-lines,
.company-page .nav-toggle-lines::before,
.company-page .nav-toggle-lines::after { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.company-page .nav-toggle-lines { position: relative; }
.company-page .nav-toggle-lines::before,
.company-page .nav-toggle-lines::after { content: ''; position: absolute; left: 0; }
.company-page .nav-toggle-lines::before { top: -6px; }
.company-page .nav-toggle-lines::after { top: 6px; }
.company-page.nav-open .nav-toggle-lines { background: transparent; }
.company-page.nav-open .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.company-page.nav-open .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.company-page .company-hero,
.company-page .company-page-hero,
.company-page .contact-hero,
.company-page .section-block > *,
.company-page .footer-inner {
  width: min(100% - 96px, var(--container));
  margin-inline: auto;
}
.company-page .company-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  align-items: center;
  gap: clamp(54px, 7vw, 92px);
  padding: clamp(42px, 5vw, 62px) 0 clamp(70px, 7vw, 96px);
}
.company-page .company-page-hero,
.company-page .contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  align-items: start;
  gap: clamp(44px, 6vw, 80px);
  padding: clamp(86px, 9vw, 112px) 0 clamp(62px, 7vw, 86px);
}
.company-page .company-page-hero.single { display: block; }
.company-page .company-page-hero.single .company-copy { max-width: 820px; }
.company-page .section-block { padding: clamp(88px, 9vw, 112px) 0; border-top: 1px solid var(--border); }
.company-page .section-block:nth-of-type(even) { background: rgba(239, 238, 233, .36); }
.company-page .company-copy { min-width: 0; }
.company-page .eyebrow,
.company-page .section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.company-page .eyebrow::before,
.company-page .section-label::before { content: ''; width: 28px; height: 1px; background: var(--metal); flex: 0 0 auto; }
.company-page h1,
.company-page .section-title,
.company-page .project-name,
.company-page .founder-name {
  color: var(--ink);
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: 0;
}
.company-page h1 { max-width: 830px; margin: 0 0 24px; font-size: clamp(40px, 4.5vw, 64px); font-weight: 700; line-height: 1.08; }
.company-page .hero-sub,
.company-page .lead { max-width: 730px; margin: 0; color: var(--text); font-size: clamp(17px, 1.35vw, 20px); font-weight: 400; line-height: 1.75; }
.company-page .company-actions,
.company-page .card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.company-page .btn-primary,
.company-page .btn-secondary,
.company-page .btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.company-page .btn-primary,
.company-page .btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.company-page .btn-primary:hover,
.company-page .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.company-page .btn-secondary { border: 1px solid var(--border-strong); background: transparent; color: var(--ink); }
.company-page .btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.company-page .company-visual { min-height: 420px; display: flex; align-items: center; justify-content: center; }
.company-page .ecosystem-image {
  width: min(132%, 760px);
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateX(22px);
  filter: drop-shadow(0 24px 38px rgba(16, 19, 24, .11));
}
.company-page .company-two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 6vw, 78px); align-items: start; }
.company-page .section-kicker { align-self: start; }
.company-page .section-title { max-width: 690px; margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.14; }
.company-page .section-head { max-width: 760px; margin-bottom: 36px; }
.company-page .section-head.narrow { max-width: var(--reading); }
.company-page .section-head p { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.72; }
.company-page .company-rich { max-width: var(--reading); }
.company-page .company-rich p,
.company-page .company-rich li { margin: 0 0 16px; color: var(--text); font-size: 16px; line-height: 1.78; }
.company-page .company-rich p:last-child { margin-bottom: 0; }
.company-page .intro-note { padding-top: 2px; border-top: 1px solid var(--border-strong); }
.company-page .story-flow { position: relative; margin-inline: auto; padding-left: 32px; }
.company-page .story-flow::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: linear-gradient(var(--metal), var(--border)); }
.company-page .story-flow p { position: relative; margin-bottom: 22px; }
.company-page .story-flow p::before { content: ''; position: absolute; left: -37px; top: .7em; width: 10px; height: 10px; border: 1px solid var(--metal); background: var(--page-bg); }

.company-page .principle-list { border-top: 1px solid var(--border); }
.company-page .principle-row {
  display: grid;
  grid-template-columns: 72px minmax(190px, 3fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.company-page .principle-row span { color: var(--metal); font-size: 13px; font-weight: 600; }
.company-page .principle-row strong { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.company-page .principle-row p { margin: 0; color: var(--muted); line-height: 1.7; }

.company-page .explore-list { display: grid; border-top: 1px solid var(--border); }
.company-page .explore-item {
  display: grid;
  grid-template-columns: minmax(160px, 3fr) minmax(0, 8fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.company-page .explore-item::after { content: '→'; color: var(--accent); font-size: 20px; }
.company-page .explore-item strong { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 20px; font-weight: 700; }
.company-page .explore-item span { color: var(--muted); font-size: 15px; line-height: 1.65; }
.company-page .explore-item:hover strong { color: var(--accent); }

.company-page .project-stack { display: grid; border-top: 1px solid var(--border); }
.company-page .project-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 8fr) minmax(210px, 3fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  padding: clamp(32px, 5vw, 48px) 0;
  border-bottom: 1px solid var(--border);
}
.company-page .project-index { color: var(--metal); font-size: 13px; font-weight: 600; padding-top: 9px; }
.company-page .project-name { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.15; }
.company-page .project-tagline { max-width: 760px; margin: 0 0 14px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; }
.company-page .project-main p { max-width: 820px; margin: 0; color: var(--text); font-size: 15px; line-height: 1.76; }
.company-page .project-focus { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; max-width: 820px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.65; }
.company-page .project-focus strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.company-page .project-side { display: grid; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.company-page .project-side strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.company-page .status-badge { display: inline-flex; width: fit-content; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.company-page .company-note { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.68; }

.company-page .founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.company-page .founder-profile { display: grid; grid-template-rows: auto 1fr; align-items: start; border-top: 1px solid var(--border-strong); padding-top: 24px; }
.company-page .founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--border); background: var(--surface-soft); }
.company-page .founder-body { padding-top: 22px; }
.company-page .founder-name { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.14; }
.company-page .founder-role { margin: 0 0 12px; color: var(--ink); font-size: 16px; font-weight: 700; }
.company-page .meta-line { margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
.company-page .founder-profile p { margin: 0 0 14px; color: var(--text); font-size: 15px; line-height: 1.75; }
.company-page .founder-profile p:last-child { margin-bottom: 0; }

.company-page .contact-hero { min-height: calc(100vh - var(--nav-height) - 118px); align-items: center; }
.company-page .contact-panel { padding: 30px 0 0; border-top: 1px solid var(--border-strong); }
.company-page .contact-panel span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.company-page .contact-email { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.18; text-decoration-thickness: 1px; }
.company-page .contact-after { padding-top: 38px; padding-bottom: 70px; }
.company-page .text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.company-page .text-link:hover { color: var(--accent-hover); text-decoration: underline; }

.company-page footer { border-top: 1px solid var(--border); background: var(--surface-soft); color: var(--muted); }
.company-page .footer-inner { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px 24px; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.company-page .footer-logo { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.company-page .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.company-page .footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.company-page .footer-links a:hover { color: var(--ink); }
.company-page .footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.company-page .social-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.company-page .social-button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.company-page .social-button:hover { border-color: #b8c0bb; box-shadow: 0 8px 22px rgba(19, 31, 25, .08); transform: translateY(-1px); }
.company-page .social-button--whatsapp svg { color: #20a95b; }
.company-page .social-button--instagram svg { color: #c13584; }
.company-page .footer-copy { justify-self: end; font-size: 13px; }
.company-page .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.company-page .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .company-page *, .company-page *::before, .company-page *::after { transition: none !important; animation: none !important; }
  .company-page .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .company-page { background: var(--page-bg); }
  .company-page .company-hero,
  .company-page .company-page-hero,
  .company-page .contact-hero,
  .company-page .company-two-col { grid-template-columns: 1fr; }
  .company-page .company-visual { justify-content: flex-start; min-height: auto; }
  .company-page .ecosystem-image { width: min(100%, 560px); max-width: 100%; transform: none; }
  .company-page .project-row { grid-template-columns: 48px minmax(0, 1fr); }
  .company-page .project-side { grid-column: 2; grid-row: 2; grid-template-columns: auto 1fr; align-items: center; margin-top: 22px; }
  .company-page .project-side strong { grid-column: 2; }
  .company-page .founder-grid { gap: 28px; }
}
@media (max-width: 780px) {
  .company-page { --nav-height: 68px; }
  .company-page .site-nav { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .company-page .nav-logo img { width: 36px; height: 36px; }
  .company-page .nav-toggle { display: inline-flex; }
  .company-page .nav-links {
    position: fixed;
    top: 68px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(245, 244, 240, .98);
  }
  .company-page.nav-open .nav-links { display: flex; }
  .company-page .nav-links a { justify-content: flex-start; min-height: 44px; padding: 0 12px; }
  .company-page .company-hero,
  .company-page .company-page-hero,
  .company-page .contact-hero,
  .company-page .section-block > *,
  .company-page .footer-inner { width: min(100% - 40px, var(--container)); }
  .company-page .company-hero { min-height: auto; padding: 34px 0 56px; }
  .company-page .company-page-hero,
  .company-page .contact-hero { min-height: auto; padding: 56px 0 48px; }
  .company-page .section-block { padding: 60px 0; }
  .company-page h1 { font-size: clamp(36px, 10vw, 48px); }
  .company-page .section-title { font-size: clamp(27px, 8vw, 36px); }
  .company-page .ecosystem-image { width: min(100%, 380px); max-width: 100%; transform: none; }
  
  .company-page .company-actions,
  .company-page .card-actions { flex-direction: column; align-items: stretch; }
  .company-page .btn-primary,
  .company-page .btn-secondary,
  .company-page .btn { width: 100%; }
  .company-page .principle-row,
  .company-page .explore-item,
  .company-page .project-row,
  .company-page .project-focus { grid-template-columns: 1fr; gap: 10px; }
  .company-page .project-side { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; }
  .company-page .founder-grid { grid-template-columns: 1fr; }
  .company-page .founder-photo { max-width: 360px; }
  .company-page .contact-email { overflow-wrap: anywhere; }
  .company-page .footer-inner { grid-template-columns: 1fr; justify-items: start; padding: 28px 0; }
  .company-page .footer-links { justify-content: flex-start; }
  .company-page .footer-social { justify-content: flex-start; }
  .company-page .footer-copy { justify-self: start; }
}
@media (max-width: 430px) {
  .company-page .company-hero,
  .company-page .company-page-hero,
  .company-page .contact-hero,
  .company-page .section-block > *,
  .company-page .footer-inner { width: min(100% - 36px, var(--container)); }
  .company-page .ecosystem-image { width: min(100%, 340px); max-width: 100%; transform: none; }
  .company-page .explore-item { min-height: 0; }
}

/* PRODUCT AND LEGAL PAGES: keep legacy pages stable, only light shared polish */
body:not(.company-page) { background: var(--dhag-bg); color: var(--dhag-heading); font-family: Inter, Arial, sans-serif; }
body:not(.company-page) > nav { min-height: 78px; border-bottom: 1px solid var(--dhag-border); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
body:not(.company-page) > nav .brand,
body:not(.company-page) > nav .back { color: var(--dhag-heading); letter-spacing: 0; }
body:not(.company-page) .btn-primary,
body:not(.company-page) .btn-secondary,
body:not(.company-page) .btn { border-radius: 10px; }






/* Homepage refresh */
.company-page .company-hero {
  grid-template-columns: minmax(0, 6.5fr) minmax(360px, 5.5fr);
  gap: clamp(42px, 6vw, 78px);
  padding: clamp(54px, 6vw, 78px) 0 clamp(54px, 6vw, 78px);
}
.company-page h1 { max-width: 850px; font-size: clamp(42px, 5vw, 72px); line-height: 1.03; }
.company-page .compact-section { padding-top: clamp(56px, 6vw, 78px); padding-bottom: clamp(64px, 7vw, 86px); }
.company-page .hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}
.company-page .hero-proof div { display: grid; gap: 2px; padding: 15px 16px; background: rgba(255,255,255,.58); }
.company-page .hero-proof strong { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 22px; line-height: 1; }
.company-page .hero-proof span { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.company-page .company-visual {
  position: relative;
  min-height: 460px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(196, 192, 184, .72);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(230,237,241,.58));
  box-shadow: 0 28px 70px rgba(16, 19, 24, .10);
  overflow: hidden;
}
.company-page .company-visual::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(35, 78, 112, .12);
  border-radius: 10px;
}
.company-page .ecosystem-image {
  position: relative;
  z-index: 1;
  width: min(108%, 680px);
  transform: none;
  filter: drop-shadow(0 24px 38px rgba(16, 19, 24, .12));
}
.company-page .visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 192, 184, .76);
  border-radius: 10px;
  background: rgba(245, 244, 240, .88);
  backdrop-filter: blur(14px);
}
.company-page .visual-caption span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.company-page .visual-caption strong { color: var(--ink); font-size: 14px; line-height: 1.35; }
.company-page .focus-grid,
.company-page .ecosystem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.company-page .focus-card,
.company-page .ecosystem-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 214px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.company-page .focus-card span { color: #a46a2a; font-size: 12px; font-weight: 800; }
.company-page .focus-card strong,
.company-page .ecosystem-card strong { color: var(--ink); font-family: Manrope, Inter, sans-serif; font-size: 22px; line-height: 1.18; }
.company-page .focus-card p,
.company-page .ecosystem-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }
.company-page .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.company-page .ecosystem-card { min-height: 250px; }
.company-page .ecosystem-card:hover,
.company-page .focus-card:hover { transform: translateY(-2px); border-color: rgba(35, 78, 112, .38); background: rgba(255,255,255,.84); box-shadow: 0 18px 42px rgba(16, 19, 24, .08); }
.company-page .product-preview-section { background: rgba(230, 237, 241, .34); }

@media (max-width: 1100px) {
  .company-page .company-visual { justify-content: center; min-height: 430px; }
  .company-page .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .company-page .company-hero { padding: 34px 0 48px; }
  .company-page h1 { font-size: clamp(36px, 10vw, 48px); }
  .company-page .hero-proof,
  .company-page .focus-grid,
  .company-page .ecosystem-grid { grid-template-columns: 1fr; }
  .company-page .hero-proof div { padding: 14px 15px; }
  .company-page .company-visual { min-height: auto; padding: 18px 18px 96px; }
  .company-page .visual-caption { left: 14px; right: 14px; bottom: 14px; }
  .company-page .focus-card,
  .company-page .ecosystem-card { min-height: 0; }
}

/* Homepage final balancing */
.company-page .company-copy { position: relative; z-index: 2; }
.company-page .company-hero {
  grid-template-columns: minmax(0, 6.5fr) minmax(390px, 5.5fr);
  align-items: center;
  gap: clamp(44px, 5.4vw, 74px);
  padding: clamp(46px, 5.2vw, 68px) 0 clamp(58px, 6vw, 80px);
}
.company-page .company-hero .hero-sub { max-width: 670px; }
.company-page .company-hero h1 { max-width: 790px; font-size: clamp(40px, 4.2vw, 62px); }
.company-page .company-visual {
  justify-self: end;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(100%, 720px);
  max-width: 720px;
  min-height: 0;
  padding: clamp(14px, 1.7vw, 20px);
}
.company-page .ecosystem-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
}
.company-page .visual-caption {
  position: static;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
}
.company-page .visual-caption strong { font-size: 13px; line-height: 1.32; }
.company-page .section-block { scroll-margin-top: var(--nav-height); }
.company-page .focus-grid { align-items: stretch; }
.company-page .focus-card { border-top: 3px solid rgba(35, 78, 112, .34); }
.company-page .ecosystem-card { border-top: 3px solid rgba(164, 106, 42, .34); }
.company-page .ecosystem-card .status-badge { margin-bottom: 6px; }

@media (max-width: 1180px) {
  .company-page .company-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 42px;
  }
  .company-page .company-hero h1,
  .company-page .company-hero .hero-sub { max-width: 780px; }
  .company-page .company-visual {
    justify-self: start;
    max-width: 720px;
    min-height: 0;
  }
  .company-page .ecosystem-image { width: 100%; margin-top: 0; }
}
@media (max-width: 780px) {
  .company-page .company-hero h1 { font-size: clamp(34px, 9.2vw, 44px); }
  .company-page .hero-sub { font-size: 16px; line-height: 1.68; }
  .company-page .hero-proof { margin-top: 26px; }
  .company-page .company-hero { gap: 28px; padding: 30px 0 46px; }
  .company-page .company-visual {
    min-height: 0;
    padding: 12px;
    gap: 8px;
  }
  .company-page .ecosystem-image {
    width: 100%;
    margin: 0;
  }
  .company-page .visual-caption {
    position: static;
    padding: 12px 13px;
  }
  .company-page .visual-caption strong { font-size: 13px; }
}
@media (max-width: 430px) {
  .company-page .company-hero { gap: 24px; padding-top: 26px; }
  .company-page .company-visual {
    width: min(100%, 320px);
    margin-inline: auto;
    padding: 8px;
    gap: 8px;
  }
  .company-page .company-visual::before { inset: 8px; }
  .company-page .ecosystem-image {
    width: 100%;
    margin-left: 0;
    border-radius: 8px;
  }
  .company-page .visual-caption {
    width: 100%;
    margin: 0;
  }
  .company-page .visual-caption span { font-size: 10px; }
  .company-page .visual-caption strong { font-size: 12px; line-height: 1.38; }
}

/* Explore section alignment */
.company-page .explore-section .section-head {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.company-page .explore-section .section-title,
.company-page .explore-section .section-head p {
  max-width: 820px;
}

/* Final homepage alignment and white canvas */
:root { --dhag-bg: #ffffff; }
html,
body,
.company-page {
  background-color: #ffffff;
}
.company-page {
  --page-bg: #ffffff;
  --surface-soft: #f7f8f9;
  --border: #e3e6e8;
  background:
    linear-gradient(90deg, rgba(16, 19, 24, .032) 1px, transparent 1px) center top / calc(min(100vw - 96px, var(--container)) / 12) 100%,
    #ffffff;
}
.company-page .site-nav,
.company-page #loader {
  background: rgba(255, 255, 255, .95);
}
.company-page .section-block > .section-head {
  width: min(100% - 96px, var(--container));
  max-width: var(--container);
  margin-inline: auto;
  text-align: left;
}
.company-page .section-block > .section-head .section-title,
.company-page .section-block > .section-head p {
  max-width: 860px;
}
.company-page .focus-grid,
.company-page .ecosystem-grid,
.company-page .explore-list {
  width: min(100% - 96px, var(--container));
  margin-inline: auto;
}
.company-page .product-preview-section,
.company-page .section-block:nth-of-type(even) {
  background: transparent;
}
@media (max-width: 780px) {
  .company-page .section-block > .section-head,
  .company-page .focus-grid,
  .company-page .ecosystem-grid,
  .company-page .explore-list {
    width: min(100% - 40px, var(--container));
  }
}
@media (max-width: 430px) {
  .company-page .section-block > .section-head,
  .company-page .focus-grid,
  .company-page .ecosystem-grid,
  .company-page .explore-list {
    width: min(100% - 36px, var(--container));
  }
}

/* Contact page polish */
.contact-page .contact-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  padding: clamp(92px, 9vw, 128px) 0 clamp(86px, 8vw, 112px);
}
.contact-page .contact-hero .company-copy {
  max-width: 760px;
}
.contact-page .contact-hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6vw, 92px);
  line-height: .98;
}
.contact-page .contact-hero .lead {
  max-width: 780px;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.72;
}
.contact-page .contact-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 28px 70px rgba(16, 19, 24, .08);
}
.contact-page .contact-panel::before {
  content: '';
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.contact-page .contact-panel span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.contact-page .contact-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.08;
  white-space: nowrap;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.contact-page .contact-panel .company-actions {
  margin-top: 8px;
}
.contact-page .contact-after {
  padding: 0 0 clamp(72px, 8vw, 104px);
  border-top: 0;
}
.contact-page .contact-after .text-link {
  display: flex;
  width: min(100% - 96px, var(--container));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding: 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
  color: var(--accent);
  font-size: clamp(18px, 1.5vw, 24px);
  text-decoration: none;
}
.contact-page .contact-after .text-link:hover {
  border-color: rgba(35, 78, 112, .34);
  background: rgba(255, 255, 255, .86);
  color: var(--accent-hover);
}
@media (max-width: 1180px) {
  .contact-page .contact-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-page .contact-panel {
    max-width: 760px;
    margin-left: 0;
  }
}
@media (max-width: 780px) {
  .contact-page .contact-hero {
    padding: 56px 0 48px;
  }
  .contact-page .contact-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }
  .contact-page .contact-hero .lead {
    font-size: 17px;
  }
  .contact-page .contact-panel {
    padding: 22px;
  }
  .contact-page .contact-email {
    font-size: clamp(26px, 8vw, 36px);
    white-space: normal;
  }
  .contact-page .contact-after .text-link {
    width: min(100% - 40px, var(--container));
    min-height: 76px;
    padding: 0 18px;
  }
}
@media (max-width: 430px) {
  .contact-page .contact-after .text-link {
    width: min(100% - 36px, var(--container));
  }
}
