:root {
  --primary: #174d3a;
  --primary-hover: #1f6049;
  --primary-light: #e8f3ee;
  --bg: #f6f8f7;
  --text: #16241d;
  --muted: #67756e;
  --card: #fff;
  --border: #e4e9e6;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(22, 36, 29, 0.06);
  --shadow-lg: 0 16px 40px rgba(23, 77, 58, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 760px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #eef5f1;
}

/* Pill badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.pill-badge.center {
  display: table;
  margin: 0 auto 16px;
}

.pill-badge.light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* Header (floating pill) */
.landing-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 16px;
}

.header-pill {
  max-width: 1060px;
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark.big {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  max-width: 1060px;
  margin: 8px auto 0;
  padding: 12px 20px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 11px 0;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.nav-mobile .header-actions {
  margin-top: 16px;
  flex-direction: column;
}

.nav-mobile .btn {
  width: 100%;
}

/* Hero */
.hero {
  padding: 72px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-bullets svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Browser-frame mockup */
.browser-frame {
  max-width: 920px;
  margin: 0 auto -2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfb;
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e5e2;
}

.browser-url {
  margin-left: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 14px;
}

.browser-body {
  display: flex;
}

.mock-sidebar {
  width: 168px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  background: #fbfcfb;
}

.mock-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px 6px;
}

.mock-nav-item {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.mock-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.mock-main {
  flex: 1;
  padding: 18px;
  min-width: 0;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mock-kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.mock-kpi .label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-kpi .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.mock-kpi .value.positive {
  color: var(--primary);
}

.mock-chart {
  height: 90px;
  background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
  border-radius: 10px;
  position: relative;
  margin-bottom: 12px;
}

.mock-chart::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0 35 L40 25 L80 30 L120 15 L160 20 L200 5' fill='none' stroke='%23174d3a' stroke-width='2'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
}

.mock-table {
  font-size: 0.75rem;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.mock-row.head {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-row strong {
  color: var(--primary);
}

/* Logo strip */
.logo-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.logo-strip-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 56px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #3c4a43;
}

.soon-tag {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* Problem */
.section .pill-badge.center + .section-title {
  margin-bottom: 16px;
}

.problem-text {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* Bento features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.section-alt .bento-card {
  background: var(--bg);
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
}

.bento-visual {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f2f8f5 100%);
  border-radius: 12px;
  padding: 18px 20px 10px;
  margin-bottom: 18px;
}

.profit-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 110px;
  gap: 12px;
}

.profit-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
  max-width: 64px;
}

.profit-bar span {
  display: block;
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: #b9d2c6;
}

.profit-bar.highlight span {
  background: var(--primary);
}

.profit-bar em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 6px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.bento-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.step {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  box-shadow: var(--shadow);
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-cta {
  text-align: center;
}

/* Integrations orbit */
.orbit {
  position: relative;
  max-width: 640px;
  height: 340px;
  margin: 0 auto;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
}

.node-ml {
  top: 22%;
  left: 4%;
  transform: translateY(-50%);
}

.node-shopee {
  top: 22%;
  right: 4%;
  transform: translateY(-50%);
}

.node-amazon {
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 4px;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.pricing-features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 20px;
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Final CTA */
.cta-final-wrap {
  padding: 80px 0;
}

.cta-final {
  background: var(--primary);
  background-image: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12), transparent 60%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  text-align: center;
}

.cta-final h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Footer */
.landing-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  overflow: hidden;
}

.footer-top {
  text-align: center;
}

.landing-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.landing-footer nav a {
  font-size: 0.875rem;
  color: var(--muted);
}

.landing-footer nav a:hover {
  color: var(--primary);
}

.landing-footer .copyright {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.landing-footer .disclaimer {
  font-size: 0.75rem;
  color: #9aa6a0;
  margin: 0;
}

.footer-wordmark {
  font-size: clamp(2.4rem, 14vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-align: center;
  color: var(--primary);
  opacity: 0.1;
  user-select: none;
  margin-top: 24px;
  margin-bottom: -0.18em;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .mock-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .header-pill > .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 48px 0 0;
  }

  .hero h1 br {
    display: none;
  }

  .hero-bullets {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .section {
    padding: 56px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .mock-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .orbit {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
  }

  .orbit-lines {
    display: none;
  }

  .orbit-center {
    position: static;
    transform: none;
    order: -1;
  }

  .orbit-node {
    position: static;
    transform: none;
  }

  .cta-final-wrap {
    padding: 56px 0;
  }

  .cta-final {
    padding: 48px 20px;
  }
}

/* ============================================================
   DYNAMIC ENHANCEMENTS
   ============================================================ */

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* --- Hero gradient bg blob --- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 65% 25%, rgba(23, 77, 58, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 20% 80%, rgba(23, 77, 58, 0.06) 0%, transparent 60%);
  animation: hero-blob 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
@keyframes hero-blob {
  from { transform: scale(1); }
  to   { transform: scale(1.1) translateY(-10px); }
}

/* --- Gradient text on hero headline --- */
.hero h1 .gradient-word {
  background: linear-gradient(135deg, var(--primary) 0%, #2a9e6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Pill dot pulse --- */
.pill-dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.55; }
}

/* --- Button hover lift --- */
.btn {
  transition: background 0.15s, color 0.15s, border-color 0.15s,
              transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 77, 58, 0.18);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- Bento card hover lift --- */
.bento-card {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(23, 77, 58, 0.12);
}

/* --- Step card hover --- */
.step {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(23, 77, 58, 0.11);
}

/* --- Pricing card hover --- */
.pricing-card:not(.featured) {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}
.pricing-card:not(.featured):hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(23, 77, 58, 0.12);
}

/* --- Profit bars animate in --- */
.profit-bar span {
  transition: height 0.9s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* --- FAQ smooth open animation --- */
.faq-item {
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: 0 4px 18px rgba(23, 77, 58, 0.08);
}
.faq-item p {
  animation: faq-reveal 0.3s ease;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Orbit node float (desktop only) --- */
@media (min-width: 769px) {
  .node-ml {
    animation: float-y 5s ease-in-out infinite;
  }
  .node-shopee {
    animation: float-y 5s ease-in-out 2s infinite;
  }
  .node-amazon {
    animation: float-x 5s ease-in-out 3.8s infinite;
  }
}
@keyframes float-y {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 7px)); }
}
@keyframes float-x {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

/* --- Orbit ring slow spin --- */
.orbit-lines circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-spin 30s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* --- Typed cursor on hero --- */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--primary);
  vertical-align: middle;
  margin-left: 3px;
  border-radius: 2px;
  animation: cursor-blink 0.85s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- Mock KPI count-up shimmer --- */
.mock-kpi .value.counting {
  color: var(--muted);
}
.mock-kpi .value.done {
  animation: kpi-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kpi-pop {
  from { transform: scale(0.92); }
  to   { transform: scale(1); }
}

/* --- Orbit center pulse ring --- */
.orbit-center::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(23, 77, 58, 0.18);
  animation: center-ring 3s ease-out infinite;
}
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; }
@keyframes center-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --- Logo strip brand logo hover --- */
.brand-logo {
  transition: transform 0.2s;
}
.brand-logo:hover {
  transform: translateY(-2px);
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 22, 17, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 424px;
  box-shadow: 0 28px 72px rgba(12, 22, 17, 0.28);
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 28px;
}

.modal-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}
.modal-tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.modal-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(23, 77, 58, 0.12);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-form.hidden { display: none; }

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.modal-field .optional {
  font-weight: 400;
  color: var(--muted);
}
.modal-field input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.modal-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 77, 58, 0.12);
  background: #fff;
}
.modal-field input::placeholder {
  color: #b0bcb5;
}

.modal-error {
  font-size: 0.83rem;
  color: #c0392b;
  background: #fef2f2;
  border: 1px solid #fcd5d5;
  border-radius: 8px;
  padding: 9px 12px;
  margin: 0;
}
.modal-error.hidden { display: none; }
.modal-error.success {
  color: #174d3a;
  background: #e8f5ef;
  border-color: #b7e4c7;
}

.verify-hint {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 16px;
}

.verify-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.link-btn {
  width: auto;
  padding: 0;
  background: none;
  border: none;
  color: #174d3a;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.btn-modal-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  border-radius: 12px;
  margin-top: 4px;
  position: relative;
}
.btn-modal-submit.loading {
  color: transparent;
  pointer-events: none;
}
.btn-modal-submit.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 480px) {
  .modal-card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }
}

/* --- Marketplace logo images --- */
.marketplace-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  max-width: 180px;
  display: block;
}
.marketplace-logo--rounded {
  border-radius: 8px;
}

/* --- Orbit logo images --- */
.orbit-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  max-width: 140px;
  display: block;
}
.orbit-logo--rounded {
  border-radius: 6px;
}
