* {
  box-sizing: border-box;
}

:root {
  --ink: #071a3d;
  --ink-2: #10284f;
  --blue: #1f5eff;
  --lime: #a5d40a;
  --teal: #02a4a8;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --line: #dbe3ef;
  --muted: #5b6472;
  --shadow: 0 24px 60px rgba(7, 26, 61, .12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Aptos, Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--blue);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(18px, 3vw, 52px);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .96);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  color: var(--paper);
  background: rgba(0, 0, 0, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.brand__text {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.brand__text span {
  color: var(--lime);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.6vw, 26px);
  font-size: .92rem;
  font-weight: 700;
}

.nav--structured {
  flex: 1;
  justify-content: flex-end;
}

.nav-direct {
  white-space: nowrap;
}

.nav a {
  opacity: .9;
}

.nav a:hover,
.nav a:focus {
  opacity: 1;
  color: var(--lime);
}

.dropdown-nav {
  position: relative;
}

.nav-group__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-group__trigger:hover,
.nav-group__trigger:focus,
.dropdown-nav.is-open .nav-group__trigger {
  color: var(--lime);
}

.nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.dropdown-nav.is-open .nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: none;
  width: 310px;
  border: 1px solid rgba(165, 212, 10, .35);
  border-radius: 14px;
  padding: 10px;
  color: var(--paper);
  background: linear-gradient(135deg, #020812, #091a2b);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
  transform: translateX(-50%);
}

.dropdown-nav.is-open .nav-dropdown {
  display: grid;
}

.nav-dropdown > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 9px;
  padding: 12px;
  color: var(--paper);
  opacity: 1;
}

.nav-dropdown > a:hover,
.nav-dropdown > a:focus {
  color: var(--paper);
  background: rgba(165, 212, 10, .1);
}

.nav-dropdown a > span:last-child {
  display: grid;
  gap: 3px;
}

.nav-dropdown small {
  color: rgba(255, 255, 255, .58);
  font-size: .76rem;
  font-weight: 600;
}

.nav-dropdown__mark {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(165, 212, 10, .52);
  border-radius: 8px;
  color: var(--lime);
  font-size: .7rem;
  font-weight: 950;
}

@media (min-width: 921px) {
  .dropdown-nav:hover .nav-dropdown,
  .dropdown-nav:focus-within .nav-dropdown {
    display: grid;
  }
}

.mega-nav {
  position: static;
}

.mega-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mega-nav__trigger:hover,
.mega-nav__trigger:focus,
.mega-nav.is-open .mega-nav__trigger,
.solutions-page .mega-nav__trigger {
  color: var(--lime);
}

.portfolio-page .nav > a[href="apps.php"] {
  color: var(--lime);
}

