/* Homepage – Figma design + mobile */

.page-home {
  --primary: #ff6562;
  --primary-dark: #e44e4b;
  --primary-20: #ffe0e0;
  --primary-60: #ffa3a1;
  --ink: #121517;
  --ink-l2: #171a1d;
  --muted: rgba(23, 26, 29, 0.6);
  --bg: #f2f2f6;
  --dark-bg: #303030;
  --container: 1400px;
  --section-gap: 120px;
  --font-heading: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'PingFang SC', ui-sans-serif, system-ui, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home main {
  background: #f2f2f6;
}

.page-home *,
.page-home *::before,
.page-home *::after { box-sizing: border-box; }

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

.page-home .section {
  padding: var(--section-gap) 0;
}

.page-home .center { text-align: center; }

.page-home h1,
.page-home h2,
.page-home h3 { margin-top: 0; }

.page-home h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 30px;
  max-width: 760px;
}

.page-home h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-home h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-home .lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 600px;
}

.page-home .center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Badge – reset global .badge absolute positioning from style.css */
.page-home .badge {
  position: static;
  right: auto;
  top: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 28px;
  background: var(--primary-20);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
  box-shadow: none;
}

/* Buttons */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.12;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.32px;
  text-decoration: none;
}

.page-home .btn:hover { transform: translateY(-1px); }

.page-home .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 101, 98, 0.24);
}

.page-home .btn-primary:hover { background: var(--primary-dark); }

.page-home .btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.page-home .btn-outline:hover { background: rgba(255, 101, 98, 0.06); }

.page-home .btn-sm {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Pricing */
.page-home .section-pricing {
  padding: 60px 0 80px;
}

.page-home .section-pricing h2 {
  margin-bottom: 16px;
}

.page-home .section-pricing .lead {
  margin-top: 0;
}

.page-home .pricing-btn { margin-top: 24px; }

/* Header */
.page-home .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 40px 0 0;
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.page-home .header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 24px;
  padding: 16px 32px;
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
  position: relative;
}

.page-home .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.page-home .brand-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.page-home .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.28px;
}

.page-home .nav-links a {
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

.page-home .nav-links a:first-child { font-weight: 600; }

.page-home .nav-links a:hover { color: var(--primary-dark); }

.page-home .nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-home .nav-contact {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.page-home .hide-mobile { display: inline-flex; }

.page-home .nav-mobile-actions { display: none; }

.page-home .mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

/* Hero */
.page-home .hero {
  position: relative;
  min-height: 1000px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  padding: 0;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/bg.png") center/cover no-repeat;
  z-index: 0;
}

.page-home .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 242, 246, 0.96) 0%, rgba(242, 242, 246, 0.88) 38%, rgba(242, 242, 246, 0.45) 58%, transparent 78%);
  pointer-events: none;
}

.page-home .hero-content {
  position: relative;
  z-index: 1;
  padding: 218px 0 80px;
  padding-left: 20px;
  margin: 0 auto;
  text-align: left;
}

.page-home .hero-content .badge {
  background: linear-gradient(90deg, rgba(58,58,58,.12), rgba(115,115,115,.12));
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.page-home .hero-content .lead {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--ink);
  max-width: 621px;
}

.page-home .hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-home .hero-actions .btn { min-width: 160px; }

.page-home .hero-checks {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-bottom: 60px;
  flex-wrap: wrap;
}

.page-home .check-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--muted);
}

/* Flow */
.page-home .flow-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-home .flow-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 16px;
  width: 321px;
  max-width: 100%;
  text-align: left;
  flex: 1 1 280px;
  border: none;
  position: static;
}

.page-home .flow-card::after {
  content: none;
  display: none;
}

.page-home .flow-card p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.page-home .flow-num {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: var(--primary-20);
  color: var(--primary-60);
  font-size: 22px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  margin-bottom: 12px;
}

.page-home .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-home .flow-arrow img { display: block; }

/* Capabilities & Comparison */
.page-home .capabilities,
.page-home .section-comparison {
  background-color: #ffffff;
}

