/* ==========================================================
   UBUNTUCARE — MARKETING SITE (shared across all pages)
   100vw with --pad on the inside · centred hero text · clean footer
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

/* Hero typography uses Manrope Bold */
.hero-section h1,
.hero-block h1,
.hero-text h1,
.big-cta h2,
.section-head h2 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero-section .lead,
.hero-block p {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 500;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg, rgba(255, 255, 255, 0.85));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  position: relative;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-links a {
  flex: 0 0 auto;
  line-height: 1;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-1); }
.nav-actions { display: flex; align-items: center; gap: 10px; z-index: 10; }
.nav a,
.nav button,
.download-options a,
.download-options button,
.btn,
button.mobile-menu-btn {
  white-space: nowrap;
}

/* Wordmark logo — bigger and balanced */
.uc-logo .uc-mark-mobile { display: none; }
.uc-logo .uc-wordmark { display: block; height: 20px; width: auto; }
@media (min-width: 768px) {
  .uc-logo .uc-wordmark { height: 24px; }
}
@media (max-width: 640px) {
  .uc-logo .uc-wordmark { display: none; }
  .uc-logo .uc-mark-mobile {
    display: block;
    height: 24px;
    width: auto;
  }
}
.footer .uc-logo .uc-wordmark { height: 24px; }
@media (min-width: 768px) {
  .footer .uc-logo .uc-wordmark { height: 28px; }
}
.footer .uc-logo,
.footer .uc-logo svg {
  color: var(--text-1);
}
.footer .uc-logo .uc-wordmark circle:not([fill]) {
  fill: var(--brand);
}

/* Compact nav layout: logo left · theme toggle then hamburger right */
.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 20px;
}
.nav-inner > .uc-logo { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-inner > .nav-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 0;
}
.mobile-menu-btn { grid-column: 4; grid-row: 1; justify-self: end; }
.nav-actions .btn.outline { display: none; }
@media (max-width: 420px) {
  .nav-inner { column-gap: 12px; }
}

@media (min-width: 1024px) {
  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 20px;
  }

  .nav-links {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    position: static;
    justify-self: center;
    justify-content: center;
    max-width: 100%;
    gap: clamp(14px, 1.8vw, 26px);
    font-size: clamp(12px, 1.05vw, 14px);
    transform: none;
  }

  .nav-inner > .nav-actions {
    grid-column: 3;
  }

  .mobile-menu-btn {
    display: none !important;
  }
}

/* Hamburger button — clean, no border on mobile */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: none;
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0;
}
.mobile-menu-btn:hover { color: var(--theme-brand-text); background: var(--surface); }

/* Mobile menu drawer — full-width slide-down on phones, right-side on tablets */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100dvh;
  background: var(--surface-card);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-1);
}
.mobile-menu-close:hover { background: var(--surface-2); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.mobile-menu nav a {
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  transition: background 0.15s ease;
}
.mobile-menu nav a:hover { background: var(--surface); }
.mobile-menu nav a.active { background: var(--brand-tint); color: var(--theme-brand-text); }
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============ ACCESS REQUEST MODAL ============ */
.asset-access-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(10, 10, 10, 0.48);
}
.asset-access-modal.show { display: flex; }
.asset-access-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  background: var(--surface-card);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-elevated);
  padding: clamp(22px, 4vw, 36px);
  position: relative;
}
.asset-access-panel h2 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 6px 0 10px;
}
.asset-access-copy {
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 90%;
}
.asset-access-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-1);
  font-size: 24px;
  line-height: 1;
}
.asset-access-status {
  min-height: 22px;
  margin: 4px 0 14px;
  color: var(--theme-brand-text);
  font-weight: 700;
  font-size: 13px;
}
.asset-access-panel .field,
.asset-access-panel .field-row {
  margin-bottom: 14px;
}
.asset-access-panel label {
  display: block;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.asset-access-panel input,
.asset-access-panel textarea {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface-card);
  color: var(--text-1);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
}
.asset-access-panel textarea {
  resize: vertical;
  min-height: 96px;
}
.asset-access-panel .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 620px) {
  .asset-access-panel .field-row { grid-template-columns: 1fr; }
}

/* ============ HERO (top-anchored) ============ */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
}
.hero-section > .container { width: 100%; }
.hero-section h1 {
  margin: 16px 0 24px;
  /* Force tight line-count: 2 lines on desktop max */
  font-size: clamp(32px, 4.5vw, 48px);
}
/* Left-aligned hero lead — no auto centering */
.hero-section .lead {
  margin: 0 0 32px;
  max-width: 640px;
}
/* Centred lead only for image-less hero pages */
.hero-section .hero-text:not(.text-left) .lead {
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
/* Centred actions for image-less (no .text-left) hero pages */
.hero-section .hero-text:not(.text-left) .hero-actions {
  justify-content: center;
}
/* Big CTA section keeps its own centred actions */
.big-cta .hero-actions {
  justify-content: center;
}

/* Hero image-block variant */
.hero-block {
  padding: clamp(60px, 8vw, 120px) 0 clamp(20px, 3vw, 40px);
  text-align: center;
}
.hero-block h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  margin: 12px 0 20px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero-block p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: clamp(15px, 1.6vw, 18px);
}