.mega-nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.mega-nav.is-open .mega-nav__chevron {
  transform: translateY(2px) rotate(225deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  display: none;
  padding-top: 10px;
}

.mega-nav.is-open .mega-menu {
  display: block;
}

@media (min-width: 921px) {
  .mega-nav:hover .mega-menu,
  .mega-nav:focus-within .mega-menu {
    display: block;
  }
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1.12fr .9fr .9fr .9fr;
  gap: 0;
  max-width: 1680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 212, 10, .38);
  border-radius: 18px;
  color: var(--paper);
  background: linear-gradient(115deg, #020812 0%, #071426 72%, #0b2430 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.mega-menu__column,
.mega-menu__feature {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
}

.mega-menu__column {
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.mega-menu__column h2,
.mega-menu__feature-label {
  display: block;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(165, 212, 10, .65);
  padding-bottom: 10px;
  color: var(--lime);
  font-size: 1rem;
  font-weight: 900;
}

.mega-menu__column > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  color: var(--paper);
  opacity: 1;
}

.mega-menu__column > a:hover,
.mega-menu__column > a:focus {
  color: var(--lime);
}

.mega-menu__column a > span:last-child {
  display: grid;
  gap: 3px;
}

.mega-menu__column strong {
  color: inherit;
  font-size: .96rem;
}

.mega-menu__column small {
  color: rgba(255, 255, 255, .58);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
}

.mega-menu__icon {
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(165, 212, 10, .5);
  border-radius: 8px;
  color: var(--lime);
  background: rgba(165, 212, 10, .08);
  font-size: .68rem;
  font-weight: 950;
}

.mega-menu__feature {
  display: grid;
  align-content: start;
  background: rgba(255, 255, 255, .04);
}

.mega-menu__feature-visual {
  display: grid;
  align-content: end;
  min-height: 142px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 76% 24%, rgba(165, 212, 10, .32), transparent 24%),
    linear-gradient(135deg, #10284f, #063c48);
}

.mega-menu__feature-visual strong {
  color: var(--lime);
  font-size: 3.4rem;
  line-height: .85;
}

.mega-menu__feature-visual span {
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mega-menu__feature h2 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1.1;
}

.mega-menu__feature p {
  color: rgba(255, 255, 255, .62);
  font-size: .88rem;
}

.mega-menu__feature-link {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--lime) !important;
  opacity: 1 !important;
}

.language-switcher {
  position: relative;
}

.language-switcher__button,
.language-switcher__menu button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  padding: 8px 11px;
}

.site-header.is-scrolled .language-switcher__button {
  border-color: rgba(255, 255, 255, .32);
}

.language-switcher__button [data-language-flag],
.language-switcher__menu span {
  color: var(--lime);
  font-size: .72rem;
  font-weight: 950;
}

.language-switcher__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.language-switcher.is-open .language-switcher__chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.language-switcher.is-open .language-switcher__menu {
  display: grid;
}

.language-switcher__menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
}

.language-switcher__menu button:hover,
.language-switcher__menu button:focus,
.language-switcher__menu button[aria-selected="true"] {
  background: var(--soft);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("../img/office-daptux.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(5, 14, 34, .92) 0%, rgba(7, 26, 61, .76) 44%, rgba(7, 26, 61, .22) 100%),
    linear-gradient(0deg, rgba(7, 26, 61, .42), rgba(7, 26, 61, .08));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--blue);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(4.1rem, 10vw, 8.2rem);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.hero__actions,
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--ink);
  background: var(--lime);
}

.button--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

.hero__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 46px 0 0;
}

.hero__signals div {
  border-top: 2px solid rgba(165, 212, 10, .82);
  padding-top: 14px;
}

.hero__signals dt {
  font-weight: 900;
}

.hero__signals dd {
  margin: 4px 0 0;
  color: rgba(255,255,255,.72);
}

.section {
  padding: clamp(68px, 9vw, 120px) 0;
}

.section__inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section--intro {
  background: var(--soft);
}

.intro-grid,
.trust-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.intro-copy,
.trust-layout p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(7, 26, 61, .05);
}

.service-card__number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
}

.service-card p,
.process__step p,
.trust-list span {
  color: var(--muted);
}

.section--dark {
  color: var(--paper);
  background: var(--ink);
}

.section--dark h2,
.section--dark h3 {
  color: var(--paper);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.process__step {
  border-top: 2px solid rgba(165, 212, 10, .82);
  padding-top: 18px;
}

.process__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.process__step p {
  color: rgba(255,255,255,.7);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list div {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--lime);
  padding: 16px 18px;
  background: var(--soft);
}

.portfolio-page {
  background: #f7f9fc;
}

.portfolio-page .site-header {
  color: var(--paper);
}

.portfolio-page .site-header.is-scrolled {
  color: var(--paper);
}

.nav__active {
  color: var(--lime);
}

.site-header.is-scrolled .nav__active {
  color: var(--lime);
}

.portfolio-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 86px;
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(7, 26, 61, .98) 0%, rgba(16, 40, 79, .94) 56%, rgba(2, 164, 168, .78) 100%),
    url("../img/office-daptux.jpg") center/cover;
}