.page-home .capability-visual {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.page-home .capability-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .capability-cards {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 16px 4px;
  text-align: left;
}

.page-home .cap-card {
  text-decoration: none;
  color: inherit;
}

.page-home .cap-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #000;
  line-height: 1.4;
}

.page-home .cap-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  max-width: 240px;
}

/* Comparison */
.page-home .comparison-grid {
  display: grid;
  grid-template-columns: 360px 360px;
  gap: 28px;
  justify-content: center;
  margin-top: 60px;
  overflow: visible;
}

.page-home .compare-card {
  background: #f3f3f3;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: left;
  position: relative;
  overflow: visible;
}

.page-home .compare-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

.page-home .compare-card ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.page-home .compare-card ul li {
  font-size: 16px;
  color: var(--muted);
  line-height: 2;
}

.page-home .compare-card-highlight {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 40px rgba(255, 101, 98, 0.25);
  margin-top: -20px;
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: visible;
}

.page-home .compare-card-highlight h3,
.page-home .compare-card-highlight p,
.page-home .compare-card-highlight ul li { color: #fff; }

.page-home .compare-stamp {
  position: absolute;
  top: -22px;
  right: -28px;
  width: 109px;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Dark CTA */
.page-home .dark-cta {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 80px 0 60px;
  margin: 0 auto;
  max-width: var(--container);
  width: calc(100% - 40px);
}

.page-home .dark-cta-bg {
  position: absolute;
  inset: 0;
  background: url("../images/Frame%2040%20(1).png") center/cover no-repeat;
  z-index: 0;
}

.page-home .dark-cta-content {
  position: relative;
  z-index: 1;
}

.page-home .dark-cta-content h2 {
  color: var(--ink);
}

.page-home .triple-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 0;
}

.page-home .triple-card {
  text-align: left;
  max-width: 280px;
  padding: 0 20px;
}

.page-home .triple-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.page-home .triple-divider {
  width: 1px;
  height: 82px;
  background: rgba(23, 26, 29, 0.2);
  margin: 0 20px;
  flex-shrink: 0;
}

/* Industries */
.page-home .section-industries {
  background: #f2f2f6;
  padding: 60px 0 80px;
}

.page-home .industry-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-home .industry-card {
  width: 451px;
  max-width: 100%;
  height: 246px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  flex: 1 1 300px;
  transition: transform 0.3s ease;
}

.page-home .industry-card:hover { transform: translateY(-5px); }

.page-home .industry-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-home .industry-img-retail { background-image: url("../images/Frame%20256.png"); }
.page-home .industry-img-restaurant { background-image: url("../images/Rectangle%20346246002%20%281%29.png"); }
.page-home .industry-img-corporate { background-image: url("../images/Rectangle%20346246002.png"); }

.page-home .industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 36%, rgba(0,0,0,.54) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.page-home .industry-overlay h3 {
  color: #fff;
  margin-bottom: 12px;
}

.page-home .industry-overlay p {
  color: #fff;
  font-size: 16px;
  margin: 0;
  line-height: 1.12;
}

/* CTA Section */
.page-home .cta-section {
  position: relative;
  padding: 60px 0 100px;
  margin-top: 0;
}

.page-home .cta-bg {
  display: none;
}

.page-home .cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: url("../images/Mask%20group.png") center/cover no-repeat;
  border-radius: 16px;
  padding: 80px 60px;
  flex-wrap: wrap;
  overflow: hidden;
}

.page-home .cta-left { flex: 1; min-width: 280px; }

.page-home .cta-left h2 {
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.3;
  margin-bottom: 24px;
}

.page-home .cta-left p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 630px;
}

.page-home .cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .cta-actions .btn { min-width: 160px; }

/* Footer */
.page-home .footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 60px 0;
}

.page-home .footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.page-home .footer-brand { max-width: 280px; }

.page-home .footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.page-home .footer-brand p {
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,.6);
  margin: 24px 0 0;
}

