:root {
  --bg: #f8fafc;
  --bg-soft: #eef4ff;
  --card: #ffffff;
  --card-2: #f8fbff;
  --text: #0f172a;
  --muted: #5d6b82;
  --light: #e5eefb;
  --border: #dbe6f3;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #00c2ff;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.08);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad { padding: 96px 0; }
.section-soft { background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%); }
.section-dark {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.38), transparent 34%), #0f172a;
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 230, 243, 0.85);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #2563eb 75%, #00c2ff);
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}
.brand-text { font-size: 24px; }
.brand-text span { color: var(--primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  text-decoration: none;
  color: #27364b;
  font-weight: 750;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}
.site-nav a:hover {
  color: var(--primary);
  background: #eef4ff;
}
.site-nav .nav-cta {
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.site-nav .nav-cta:hover { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eef4ff;
  cursor: pointer;
  padding: 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 15% 20%, rgba(0, 194, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.18), transparent 32%);
}
.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
}
.hero-bg-one {
  width: 380px;
  height: 380px;
  background: rgba(37, 99, 235, 0.15);
  right: -130px;
  top: 100px;
}
.hero-bg-two {
  width: 260px;
  height: 260px;
  background: rgba(0, 194, 255, 0.15);
  left: -110px;
  bottom: 80px;
}