.portfolio-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.portfolio-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 5.8vw, 5.35rem);
  line-height: .98;
  overflow-wrap: anywhere;
}

.portfolio-hero__lead {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.portfolio-hero__actions,
.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.portfolio-hero__preview,
.portfolio-feature__media,
.portfolio-card__media {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(2, 8, 23, .26);
}

.portfolio-hero__preview {
  aspect-ratio: 4 / 3;
  padding-top: 38px;
  color: var(--paper);
  background:
    linear-gradient(135deg, #061937 0%, #0c2d5e 58%, #0b5f69 100%);
}

.portfolio-hero__preview img,
.portfolio-feature__media img,
.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flowpay-mock {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: clamp(24px, 4vw, 42px);
}

.flowpay-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding-bottom: 16px;
}

.flowpay-mock__top span {
  color: var(--lime);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 950;
}

.flowpay-mock__top strong {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
}

.flowpay-mock__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flowpay-mock__stats span,
.flowpay-mock__table div {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.flowpay-mock__stats span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  color: rgba(255,255,255,.72);
  font-size: .85rem;
}

.flowpay-mock__stats strong {
  color: var(--paper);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.flowpay-mock__table {
  display: grid;
  gap: 10px;
}

.flowpay-mock__table div {
  display: grid;
  grid-template-columns: .7fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
}

.flowpay-mock__table span {
  color: rgba(255,255,255,.68);
  font-weight: 850;
}

.flowpay-mock__table strong {
  color: var(--paper);
}

.status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

.status--blue {
  color: #bfdbfe;
  background: rgba(31, 94, 255, .26);
}

.status--green {
  color: #dcfce7;
  background: rgba(34, 197, 94, .24);
}

.status--orange {
  color: #ffedd5;
  background: rgba(245, 158, 11, .26);
}

.browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  gap: 7px;
  height: 38px;
  align-items: center;
  border-bottom: 1px solid rgba(7, 26, 61, .08);
  padding: 0 16px;
  background: rgba(255,255,255,.94);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-bar i:first-child {
  background: #ef4444;
}

.browser-bar i:nth-child(2) {
  background: #f59e0b;
}

.browser-bar i:nth-child(3) {
  background: var(--lime);
}

.portfolio-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.portfolio-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-strip__inner div {
  min-height: 106px;
  border-right: 1px solid var(--line);
  padding: 24px clamp(18px, 3vw, 34px);
}

.portfolio-strip__inner div:last-child {
  border-right: 0;
}

.portfolio-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.portfolio-strip span,
.portfolio-heading-copy,
.portfolio-feature p,
.portfolio-card p {
  color: var(--muted);
}

.portfolio-section {
  background: var(--paper);
}

.portfolio-section--soft {
  background: #f7f9fc;
}

.portfolio-heading-copy {
  max-width: 720px;
  font-size: 1.06rem;
}

.portfolio-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 54px rgba(7, 26, 61, .08);
}

.portfolio-feature__media {
  min-height: 430px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-top: 38px;
  background: #061937;
}

.portfolio-feature__media img {
  object-fit: contain;
  padding: clamp(28px, 5vw, 52px);
}

.portfolio-feature__content {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 48px);
}

.portfolio-feature__content h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.portfolio-tag {
  width: fit-content;
  border: 1px solid rgba(31, 94, 255, .16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--blue);
  background: #eef4ff;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-points {
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-weight: 750;
}

.portfolio-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lime);
}

.portfolio-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.portfolio-link::after {
  content: " ->";
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(7, 26, 61, .07);
}

.portfolio-card__media {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding-top: 38px;
}

.portfolio-card__body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.portfolio-card__body h3,
.portfolio-card__body p {
  margin: 0;
}

.portfolio-card__body h3 {
  font-size: 1.45rem;
}