.page-home .footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.page-home .footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  line-height: 1.5;
}

.page-home .footer-col a:hover { color: #fff; }

.page-home .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .page-home { --section-gap: 80px; }

  .page-home .flow-arrow { display: none; }
  .page-home .flow-card { flex: 1 1 calc(50% - 8px); }
  .page-home .comparison-grid { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .page-home .capability-visual { max-width: 100%; }
  .page-home .triple-divider { display: none; }
  .page-home .triple-cards { gap: 32px; }
  .page-home .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }
  .page-home .cta-left p { margin: 0 auto; }
  .page-home .cta-actions { justify-content: center; width: 100%; }

  .page-home .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .footer-brand { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 980px) {
  .page-home { --section-gap: 64px; }

  .page-home .header { padding: 12px 0 0; }
  .page-home .header-inner { padding: 12px 16px; border-radius: 16px; }
  .page-home .hide-mobile { display: none !important; }
  .page-home .mobile-toggle { display: block; }

  .page-home .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(16,24,40,.12);
    z-index: 200;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .page-home .nav-links.open { display: flex; }

  .page-home .nav-links a {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .page-home .nav-links a:hover { background: var(--primary-20); }

  .page-home .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e7eaf0;
  }

  .page-home .nav-mobile-actions .btn { width: 100%; }
  .page-home .nav-actions { margin-left: auto; gap: 8px; }

  .page-home .hero { min-height: auto; }
  .page-home .hero-bg { background-position: 80% 30%; }
  .page-home .hero-content { padding: 130px 0 48px; }
  .page-home .hero-content h1 { max-width: 100%; }
  .page-home .badge { white-space: normal; font-size: 14px; }

  .page-home .flow-card { flex: 1 1 100%; }
  .page-home .comparison-grid { grid-template-columns: 1fr; max-width: 100%; }
  .page-home .compare-card-highlight { margin-top: 0; padding-top: 40px;  }
  .page-home .capability-visual { max-width: 100%; }
  .page-home .capability-cards {
    position: static;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
    padding: 0;
  }
  .page-home .cap-card p { max-width: 100%; }
  .page-home .industry-card { flex: 1 1 100%; height: 220px; }
  .page-home .dark-cta { width: calc(100% - 32px); padding: 64px 0 48px; }
  .page-home .section-industries { padding: 48px 0 64px; }
  .page-home .section-pricing { padding: 48px 0 64px; }
  .page-home .cta-section { padding: 48px 0 80px; }
  .page-home .triple-card { text-align: left; max-width: 100%; }
  .page-home .footer-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .page-home .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .page-home { --section-gap: 48px; }
  .page-home .container { width: min(100% - 24px, var(--container)); }

  .page-home .brand-text { font-size: 18px; }
  .page-home .hero-bg { background-position: 85% 25%; }
  .page-home .hero-content { padding: 110px 0 36px; }
  .page-home .hero-actions { flex-direction: column; }
  .page-home .hero-actions .btn { width: 100%; min-width: 0; }
  .page-home .hero-checks { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 28px; }
  .page-home .check-item { font-size: 14px; white-space: normal; }

  .page-home .flow-grid { margin-top: 32px; gap: 12px; }
  .page-home .flow-card { padding: 24px 16px; }
  .page-home .flow-card h3 { font-size: 20px; }

  .page-home .dark-cta { width: calc(100% - 24px); border-radius: 16px; padding: 48px 16px 40px; }
  .page-home .section-industries { padding: 40px 0 48px; }
  .page-home .section-pricing { padding: 40px 0 48px; }
  .page-home .cta-section { padding: 40px 0 64px; }
  .page-home .cta-inner { padding: 48px 24px; }
  .page-home .cta-actions { flex-direction: column; width: 100%; }
  .page-home .cta-actions .btn { width: 100%; min-width: 0; }

  .page-home .footer-grid { grid-template-columns: 1fr; }
  .page-home .footer-bottom { flex-direction: column; align-items: flex-start; }
}
