/* ============================================================
   Cloud-Crewing — minimal stylesheet
   Brand: Dockworx teal #035167 (deep) / #23C1CA (light)
   ============================================================ */

:root {
  --ink: #0b2230;
  --ink-soft: #46596a;
  --ink-mute: #6f8093;
  --line: #e4e9ee;
  --line-soft: #eef2f6;
  --bg: #ffffff;
  --bg-muted: #f6f8fa;
  --bg-dark: #0a2733;
  --teal-deep: #035167;
  --teal: #23c1ca;
  --teal-soft: #e6f7f8;
  --shadow-sm: 0 1px 2px rgba(10,39,51,0.04), 0 1px 1px rgba(10,39,51,0.03);
  --shadow-md: 0 8px 24px rgba(10,39,51,0.08), 0 2px 6px rgba(10,39,51,0.04);
  --shadow-lg: 0 24px 60px rgba(10,39,51,0.14), 0 6px 16px rgba(10,39,51,0.06);
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1160px;
  --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }

/* Text wrapping safety so long words / URLs never push the page wider than the viewport */
h1, h2, h3, h4, p, li, summary, a { overflow-wrap: break-word; word-wrap: break-word; }

/* Grid/flex children should not force their column wider than its track */
.hero-grid > *, .feature-row > *, .dockworx-grid > *, .why-grid > *,
.site-footer-inner > *, .trust-stats > *, .hero-actions > * { min-width: 0; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin: 8px 0 16px; }
.section-lead { color: var(--ink-soft); font-size: 1.0625rem; }

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 12px;
}
.eyebrow-light { color: var(--teal); }
.accent { color: var(--teal-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-sm  { padding: 8px 14px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 26px; font-size: 1rem; }
.btn-primary {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #044056; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  color: var(--ink);
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  line-height: 1.05;
}
.brand-accent { color: var(--teal); }
.brand-tagline {
  margin-top: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.brand-tagline strong { color: var(--ink-soft); font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav > a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
}
.site-nav > a:hover { color: var(--ink); }
.site-nav .btn { color: #fff; }
.site-nav .btn:hover { color: #fff; }

/* Language switcher — minimal text */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a {
  color: var(--ink-mute);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { color: var(--teal-deep); }
.lang-switch span { color: var(--line); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(1000px 400px at 80% 0%, rgba(35,193,202,0.07), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(3,81,103,0.04), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.hero-text h1 { margin: 8px 0 20px; }
.hero-text .lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-fineprint { font-size: 0.875rem; color: var(--ink-mute); margin: 0; }

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  background: #fff;
}

/* Trust strip */
.trust {
  padding: 48px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.trust-label {
  text-align: center;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  row-gap: 24px;
}
.trust-logos img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(20%);
  transition: opacity .15s ease, filter .15s ease;
}
.trust-logos img:hover { opacity: 1; filter: grayscale(0%); }
/* Source PNG has padding under the wordmark — render larger to compensate */
.trust-logos .logo-mariteam { height: 52px; max-width: 180px; }
.trust-logos .logo-flexbox  { height: 64px; max-width: 70px; }
.trust-logos .trust-logo-dark {
  background: #0c2540;
  padding: 6px 10px;
  border-radius: 4px;
  height: 38px;
}

/* Stats row */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 40px auto 0;
  max-width: 860px;
  border-top: 1px solid var(--line-soft);
  padding-top: 32px;
}
.trust-stat {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.trust-stat + .trust-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-soft);
}
.trust-stat-value {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.trust-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Hero supporting line */
.hero-proof {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-proof-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.18);
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(10,39,51,0.18);
  border-radius: 10px;
}
.mobile-cta .btn { width: 100%; padding: 14px 20px; font-size: 1rem; }

/* Product feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }

.feature-text h3 { margin-bottom: 12px; }
.feature-text > p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-bullets li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 2px solid var(--teal);
}

.feature-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.why-card h4 { margin-bottom: 8px; color: var(--teal-deep); }
.why-card p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }

/* When the why-grid has 5 cards on a desktop 4-column layout,
   the orphan 5th card lands alone on a new row — center it. */
@media (min-width: 900px) {
  .why-grid .why-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 60px) / 2);
  }
}

/* Dockworx section */
.section-dockworx {
  background: var(--bg-dark);
  color: #d4e2e9;
}
.section-dockworx h2 { color: #fff; }
.section-dockworx p { color: #b9cbd4; }
.dockworx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.dockworx-text h2 { margin-bottom: 16px; }
.dockworx-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.dockworx-links a {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9375rem;
}
.dockworx-links a:hover { color: #fff; }
.dockworx-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.dockworx-visual img { max-width: 320px; }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  list-style: none;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.625rem;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
  color: var(--teal-deep);
}
.faq-item summary:hover { color: var(--teal-deep); }
.faq-body {
  padding: 0 36px 24px 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-body p { margin: 0; }

/* CTA section */
.section-cta {
  background: linear-gradient(180deg, var(--bg-muted) 0%, #ffffff 100%);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner > p { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: 28px; }
.cta-fineprint { font-size: 0.875rem; color: var(--ink-mute); margin-top: 20px; }
.cta-fineprint a { color: var(--teal-deep); border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer {
  background: #0a2733;
  color: #b9cbd4;
  padding: 72px 0 28px;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.footer-brand .brand-accent { color: var(--teal); }
.footer-brand .brand-tagline {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.footer-brand .brand-tagline strong { color: rgba(255,255,255,0.78); font-weight: 700; }
.footer-brand p {
  color: #8ea4af;
  margin: 16px 0 24px;
  font-size: 0.9375rem;
  max-width: 32ch;
}
.footer-dockworx-logo {
  display: inline-block;
  transition: opacity .15s ease;
}
.footer-dockworx-logo:hover { opacity: 1; }
.footer-dockworx-logo img {
  height: 30px;
  width: auto;
  opacity: 0.85;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li {
  color: #8ea4af;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.footer-col a {
  color: #b9cbd4;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.site-footer-bottom {
  padding-top: 24px;
  font-size: 0.8125rem;
  color: #7a8e98;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer-bottom p { margin: 0; }
.site-footer-bottom .lang-switch {
  font-size: 0.75rem;
}
.site-footer-bottom .lang-switch a { color: #8ea4af; }
.site-footer-bottom .lang-switch a:hover { color: #fff; }
.site-footer-bottom .lang-switch a.is-active { color: var(--teal); }
.site-footer-bottom .lang-switch span { color: rgba(255,255,255,0.18); }

/* ============================================================
   Privacy / Terms — basic readable styles
   ============================================================ */
.page-hero {
  padding: 64px 0 32px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin: 0; }
.page-content {
  padding: 56px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.page-content h2 { margin: 40px 0 12px; font-size: 1.375rem; }
.page-content h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.page-content p, .page-content li { color: var(--ink-soft); }
.page-content ul { padding-left: 1.25em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 64px;
  }
  .feature-row-reverse .feature-text { order: 0; }
  .feature-row-reverse .feature-visual { order: 0; }
  .dockworx-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .dockworx-visual { padding: 24px; }
  .site-footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .site-footer-inner .footer-brand { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .site-footer-inner .footer-brand { grid-column: auto; }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .nav-toggle { display: block; }
  .trust-stats { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .trust-stat + .trust-stat::before { display: none; }
  .trust-stat { border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .trust-stat:first-child { border-top: 0; padding-top: 0; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .site-nav > a:last-child { border-bottom: 0; }
  .site-nav .lang-switch {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line-soft);
    justify-content: center;
  }
  .site-nav .btn {
    margin: 12px 24px;
    width: calc(100% - 48px);
  }
  .trust-logos { gap: 28px; row-gap: 20px; }
  .trust-logos img { height: 28px; max-width: 120px; }
  .trust-logos .logo-mariteam { height: 40px; }
  .trust-logos .logo-flexbox  { height: 46px; max-width: 56px; }
  .trust-logos .trust-logo-dark { height: 30px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .feature-bullets li { font-size: 0.9375rem; }
  .why-grid .why-card:nth-child(5):last-child { max-width: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand-name { font-size: 1.0625rem; }
  .hero-text h1 { font-size: 1.75rem; line-height: 1.15; }
  .hero-text .lead { font-size: 1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1875rem; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .feature-row { margin-bottom: 48px; }
  .why-card { padding: 22px; }
  .faq-item summary { font-size: 1rem; gap: 16px; padding: 18px 0; }
  .faq-body { padding-right: 28px; }
  .trust-label { font-size: 0.75rem; }
  .hero { padding: 40px 0 32px; }
  .hero-proof { font-size: 0.8125rem; align-items: flex-start; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