.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.portfolio-card__meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--ink-2);
  background: var(--soft);
  font-size: .8rem;
  font-weight: 900;
}

.cta-band {
  padding: 54px 0;
  color: var(--paper);
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-band__inner {
  justify-content: space-between;
}

.contact-section {
  background: var(--soft);
}

.contact-note {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-left: 18px;
  border-left: 4px solid var(--lime);
}

.contact-note span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 94, 255, .16);
  border-color: var(--blue);
}

.site-footer {
  padding: 26px 0;
  color: rgba(255,255,255,.72);
  background: #041126;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner span:first-child {
  color: var(--paper);
  font-weight: 900;
}

.response-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.response-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 46px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.response-card__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.response-card p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-block;
    color: currentColor;
  }

  .nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav--structured {
    justify-content: flex-start;
  }

  .nav a {
    padding: 12px;
  }

  .nav-group__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    color: var(--ink);
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    border-color: var(--line);
    color: var(--ink);
    background: var(--soft);
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown > a,
  .nav-dropdown > a:hover,
  .nav-dropdown > a:focus {
    color: var(--ink);
  }

  .nav-dropdown small {
    color: var(--muted);
  }

  .nav__cta {
    display: block;
    margin-top: 6px;
    text-align: center;
  }

  .mega-nav {
    position: relative;
  }

  .mega-nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    color: var(--ink);
  }

  .mega-menu {
    position: static;
    padding: 0 4px 8px;
  }

  .mega-menu__grid {
    grid-template-columns: 1fr;
    max-height: 62vh;
    overflow-y: auto;
    border-color: var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: none;
  }

  .mega-menu__column,
  .mega-menu__feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .mega-menu__column h2,
  .mega-menu__feature-label {
    margin-bottom: 12px;
    color: var(--blue);
  }

  .mega-menu__column > a {
    min-height: 48px;
    padding: 7px 0;
    color: var(--ink);
  }

  .mega-menu__column small,
  .mega-menu__feature p {
    color: var(--muted);
  }

  .mega-menu__feature {
    background: var(--soft);
  }

  .mega-menu__feature h2 {
    color: var(--ink);
  }

  .language-switcher {
    margin: 6px 4px 4px;
  }

  .language-switcher__button {
    width: 100%;
    justify-content: flex-start;
    border-color: var(--line);
    color: var(--ink);
  }

  .language-switcher__chevron {
    margin-left: auto;
  }

  .language-switcher__menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero__overlay {
    background: linear-gradient(0deg, rgba(5,14,34,.9), rgba(7,26,61,.62));
  }

  .hero__signals,
  .service-grid,
  .portfolio-hero__inner,
  .portfolio-feature,
  .portfolio-grid,
  .portfolio-strip__inner,
  .process,
  .intro-grid,
  .trust-layout,
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .portfolio-feature__media {
    min-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-strip__inner div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-strip__inner div:last-child {
    border-bottom: 0;
  }

  .cta-band__inner {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand__text {
    font-size: 1rem;
  }

  .hero__content,
  .section__inner {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5rem);
  }

  .hero__lead {
    font-size: 1.06rem;
  }

  .button {
    width: 100%;
  }
}


/* Daptux V3: acceso sobrio al portal */
.nav__portal {
  border: 1px solid var(--lime);
  border-radius: 10px;
  padding: 9px 15px;
  color: var(--paper);
  white-space: nowrap;
}

.site-header.is-scrolled .nav__portal {
  border-color: var(--lime);
}

.nav__cta {
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--ink) !important;
  background: var(--lime);
  opacity: 1 !important;
  white-space: nowrap;
}

.nav__cta:hover,
.nav__cta:focus {
  color: var(--ink) !important;
  background: #b9e623;
}

