/*
  VENTOA360 Partner Portal Responsive Edition v1.2.0
  320px–2560px, touch + mouse, portrait + landscape, safe-area insets,
  short-height notebook support, 200% browser zoom support.
*/

:root {
  color-scheme: light;
  --viewport-height: 100vh;
  --header-height: 82px;
  --page-gutter: clamp(16px, 3vw, 32px);
  --touch-target: 44px;
}

@supports (height: 100dvh) {
  :root { --viewport-height: 100dvh; }
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: var(--viewport-height);
  overscroll-behavior-x: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button,
.button,
.login-button,
.lang-switch button,
.menu-toggle,
.modal-close {
  min-height: var(--touch-target);
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.header-inner,
.hero-inner,
.trust-inner,
.section-inner,
.cta-inner,
.footer-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
}

.menu-toggle,
.mobile-nav,
.mobile-nav-backdrop,
.mobile-action-bar {
  display: none;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  border: 0;
  background: rgba(1, 8, 18, .64);
  backdrop-filter: blur(7px);
}

.mobile-nav {
  position: fixed;
  z-index: 1090;
  top: calc(var(--header-height) + env(safe-area-inset-top) + 10px);
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  width: auto;
  max-width: 560px;
  max-height: calc(var(--viewport-height) - var(--header-height) - env(safe-area-inset-top) - 28px);
  margin-left: auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background:
    radial-gradient(circle at 86% 5%, rgba(46,217,195,.18), transparent 32%),
    linear-gradient(145deg, #040d1a, #09253a);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 23px;
  box-shadow: 0 36px 100px rgba(0,0,0,.48);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 3px 17px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-nav-head div {
  display: grid;
  line-height: 1.15;
}

.mobile-nav-head small {
  color: rgba(255,255,255,.4);
  font-size: 9px;
  letter-spacing: .16em;
}

.mobile-nav-head strong {
  margin-top: 5px;
  font-size: 15px;
  letter-spacing: .11em;
}

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  font-size: 8px;
  letter-spacing: .12em;
}

.mobile-lang {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.mobile-lang button {
  border: 0;
  border-radius: 9px;
  color: rgba(255,255,255,.55);
  background: transparent;
  font-size: 12px;
}

.mobile-lang button.active {
  color: var(--navy-950);
  background: #fff;
  font-weight: 800;
}

.mobile-nav-links {
  margin: 13px 0;
  display: grid;
  gap: 5px;
}

.mobile-nav-links a {
  min-height: 52px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-radius: 13px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.045);
  border: 1px solid transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  border-color: rgba(46,217,195,.22);
  background: rgba(46,217,195,.08);
}

.mobile-nav-links a .ko {
  grid-column: 1;
  color: rgba(255,255,255,.43);
  font-size: 11px;
}

.mobile-nav-links a b {
  grid-row: 1 / 3;
  grid-column: 2;
  color: rgba(46,217,195,.55);
  font-size: 9px;
  letter-spacing: .11em;
}

.mobile-login {
  width: 100%;
  min-height: 52px;
}

.menu-toggle {
  width: 46px;
  padding: 0;
  flex: 0 0 46px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 13px;
  display: none;
  place-content: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  display: block;
  border-radius: 99px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.portal-shell,
.value-card,
.workflow-step,
.role-card,
.security-points article,
.cta-inner,
.modal-card {
  contain: layout paint;
}

@media (hover: none) {
  .button:hover,
  .value-card:hover,
  .workflow-step:hover,
  .role-card:hover {
    transform: none;
  }
}

/* Compact laptop and large tablet landscape */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --max: 1160px;
    --page-gutter: 28px;
  }

  .hero {
    min-height: 830px;
    padding-top: 140px;
    padding-bottom: 92px;
  }

  .hero-inner {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(47px, 5vw, 63px);
  }

  .portal-shell {
    transform: perspective(1300px) rotateY(-2deg);
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-layout,
  .security-layout {
    gap: 58px;
  }

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

/* Touch navigation begins at tablet size */
@media (max-width: 1120px) {
  :root {
    --header-height: 76px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .mobile-nav,
  .mobile-nav-backdrop {
    display: block;
  }

  body.is-menu-open,
  body.is-modal-open {
    overflow: hidden;
  }
}

/* Tablet portrait and landscape */
@media (min-width: 768px) and (max-width: 1120px) {
  :root {
    --page-gutter: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 92px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    width: min(100%, 850px);
    margin-inline: auto;
  }

  .portal-shell {
    transform: none;
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-inner > div {
    min-height: 92px;
    justify-content: center;
  }

  .trust-inner > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-inner > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-layout,
  .security-layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .workflow-copy {
    max-width: 820px;
  }

  .workflow-map {
    max-width: 820px;
    width: 100%;
  }

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

  .security-visual {
    min-height: 410px;
  }
}

/* All phones */
@media (max-width: 767px) {
  :root {
    --header-height: 68px;
    --page-gutter: 16px;
    --radius-xl: 28px;
    --radius-lg: 20px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: calc(var(--header-height) + env(safe-area-inset-top));
    background: rgba(4,13,26,.94);
  }

  .header-inner {
    height: var(--header-height);
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .mobile-nav {
    top: calc(var(--header-height) + env(safe-area-inset-top) + 8px);
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 68px;
    padding: 10px max(14px, env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: rgba(4,13,26,.95);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -16px 42px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar > div {
    min-width: 0;
    display: grid;
    line-height: 1.2;
  }

  .mobile-action-bar small {
    color: rgba(255,255,255,.4);
    font-size: 8px;
    letter-spacing: .14em;
  }

  .mobile-action-bar strong {
    overflow: hidden;
    margin-top: 4px;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-action-bar strong .ko {
    color: rgba(255,255,255,.52);
  }

  .mobile-action-bar .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  body.is-menu-open .mobile-action-bar,
  body.is-modal-open .mobile-action-bar {
    visibility: hidden;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 79px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    min-width: 0;
  }

  .eyebrow-row {
    align-items: flex-start;
  }

  .eyebrow,
  .access-badge {
    min-height: 31px;
    max-width: 100%;
  }

  .eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-kicker {
    margin-top: 23px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(35px, 10.9vw, 48px);
    line-height: 1.13;
    letter-spacing: -.047em;
  }

  .hero h1 .ko {
    margin-top: 14px;
    font-size: .50em;
  }

  .hero-description {
    margin-top: 21px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-description .ko {
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 29px;
  }

  .hero-proof div {
    min-height: 62px;
    padding: 9px 0 9px 14px;
    align-content: center;
  }

  .hero-proof strong {
    font-size: 21px;
  }

  .hero-visual {
    width: 100%;
  }

  .portal-shell {
    width: 100%;
    transform: none;
    border-radius: 19px;
  }

  .portal-topbar {
    height: 56px;
    padding-inline: 14px;
  }

  .portal-brand small {
    display: none;
  }

  .portal-grid {
    min-height: 435px;
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    display: none;
  }

  .portal-content {
    min-width: 0;
    padding: 14px;
  }

  .portal-heading {
    align-items: center;
  }

  .portal-heading h2 {
    font-size: 15px;
  }

  .portal-heading h2 span {
    display: block;
    margin: 3px 0 0;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row article {
    min-height: 58px;
  }

  .metric-row article:nth-child(n+3) {
    display: none;
  }

  .workspace-row {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    display: none;
  }

  .task-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .task-item strong,
  .task-item small,
  .task-code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .timeline-panel {
    padding-inline: 12px;
  }

  .timeline-head div {
    min-width: 0;
  }

  .timeline-head span {
    display: none;
  }

  .timeline-labels {
    font-size: 5px;
  }

  .floating-card {
    display: none;
  }

  .trust-strip {
    margin-top: -26px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    padding: 15px 18px;
  }

  .trust-inner > div {
    min-height: 82px;
    padding: 13px 3px;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: center;
  }

  .trust-inner > div:first-child {
    border-top: 0;
  }

  .section {
    padding: clamp(74px, 16vw, 94px) 0;
  }

  .section-heading h2,
  .workflow-copy h2,
  .security-copy h2 {
    font-size: clamp(30px, 8.7vw, 42px);
    line-height: 1.2;
  }

  .section-heading > p:last-child,
  .workflow-copy > p,
  .security-copy > p {
    font-size: 14px;
    line-height: 1.72;
  }

  .value-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
    gap: 14px;
  }

  .value-card {
    min-height: auto;
    padding: 24px 22px;
  }

  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .system-flow {
    grid-template-columns: 1fr;
  }

  .system-flow i {
    display: none;
  }

  .workflow-step {
    margin-top: 10px;
    padding: 17px 17px 17px 65px;
  }

  .workflow-step h3 {
    display: grid;
    gap: 2px;
  }

  .role-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .role-card {
    min-height: auto;
    padding: 24px 22px;
    text-align: left;
  }

  .role-symbol {
    margin: 0;
  }

  .security-layout {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .security-visual {
    min-height: 315px;
  }

  .security-shell {
    width: min(100%, 315px);
    height: 315px;
  }

  .shield {
    width: 128px;
    height: 154px;
  }

  .ring-one {
    width: 225px;
    height: 225px;
  }

  .ring-two {
    width: 310px;
    height: 310px;
  }

  .security-node {
    min-width: 55px;
    padding: 7px 8px;
    font-size: 7px;
  }

  .node-a { left: 0; top: 116px; }
  .node-b { right: 0; top: 82px; }
  .node-c { left: 37px; bottom: 24px; }
  .node-d { right: 17px; bottom: 43px; }

  .security-points {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
    padding: 38px 24px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .cta-inner .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-meta {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .footer-status {
    margin-left: auto;
  }

  .modal {
    padding: max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .modal-card {
    max-height: calc(var(--viewport-height) - 24px);
    padding: 36px 23px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Small phones */
@media (max-width: 479px) {
  :root {
    --header-height: 64px;
    --page-gutter: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    width: 43px;
    flex-basis: 43px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 42px);
  }

  .eyebrow-row {
    display: grid;
    justify-items: start;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 42px);
  }

  .portal-status {
    display: none;
  }

  .metric-row article:nth-child(n+2) {
    display: none;
  }

  .task-item {
    grid-template-columns: 1fr auto;
  }

  .task-code {
    grid-column: 1 / -1;
    font-size: 7px;
  }

  .task-item div {
    grid-column: 1;
  }

  .priority {
    grid-column: 2;
    grid-row: 2;
  }

  .timeline-labels {
    display: none;
  }

  .footer-brand,
  .footer-status {
    width: 100%;
  }

  .footer-status {
    margin-left: 0;
  }

  .mobile-action-bar > div {
    max-width: 56%;
  }
}

/* Ultra-compact phones */
@media (max-width: 359px) {
  :root {
    --page-gutter: 12px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero-description {
    font-size: 13px;
  }

  .button {
    padding-inline: 15px;
  }

  .portal-content {
    padding: 11px;
  }

  .mobile-action-bar > div {
    display: none;
  }

  .mobile-action-bar .button {
    width: 100%;
  }
}

/* Short landscape phones and tablets */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1023px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    position: absolute;
  }

  .hero {
    padding-top: 91px;
    padding-bottom: 58px;
  }

  .hero-visual {
    max-width: 760px;
    margin-inline: auto;
  }

  .mobile-nav {
    top: 68px;
    max-height: calc(100dvh - 78px);
  }
}

/* 1366×768 and other short-height notebooks */
@media (min-width: 1121px) and (max-height: 820px) {
  .hero {
    min-height: 750px;
    padding-top: 126px;
    padding-bottom: 70px;
  }

  .hero-inner {
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(45px, 4.55vw, 62px);
  }

  .hero-kicker {
    margin-top: 22px;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-proof {
    margin-top: 27px;
  }

  .portal-grid {
    min-height: 475px;
  }

  .portal-content {
    padding: 18px;
  }

  .floating-left {
    bottom: 66px;
  }

  .floating-right {
    top: 72px;
  }
}

/* Wide desktop */
@media (min-width: 1600px) {
  :root {
    --max: 1320px;
  }

  .hero {
    min-height: 925px;
  }

  .hero-inner {
    gap: 87px;
  }

  .portal-shell {
    max-width: 710px;
    margin-inline: auto;
  }
}

/* 2K and large displays */
@media (min-width: 1920px) {
  :root {
    --max: 1380px;
  }

  .hero {
    min-height: 960px;
  }

  .section {
    padding-block: 132px;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .mobile-nav-backdrop,
  .mobile-action-bar,
  .ambient,
  .page-grid,
  .modal {
    display: none !important;
  }

  body {
    padding: 0;
    color: #111;
    background: #fff;
  }

  .hero,
  .workflow-section,
  .cta-inner {
    color: #111;
    background: #fff !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