/* ============ TRUST BAR ============ */
.trust-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.trust-item svg { color: var(--theme-brand-text); flex-shrink: 0; }

/* ============ SECTIONS ============ */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section.alt { background: var(--surface); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  color: var(--text-2);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* ============ SEGMENT CARDS ============ */
.seg-card {
  padding: var(--pad);
  background: var(--surface-card);
  border: 2px solid var(--border);
  border-radius: var(--r);
  transition: all 0.15s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}
.seg-card:hover {
  border-color: var(--theme-brand-text);
  transform: translateY(-2px);
}
.seg-icon {
  width: 48px; height: 48px;
  background: var(--brand-tint);
  color: var(--theme-brand-text);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.seg-card h4 { font-size: 18px; margin-bottom: 8px; }
.seg-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ============ FEATURES ============ */
.feature {
  padding: var(--pad);
  background: var(--surface-card);
  border: 2px solid var(--border);
  border-radius: var(--r);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--brand-tint);
  color: var(--theme-brand-text);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ============ TESTIMONIAL ============ */
.testimonial-quote {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 24px 0;
  color: var(--text-1);
}
.testimonial-author {
  font-size: 14px;
  color: var(--text-2);
}
.testimonial-author strong { color: var(--text-1); font-weight: 700; }

/* ============ BIG CTA ============ */
.big-cta {
  background: var(--brand);
  color: var(--white);
  border-radius: 0;
  padding: clamp(56px, 8vw, 96px) var(--pad);
  text-align: center;
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
}
.big-cta .eyebrow { margin-bottom: 16px; color: var(--white) !important; }
.big-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.big-cta p {
  color: var(--white);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 560px;
  margin: 0 auto 32px;
}
.big-cta .btn {
  background: var(--white) !important;
  color: var(--brand) !important;
  border-color: var(--white) !important;
}
.big-cta .btn:hover {
  background: var(--white) !important;
  color: var(--brand-hover) !important;
  border-color: var(--white) !important;
}
.big-cta .btn.outline {
  background: var(--white) !important;
  color: var(--brand) !important;
  border-color: var(--white) !important;
}
.big-cta .btn.outline:hover {
  background: var(--white) !important;
  color: var(--brand-hover) !important;
  border-color: var(--white) !important;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h6 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-3);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--text-1); }
.footer ul li.addr {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}
.footer-tag {
  font-size: 14px;
  color: var(--text-2);
  max-width: 380px;
  margin-top: 16px;
  line-height: 1.6;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.socials a {
  width: 40px; height: 40px;
  border-radius: var(--r);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: all 0.15s ease;
}
.socials a:hover {
  border-color: var(--theme-brand-text);
  color: var(--theme-brand-text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.kapture-link { color: var(--theme-brand-text); font-weight: 600; }

/* ============ SUBTLE ANIMATIONS ============ */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* On metric cards — subtle drift on the value text */
.metric .value, .investor-stat .v {
  display: inline-block;
}
.metric { position: relative; overflow: hidden; }
.metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  opacity: 0.6;
}
.metric::after {
  content: '';
  position: absolute;
  top: 16px; right: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse-ring 2.4s cubic-bezier(0.66, 0, 0, 1) infinite;
}

.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section > * { position: relative; z-index: 1; }

/* Card hover-lift utility */
.lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

/* Subtle scroll-reveal stagger — invoked with .reveal class via JS */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================
   SHARED HERO TWO-COLUMN GRID & VISUAL IMAGERY STYLES
   ========================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

.hero-text.text-left {
  text-align: left;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: visible;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 32px 64px rgba(0, 111, 217, 0.16);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 23px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.35), transparent 50%);
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-2);
  z-index: 30;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-icon {
  font-size: 20px;
  background: var(--brand-tint);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.badge-text span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.badge-top {
  top: 40px;
  left: -35px;
}

.badge-bottom {
  bottom: 50px;
  right: -35px;
}

.hero-image-wrapper:hover .badge-top {
  transform: translate(-8px, -4px) scale(1.03);
}

.hero-image-wrapper:hover .badge-bottom {
  transform: translate(8px, 4px) scale(1.03);
}

@media (max-width: 768px) {
  .badge-top {
    top: 20px;
    left: 10px;
  }
  .badge-bottom {
    bottom: 20px;
    right: 10px;
  }
  .hero-image-wrapper {
    max-width: 100%;
    aspect-ratio: 1/1;
  }
}

/* Responsive line breaks */
@media (max-width: 767px) {
  .desktop-only-br {
    display: none !important;
  }
}