@media (min-width: 921px) and (max-width: 1180px) {
  .nav {
    gap: 12px;
    font-size: .84rem;
  }

  .nav__cta {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav__portal {
    border-color: var(--line);
    color: var(--ink);
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.form-group legend {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 800;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-2);
  background: var(--paper);
  font-size: .92rem;
  font-weight: 800;
}

.choice-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.form-help {
  margin-top: -4px;
  color: var(--muted);
  font-size: .9rem;
}

.whatsapp-float {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  border: 3px solid #ffffff !important;
  border-radius: 999px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  background: #25d366 !important;
  box-shadow: 0 16px 34px rgba(7, 26, 61, .24) !important;
  text-decoration: none !important;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: translateY(-2px);
  background: #1fc15b !important;
}

.whatsapp-float__icon {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
}

.whatsapp-float__badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.whatsapp-float__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 540px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    padding: 104px 0 58px;
  }

  .portfolio-hero__preview {
    aspect-ratio: 4 / 3;
  }

  .portfolio-feature__content,
  .portfolio-card__body {
    padding: 20px;
  }

  .portfolio-feature__media {
    min-height: 230px;
  }

  .portfolio-card__media {
    aspect-ratio: 4 / 3;
  }

  .flowpay-mock {
    gap: 12px;
    padding: 18px;
  }

  .flowpay-mock__top,
  .flowpay-mock__table div {
    align-items: flex-start;
  }

  .flowpay-mock__top,
  .flowpay-mock__stats,
  .flowpay-mock__table div {
    grid-template-columns: 1fr;
  }

  .flowpay-mock__top {
    display: grid;
  }

  .flowpay-mock__stats span {
    min-height: auto;
  }

  .whatsapp-float {
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }

  .whatsapp-float__badge {
    font-size: .92rem !important;
  }
}



/* Daptux V3 with payments app */
.solutions-page {
  background: #f7f9fc;
}

.solutions-hero {
  min-height: 700px;
  display: grid;
  align-items: center;
  padding: 132px 0 90px;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(165, 212, 10, .2), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(2, 164, 168, .28), transparent 30%),
    linear-gradient(125deg, #041126 0%, #071a3d 54%, #103963 100%);
}

.solutions-hero__inner {
  max-width: 980px;
  margin-left: max(18px, calc((100vw - 1120px) / 2));
}

.solutions-hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .94;
}

.solutions-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.solutions-principles {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.solutions-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.solutions-principles__grid > div {
  min-height: 210px;
  border-right: 1px solid var(--line);
  padding: 34px;
}

.solutions-principles__grid > div:last-child {
  border-right: 0;
}

.solutions-principles strong,
.vertical-card__number {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 950;
}

.solutions-principles h2 {
  margin: 32px 0 8px;
  font-size: 1.45rem;
}

.solutions-principles p,
.vertical-card p,
.collaboration-list span {
  color: var(--muted);
}

.solutions-section {
  background: #f7f9fc;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vertical-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(7, 26, 61, .06);
}

.vertical-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(31, 94, 255, .06);
}

.vertical-card__market {
  margin: 28px 0 8px;
  color: var(--teal) !important;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vertical-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.vertical-card > p:last-of-type {
  max-width: 520px;
}

.vertical-card a {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 1;
  color: var(--blue);
  font-weight: 900;
}

.vertical-card a::after {
  content: " →";
}

.collaboration-section {
  color: var(--paper);
  background: var(--ink);
}

.collaboration-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 7vw, 88px);
}

.collaboration-layout > div:first-child > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
}

.collaboration-layout blockquote {
  margin: 34px 0 0;
  border-left: 4px solid var(--lime);
  padding-left: 20px;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 850;
}

.collaboration-list {
  display: grid;
  gap: 12px;
}

.collaboration-list div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .05);
}

.collaboration-list span {
  color: rgba(255, 255, 255, .68);
}

