/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --bg-page:        #F3F6F8;
  --bg-white:       #FFFFFF;

  --text-main:      #203347;
  --text-sub:       #53687C;
  --text-muted:     #5A7085;
  --text-label:     #486B8C;

  --blue:           #466B8E;
  --blue-dark:      #395A7C;
  --blue-darker:    #314E6C;
  --warm:           #B98952;

  --border:         #D8E2EA;
  --border-mid:     #CEDAE5;
  --border-strong:  #B9CBD9;

  --shadow-surface: 0 1px 0 rgba(32,51,71,0.03), 0 10px 30px rgba(32,51,71,0.04);
  --shadow-lift:    0 2px 0 rgba(32,51,71,0.04), 0 20px 50px rgba(32,51,71,0.09);

  --max-w:          1280px;
  --nav-h:          68px;
}

/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden; /* iOS Safari ignores overflow-x on body; must be on html */
}
body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border-radius: 0; -webkit-appearance: none; appearance: none; }
img, video { display: block; max-width: 100%; }

/* Focus styles for keyboard navigation */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1 {
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.057em;
  color: var(--text-main);
}
h2 {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.046em;
  color: var(--text-main);
  overflow-wrap: break-word;
}
h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-main);
  overflow-wrap: break-word;
}
p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-sub);
  overflow-wrap: break-word;
}

/* ============================================================
   SECTION LABEL  (line ——— UPPERCASE TEXT)
============================================================ */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 20px;
  overflow: hidden;
}
.label > span:not(.lline) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.label .lline {
  display: block;
  height: 1px;
  width: 40px;
  min-width: 8px;
  background: var(--warm);
  flex-shrink: 1;
}
.label.center { justify-content: center; }

/* ============================================================
   SURFACE (card base, no rounded corners)
============================================================ */
.surface {
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-surface);
  contain: layout;
}
.surface-hover { transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
.surface-hover:hover {
  box-shadow: var(--shadow-lift);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--blue-dark);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-darker); border-color: var(--blue-darker); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--bg-white);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-mid);
  transition: border-color 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--border-strong); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.8);
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-white:hover { background: #EEF4F8; }

/* ============================================================
   NAV
============================================================ */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243,246,248,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,226,234,0.85);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.nav-logo-text {
  min-width: 0;
  overflow: hidden;
}
.nav-logo-text .logo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo-text .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--text-main); border-color: var(--border-mid); }

/* ============================================================
   INNER CONTAINER
============================================================ */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}
.section-pad { padding-top: 96px; padding-bottom: 96px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--bg-page);
  background-image: radial-gradient(circle, #C2D1DC 0.85px, transparent 0.85px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--border);
  overflow: hidden; /* contain video overflow on iOS */
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 80px 88px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 72px;
}
.hero-text { display: flex; flex-direction: column; min-width: 0; }
.hero-text h1 { margin-top: 22px; max-width: 14ch; }
.hero-sub {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-sub);
  max-width: 480px;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
@media (min-width: 541px) {
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
}
.hero-proof {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(185, 137, 82, 0.45);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.proof-item { padding-right: 24px; }
.proof-item + .proof-item {
  padding-left: 24px;
  padding-right: 24px;
  border-left: 1px solid var(--border);
}
.proof-item:last-child { padding-right: 0; }
.proof-val {
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
}
.proof-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}
.hero-visual { position: relative; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
.hero-screen {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.hero-screen video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   SECTION HEADING BLOCK
============================================================ */
.sh { max-width: 640px; }
.sh h2 { margin-top: 20px; }
.sh > p { margin-top: 20px; font-size: 18px; }
.sh.center { text-align: center; margin: 0 auto; }
.sh.center .label { justify-content: center; }

/* ============================================================
   ICON BOX  (44×44 brand-tinted icon container)
============================================================ */
.icon-box {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-mid);
  background: #C8DCE9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.icon-box svg {
  width: 20px; height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-box--sm {
  width: 34px;
  height: 34px;
}
.icon-box--sm svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   SCREEN IMG  (platform screenshot with lift-on-hover)
============================================================ */
.screen-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.screen-img:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* ============================================================
   PROBLEM SECTION (shared base)
============================================================ */
.problem {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: 0 700px;
}
.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.problem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.problem-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.pcard-body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 10px;
  text-transform: none;
}
.pcard-body p { font-size: 13px; line-height: 1.7; color: var(--text-sub); }

.ref-links-intro { font-size: 14px; color: var(--text-sub); margin-top: 28px; margin-bottom: 10px; }
.ref-links { display: flex; flex-direction: column; gap: 6px; margin-top: 0; }
.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  background: var(--bg-page);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: 0.01em;
  transition: border-color 0.2s;
  text-decoration: none;
}
.ref-link:hover { border-color: var(--border-strong); }
.ref-link svg { flex-shrink: 0; stroke: var(--warm); fill: none; }

/* ============================================================
   CTA
============================================================ */
.cta-wrap {
  background: var(--blue-darker);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}
.cta-wrap-inner {
  padding-top: 120px;
  padding-bottom: 100px;
  flex: 1;
  display: flex;
  align-items: center;
}
.cta-box {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.cta-box h2 {
  color: #fff;
  max-width: 680px;
  margin: 20px auto 0;
  font-size: clamp(28px, 3.8vw, 58px);
  letter-spacing: -0.052em;
}
.cta-box > p {
  margin-top: 20px;
  color: #C8DDE9;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}
.cta-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-fine { font-size: 13px; color: rgba(255,255,255,0.5); }
.cta-contact {
  margin-top: 56px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.cta-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}
.cta-contact a:hover { border-color: rgba(255,255,255,0.8); }
.cta-foot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.cta-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cta-foot p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 48px 80px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-text .logo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.footer-logo-text .logo-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-center p { font-size: 13px; color: var(--text-muted); }
.footer-center a { color: var(--blue); transition: color 0.2s; }
.footer-center a:hover { color: var(--blue-dark); }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.footer-right .small { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   MOBILE NAV
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  padding: 0 9px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(243,246,248,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px 20px;
  z-index: 99;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile > a {
  display: block;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile > a:hover { color: var(--text-main); }
.nav-mobile .nav-mobile-cta {
  margin-top: 16px;
  padding: 14px 22px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--blue-dark);
  text-align: center;
  transition: background 0.2s;
}
.nav-mobile .nav-mobile-cta:hover { background: var(--blue-darker); border-color: var(--blue-darker); }

/* ============================================================
   RESPONSIVE — shared foundations
============================================================ */
@media (max-width: 1100px) {
  .nav { padding: 0 56px; }
  .hero-inner { padding: calc(var(--nav-h) + 56px) 56px 72px; grid-template-columns: 1fr; gap: 48px; }
  .inner { padding: 0 56px; }
  .section-pad { padding-top: 80px; padding-bottom: 80px; }
  .problem-inner { padding: 80px 56px; grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 48px 56px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-inner { padding: calc(var(--nav-h) + 40px) 24px 56px; gap: 40px; }
  .inner { padding: 0 24px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .problem-inner { padding: 64px 24px; }
  .problem-cards { grid-template-columns: 1fr; }
  .cta-wrap-inner { padding-top: 80px; padding-bottom: 72px; }
  .footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}

@media (max-width: 540px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-proof { grid-template-columns: 1fr; }
  .proof-item + .proof-item { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
  .section-pad { padding-top: 48px; padding-bottom: 48px; }
}

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