.hero-grid,
.two-col,
.contact-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 58px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.align-start { align-items: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.eyebrow span {
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: #93c5fd; }

h1, h2, h3 { line-height: 1.04; margin: 0; letter-spacing: -0.055em; }
h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 820px;
}
h2 { font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: 23px; }
p { margin: 0; }

.hero-lead {
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  color: #32435b;
  max-width: 720px;
}
.hero-support {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover { box-shadow: 0 22px 44px rgba(37, 99, 235, 0.42); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.full-width { width: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 230, 243, 0.9);
  color: #32435b;
  font-size: 13px;
  font-weight: 800;
}
.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.visual-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 230, 243, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.main-flow-card { transform: rotate(1deg); }
.visual-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.9);
}
.visual-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
}
.visual-topbar span:first-child { background: #f97316; }
.visual-topbar span:nth-child(2) { background: #facc15; }
.visual-topbar span:nth-child(3) { background: #22c55e; }
.visual-topbar strong {
  margin-left: auto;
  color: #52647c;
  font-size: 13px;
}

.flow-comparison {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  gap: 10px;
  padding: 26px;
  align-items: center;
}
.flow-column {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
}
.flow-label {
  font-weight: 950;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.flow-step {
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-top: 10px;
  color: #52647c;
  font-size: 14px;
  font-weight: 800;
}
.flow-step.good {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
  color: #1d4ed8;
}
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
}
.mini-dashboard {
  margin: 0 26px 26px;
  padding: 18px;
  border-radius: 20px;
  background: #0f172a;
  color: #dbeafe;
  display: grid;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}
.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
}
.status-dot.ok { background: #22c55e; }
.status-dot.warn { background: #f59e0b; }

.signal-strip {
  padding: 22px 0;
  background: #0f172a;
  color: #dbeafe;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.signal-card {
  text-align: center;
  padding: 13px 10px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 850;
}

.section-intro p,
.section-heading p,
.contact-copy p,
.section-dark p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}
.section-dark p { color: #cbd5e1; }
.section-heading {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 46px;
}
.section-heading.narrow { max-width: 760px; }

.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.question-card,
.service-card,
.usecase-card,
.checker-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.question-card { padding: 24px; }
.question-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 950;
  margin-bottom: 18px;
}
.question-card p,
.service-card p,
.usecase-card p,
.timeline-item p {
  color: var(--muted);
  margin-top: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  font-weight: 950;
  font-size: 22px;
  margin-bottom: 18px;
}

.demo-board {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  gap: 24px;
  align-items: stretch;
}
.demo-side {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.demo-before { background: linear-gradient(180deg, #fff7ed, #ffffff); }
.demo-after { background: linear-gradient(180deg, #eff6ff, #ffffff); }
.demo-header {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.demo-side ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.demo-side li {
  position: relative;
  padding-left: 26px;
  color: #475569;
  font-weight: 750;
}
.demo-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}
.demo-center { display: grid; place-items: center; }
.orbit {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #2563eb, #0f172a);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.32);
  position: relative;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(37, 99, 235, 0.42);
  border-radius: 50%;
}
.orbit::after { inset: -31px; opacity: 0.45; }

.systems-wrap {
  margin-top: 34px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
}
.systems-wrap h3 { margin-bottom: 16px; }
.system-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.system-pills span,
.dark-points span {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}
.system-pills span {
  background: #f1f5f9;
  color: #334155;
}

.dark-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.dark-points span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbeafe;
}
.checker-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.checker-card p { color: #cbd5e1; margin: 10px 0 18px; }
.checker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checker-options button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}
.checker-options button.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.checker-result {
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  color: #e0f2fe;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.timeline-item {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.timeline-item span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #fff;
  font-weight: 950;
  margin-bottom: 16px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.usecase-card { padding: 24px; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  margin-top: 18px;
  font-weight: 950;
  cursor: pointer;
}
.text-button:hover { color: var(--primary-dark); }

.contact-section {
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 194, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #eff6ff);
}
.contact-grid { align-items: start; }
.contact-note {
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--primary);
  background: #fff;
  border-radius: 18px;
  color: #334155;
  box-shadow: var(--shadow-soft);
}
.contact-form { padding: 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 8px;
  color: #1f2a3d;
  font-weight: 900;
  margin-bottom: 14px;
}
label span { color: var(--primary); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fbff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #fff;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-footnote {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 44px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { color: #fff; }
.footer-grid p { max-width: 560px; margin-top: 14px; color: #94a3b8; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
}
.footer-links a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 1050px) {
  .hero-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-board { grid-template-columns: 1fr; }
  .demo-center { min-height: 120px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 15px; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; }
  .section-pad { padding: 74px 0; }
  .flow-comparison { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 5px 0; }
  .question-grid,
  .services-grid,
  .usecase-grid,
  .form-row { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container, .nav-shell { width: min(100% - 28px, 1180px); }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .brand-text { font-size: 21px; }
  .hero-actions .btn { width: 100%; }
  .signal-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .contact-form, .question-card, .service-card, .usecase-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* === ECOMCLOUD DESIGN BALANCE PATCH v2 START === */

/* Desktop: make the first screen feel premium, balanced, and less oversized. */
html {
  scroll-padding-top: 84px;
}

@media (min-width: 981px) {
  .nav-shell {
    min-height: 72px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-text {
    font-size: 23px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 9px 12px;
  }

  .site-nav .nav-cta {
    padding: 12px 18px;
  }

  .hero.section-pad {
    padding: 64px 0 58px;
  }

  .hero {
    min-height: calc(100vh - 72px);
    max-height: 760px;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(455px, 0.98fr);
    gap: clamp(38px, 5vw, 72px);
  }

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

  .hero .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.095em;
  }

  .hero h1 {
    font-size: clamp(44px, 4.25vw, 62px);
    line-height: 0.99;
    letter-spacing: -0.062em;
    max-width: 650px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.48;
    max-width: 640px;
    color: #314158;
  }

  .hero-support {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    max-width: 620px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 12px;
  }

  .btn {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
  }

  .trust-row {
    margin-top: 20px;
    gap: 8px;
  }

  .trust-row span {
    padding: 8px 11px;
    font-size: 12.5px;
  }

  .hero-visual {
    align-self: center;
  }

  .main-flow-card {
    transform: none;
    max-width: 560px;
    margin-left: auto;
  }

  .visual-topbar {
    height: 50px;
    padding: 0 18px;
  }

  .flow-comparison {
    grid-template-columns: 1fr 42px 1fr;
    padding: 20px;
    gap: 8px;
  }

  .flow-column {
    padding: 13px;
    border-radius: 19px;
  }

  .flow-label {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .flow-step {
    padding: 10px 11px;
    margin-top: 8px;
    font-size: 13px;
    border-radius: 13px;
  }

  .flow-arrow {
    font-size: 28px;
  }

  .mini-dashboard {
    margin: 0 20px 20px;
    padding: 14px;
    gap: 9px;
    font-size: 13px;
    border-radius: 17px;
  }

  .signal-strip {
    padding: 18px 0;
  }
}

/* Large screens: keep hero attractive but do not let it become a billboard. */
@media (min-width: 1400px) {
  .container,
  .nav-shell {
    width: min(1210px, calc(100% - 56px));
  }

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

/* Tablet/mobile: keep everything readable and avoid sideways overflow. */
@media (max-width: 980px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero.section-pad {
    padding: 52px 0 56px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 56px);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-support {
    font-size: 16px;
  }

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

  .main-flow-card {
    transform: none;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero.section-pad {
    padding: 42px 0 48px;
  }

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

  .hero-lead,
  .hero-support {
    font-size: 16px;
  }

  .btn {
    min-height: 50px;
  }

  .trust-row span {
    width: 100%;
    justify-content: flex-start;
  }
}

/* === ECOMCLOUD DESIGN BALANCE PATCH v2 END === */

/* === ECOMCLOUD MOBILE POLISH PATCH v3 START === */

/* Phone/tablet polish: cleaner first screen, tighter nav, better cards, no horizontal overflow. */
html {
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas {
  max-width: 100%;
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%, #f8fafc 100%);
  }

  .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(219, 230, 243, 0.95);
  }

  .nav-shell {
    min-height: 64px;
    width: min(100% - 28px, 1180px);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 12px;
  }

  .brand-text {
    font-size: 20px;
    letter-spacing: -0.05em;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  }

  .nav-toggle span {
    width: 18px;
    background: #ffffff;
    margin: 3px 0;
  }

  .site-nav {
    left: 14px;
    right: 14px;
    top: 72px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 14px;
  }

  .site-nav .nav-cta {
    margin-top: 4px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
  }

  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .section-pad {
    padding: 56px 0;
  }

  .hero.section-pad {
    padding: 30px 0 38px;
  }

  .hero {
    min-height: auto;
    display: block;
    background:
      radial-gradient(circle at 92% 4%, rgba(37, 99, 235, 0.14), transparent 33%),
      radial-gradient(circle at 0% 18%, rgba(0, 194, 255, 0.14), transparent 28%),
      linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  }

  .hero-bg {
    display: none;
  }

  .hero-grid,
  .two-col,
  .contact-grid {
    gap: 26px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero .eyebrow span {
    width: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 9.6vw, 42px);
    line-height: 1.03;
    letter-spacing: -0.058em;
    text-wrap: balance;
  }

  .hero-lead {
    margin-top: 14px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
    color: #334155;
  }

  .hero-support {
    margin-top: 10px;
    max-width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(219, 230, 243, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: #53657d;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 18px;
    gap: 10px;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border-radius: 15px;
    font-size: 15px;
  }

  .btn:hover {
    transform: none;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .trust-row span {
    width: 100%;
    justify-content: flex-start;
    padding: 9px 11px;
    border-radius: 14px;
    background: #ffffff;
    font-size: 12.5px;
  }

  .hero-visual {
    width: 100%;
  }

  .main-flow-card {
    max-width: 100%;
    margin: 2px auto 0;
    transform: none;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  }

  .visual-topbar {
    height: 42px;
    padding: 0 14px;
  }

  .visual-topbar span {
    width: 9px;
    height: 9px;
  }

  .visual-topbar strong {
    font-size: 12px;
  }

  .flow-comparison {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .flow-column {
    padding: 12px;
    border-radius: 16px;
  }

  .flow-label {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .flow-step {
    margin-top: 7px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .flow-arrow {
    padding: 0;
    font-size: 24px;
    line-height: 1;
    transform: rotate(90deg);
  }

  .mini-dashboard {
    margin: 0 14px 14px;
    padding: 12px;
    border-radius: 16px;
    gap: 7px;
    font-size: 12.5px;
  }

  .status-dot {
    width: 9px;
    height: 9px;
    margin-right: 7px;
  }

  .signal-strip {
    padding: 14px 0;
  }

  .signal-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 2px;
    width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .signal-grid::-webkit-scrollbar {
    display: none;
  }

  .signal-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.08;
    text-wrap: balance;
  }

  h3 {
    font-size: 20px;
    line-height: 1.12;
  }

  .section-intro p,
  .section-heading p,
  .contact-copy p,
  .section-dark p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.58;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .question-grid,
  .services-grid,
  .usecase-grid,
  .timeline,
  .form-row {
    gap: 12px;
  }

  .question-card,
  .service-card,
  .usecase-card,
  .timeline-item,
  .checker-card,
  .contact-form {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  }

  .question-card span,
  .timeline-item span {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .service-card:hover {
    transform: none;
  }

  .demo-board {
    gap: 14px;
  }

  .demo-side {
    padding: 20px;
    border-radius: 22px;
  }

  .demo-side ul {
    gap: 10px;
  }

  .demo-side li {
    font-size: 14.5px;
  }

  .demo-center {
    min-height: 94px;
  }

  .orbit {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }

  .orbit::before {
    inset: -11px;
  }

  .orbit::after {
    inset: -22px;
  }

  .systems-wrap {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
  }

  .system-pills,
  .dark-points,
  .checker-options {
    gap: 8px;
  }

  .system-pills span,
  .dark-points span,
  .checker-options button {
    padding: 9px 10px;
    font-size: 12px;
  }

  .checker-result {
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
  }

  .contact-section {
    background: linear-gradient(180deg, #ffffff, #eff6ff);
  }

  .contact-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  label {
    gap: 7px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  input,
  textarea,
  select {
    min-height: 48px;
    border-radius: 14px;
    padding: 12px 13px;
    font-size: 16px;
  }

  textarea {
    min-height: 118px;
  }

  .form-footnote {
    font-size: 12.5px;
  }

  .site-footer {
    padding: 34px 0 92px;
  }

  .footer-grid {
    gap: 18px;
  }

  .footer-links {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .container,
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero.section-pad {
    padding: 24px 0 34px;
  }

  .brand-text {
    font-size: 19px;
  }

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

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

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-support {
    font-size: 14px;
  }

  .flow-step {
    font-size: 12.5px;
  }

  .mini-dashboard {
    font-size: 12px;
  }

  .site-nav {
    left: 11px;
    right: 11px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero .eyebrow {
    font-size: 9.5px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* === ECOMCLOUD MOBILE POLISH PATCH v3 END === */

/* ECOMCLOUD MOBILE HEADLINE READABILITY START */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Sticky header is already in normal page flow; keep hero clean below it. */
  .hero.section-pad,
  section.hero.section-pad,
  .ec-hero,
  .hero-section {
    padding-top: 30px !important;
    padding-bottom: 46px !important;
    min-height: auto !important;
    align-items: flex-start !important;
  }

  .hero .container,
  .container.hero-grid,
  .hero-grid,
  .hero-inner,
  .ec-hero-grid {
    padding-top: 0 !important;
    gap: 24px !important;
  }

  .hero .eyebrow,
  .ec-hero .eyebrow {
    display: none !important;
  }

  .hero h1,
  h1.hero-title,
  .hero-title,
  .ec-hero h1,
  h1.hero-heading {
    font-size: clamp(30px, 8.2vw, 36px) !important;
    line-height: 1.10 !important;
    letter-spacing: -0.035em !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    text-wrap: balance;
  }

  .hero-lead,
  .hero-copy > p,
  .ec-hero p {
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  .hero-lead {
    margin-top: 0 !important;
  }

  .hero-support {
    margin-top: 12px !important;
    padding: 13px 15px !important;
    border-radius: 17px !important;
    font-size: 14.5px !important;
    line-height: 1.50 !important;
  }

  .hero-actions {
    margin-top: 16px !important;
    gap: 10px !important;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  .trust-row {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .trust-row span {
    width: 100% !important;
    justify-content: flex-start !important;
    min-height: 46px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    font-size: 12.5px !important;
  }

  .main-flow-card,
  .visual-card {
    margin-top: 8px !important;
  }
}

@media (max-width: 380px) {
  .hero h1,
  h1.hero-title,
  .hero-title,
  .ec-hero h1,
  h1.hero-heading {
    font-size: 29px !important;
  }
}
/* ECOMCLOUD MOBILE HEADLINE READABILITY END */