.roadmap-section {
  background: var(--paper);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.roadmap-grid div {
  display: grid;
  gap: 18px;
  min-height: 170px;
  border-right: 1px solid var(--line);
  padding: 28px;
}

.roadmap-grid div:last-child {
  border-right: 0;
}

.roadmap-grid span {
  color: var(--blue);
  font-weight: 950;
}

.roadmap-grid strong {
  align-self: end;
  font-size: 1.15rem;
}

@media (max-width: 920px) {
  .solutions-principles__grid,
  .vertical-grid,
  .collaboration-layout,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .solutions-principles__grid > div,
  .roadmap-grid div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solutions-principles__grid > div:last-child,
  .roadmap-grid div:last-child {
    border-bottom: 0;
  }

  .solutions-hero {
    min-height: 660px;
  }

  .solutions-hero__inner {
    margin: 0 auto;
  }

  .nav a[href="pagos/"] {
    border-top: 1px solid var(--line);
  }
}
/* Mobile UX polish */
@media (max-width: 540px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4.35rem);
    line-height: .94;
  }

  .hero__lead {
    margin-bottom: 22px;
  }

  .hero__signals {
    gap: 14px;
    margin-top: 34px;
  }

  .hero__signals div {
    padding-top: 14px;
  }

  .nav {
    left: 14px;
    right: 14px;
    max-height: calc(100svh - 82px);
    overflow: auto;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .contact-form {
    padding: 18px;
  }
}

/* ============================================================
   Hero de Apps sin preview (FlowPay retirado): copy a una columna
   ============================================================ */
.portfolio-hero__inner { grid-template-columns: 1fr; }
.portfolio-hero__copy { max-width: 820px; }

/* ============================================================
   OPTIMIZACIÓN MÓVIL (≤600px) — Daptux
   Evita desbordes horizontales y ajusta títulos/secciones.
   ============================================================ */
@media (max-width: 600px) {
  html, body { overflow-x: clip; max-width: 100%; }
  main { overflow-x: clip; }

  /* TODA cuadrícula multi-columna se apila (los repeat(3,1fr) desbordaban) */
  [class*="-grid"],
  [class*="__grid"],
  .solutions-principles__grid,
  .roadmap-grid,
  .portfolio-grid,
  .intro-grid,
  .mega-menu__grid { grid-template-columns: 1fr !important; }

  /* Ningún contenedor más ancho que la pantalla */
  .section__inner,
  .portfolio-hero__inner,
  .solutions-hero__inner,
  .cta-band__inner,
  .portfolio-strip__inner,
  .hero__content,
  .footer-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Títulos: ajustan y nunca se cortan */
  h1, h2, h3, p { overflow-wrap: break-word; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem) !important; line-height: 1.06 !important; max-width: 100% !important; }
  .portfolio-hero h1,
  .solutions-hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem) !important; line-height: 1.07 !important; max-width: 100% !important; }
  .section-heading h2,
  .cta-band h2,
  .portfolio-feature__content h3,
  .section-heading h3 { font-size: clamp(1.4rem, 6vw, 1.95rem) !important; line-height: 1.14 !important; }
  .hero__lead,
  .portfolio-hero__lead,
  .solutions-hero p:not(.eyebrow) { font-size: 1rem !important; }

  /* Layouts a una sola columna */
  .portfolio-hero__inner,
  .solutions-hero__inner,
  .intro-grid,
  .portfolio-grid,
  .contact-layout,
  .trust-layout,
  .collaboration-layout { grid-template-columns: 1fr !important; }

  /* Alturas de héroe más ajustadas (menos espacio vacío) */
  .portfolio-hero,
  .solutions-hero { min-height: auto !important; padding: 92px 0 46px !important; }

  /* Stats apiladas legibles */
  .portfolio-strip__inner { flex-direction: column; gap: 14px; text-align: center; }

  /* Botones apilados a ancho completo */
  .portfolio-hero__actions,
  .portfolio-actions,
  .hero__actions { flex-direction: column; align-items: stretch; }
  .portfolio-hero__actions .button,
  .portfolio-actions .button,
  .hero__actions .button { width: 100%; }
}
