/* Brand tokens: FASOLVE Blue #3755FF, Ink #0E1116, Paper #FFFFFF */
:root {
  --brand: #3755ff;
  --brand-deep: #2440e0;
  --brand-soft: #4a66ff;
  --brand-tint: #e9edff;
  --ink: #0e1116;
  --muted: #4a4f57;
  --line: #d8dbe2;
  --paper: #ffffff;
  --wash: #f3f4f7;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-deep);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

/* Blue top: header + hero */
.top {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #ffffff;
}
.top .motif {
  position: absolute;
  right: -10%;
  bottom: -34%;
  width: 62%;
  min-width: 380px;
  height: auto;
  pointer-events: none;
}
.top .motif path {
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top a {
  color: #ffffff;
}
.top :focus-visible {
  outline-color: #ffffff;
}

.site-header {
  position: relative;
  z-index: 1;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo svg {
  width: 36px;
  height: 36px;
  flex: none;
}
.logo span {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav .text-link {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.nav .text-link:hover {
  text-decoration: underline;
  color: #ffffff;
}
/* Language switch: EN / ID links in a pill, the current language filled white */
.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.lang-switch a[aria-current="page"] {
  background: #ffffff;
  color: var(--ink);
}
.button.on-blue {
  background: #ffffff;
  color: var(--ink);
}
.button.on-blue:hover {
  background: var(--ink);
  color: #ffffff;
}
.button.on-blue-outline {
  border-color: #ffffff;
  color: #ffffff;
  background: transparent;
}
.button.on-blue-outline:hover {
  background: #ffffff;
  color: var(--ink);
}

.hero .wrap {
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.hero h1 {
  font-size: clamp(48px, 7.2vw, 100px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero .lead {
  margin-top: 28px;
  max-width: 38ch;
  font-size: clamp(19px, 1.8vw, 22px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero art: a calm "business overview" card (adapted from the other agent's design for the blue hero) */
.hero-art {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.art-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  right: 0;
  top: 4%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 72%
  );
}
.orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 38px;
  left: 62px;
  background: #ffffff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18);
}
.dashboard {
  position: relative;
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px rgba(14, 17, 22, 0.28);
}
.dash-head {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f5;
}
.dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.dash-title svg {
  width: 22px;
  height: 22px;
}
.dash-dots {
  display: flex;
  gap: 4px;
}
.dash-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5d9e4;
}
.dash-body {
  padding: 20px;
}
.dash-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-number {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 4px;
  line-height: 1.15;
}
.dash-chip {
  font-size: 11px;
  background: #eafaf3;
  color: #11714d;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 700;
}
.chart {
  height: 94px;
  margin: 20px 0 16px;
  position: relative;
  border-bottom: 1px solid #edf0f5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 30px,
    #eff1f6 31px
  );
}
.chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dash-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-card {
  border: 1px solid #edf0f5;
  border-radius: 10px;
  padding: 12px;
}
.mini-card .dash-number {
  font-size: 17px;
}
.mini-card .dash-label {
  font-size: 11px;
}
.progress {
  height: 5px;
  background: #edf0f6;
  border-radius: 10px;
  margin-top: 11px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 10px;
}
.float-note {
  position: absolute;
  bottom: 24px;
  left: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(14, 17, 22, 0.2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.float-note small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #5d6472;
}
.ok {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eafaf3;
  display: grid;
  place-items: center;
}
.ok svg {
  width: 16px;
  height: 16px;
}
.float-tag {
  position: absolute;
  right: -4px;
  top: 6px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 17, 22, 0.25);
}

/* Sound familiar: pain cards (layout from the other agent, our wording) */
.problems-section {
  background: var(--wash);
}
.problems-head p.kicker,
.experience-copy p.kicker {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--brand-deep);
  max-width: none;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.problems-head {
  max-width: 680px;
}
.problems-head h2 {
  margin-top: 14px;
}
.problems-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--muted);
  max-width: 54ch;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}
.pain-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
}
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.icon-box svg {
  width: 20px;
  height: 20px;
}
.pain-card h3 {
  font-size: 19px;
  font-weight: 700;
}
.pain-card p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.section-note {
  margin-top: 22px;
  font-size: 16px;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .pain-card {
    transition:
      transform 0.2s,
      border-color 0.2s;
  }
  .pain-card:hover {
    transform: translateY(-3px);
    border-color: #b9c4ff;
  }
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
}
.section h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-head p {
  font-size: 20px;
  color: var(--muted);
  max-width: 50ch;
}

/* What we do: one big word per row */
.pillars {
  margin-top: clamp(36px, 5vw, 64px);
  border-bottom: 2px solid var(--ink);
}
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 12px clamp(24px, 5vw, 64px);
  align-items: baseline;
  padding: 28px 0 36px;
  border-top: 2px solid var(--ink);
}
.pillar h3 {
  font-size: clamp(60px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.pillar.invent h3 {
  color: var(--brand);
}

/* Indonesian page (/): "menghambat" in the hero title is about 6 times its font size wide,
   so the title gets a smaller cap to fit its column on wide screens */
:lang(id) .hero h1 {
  font-size: clamp(48px, 7.2vw, 96px);
}
.pillar .what {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}
.pillar .example {
  margin-top: 10px;
  color: var(--muted);
}

/* Try a demo: copy on the left, a small preview of the demo's chat on the right */
.demo-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--wash);
}
.demo-card h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}
.demo-card .lead {
  margin-top: 14px;
  font-size: 19px;
  max-width: 44ch;
}
.demo-card .note {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 48ch;
}
.demo-card .button {
  margin-top: 28px;
  background: var(--ink);
  color: #ffffff;
}
.demo-card .button:hover {
  background: var(--brand-deep);
  color: #ffffff;
}
/* Same colours as the store's chat on /demo/toko-besi/ */
.demo-preview {
  max-width: 340px;
  width: 100%;
  justify-self: center;
  border-radius: 20px;
  overflow: hidden;
  background: #ece5dd;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  box-shadow: 0 24px 48px -24px rgba(14, 17, 22, 0.45);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d5c50;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}
.demo-bar small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.demo-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #dfeae6;
  color: #0d5c50;
  font-size: 13px;
  font-weight: 700;
}
.demo-wall {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 20px;
  font-size: 14.5px;
  line-height: 1.4;
  color: #111b21;
}
.demo-msg {
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.demo-msg.in {
  align-self: flex-start;
  background: #ffffff;
  border-top-left-radius: 0;
}
.demo-msg.out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 0;
}
.demo-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 8px;
  border-top-left-radius: 0;
  background: #ffffff;
}
.demo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa6ad;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-typing span {
    animation: demo-typing 1.2s infinite ease-in-out;
  }
  .demo-typing span:nth-child(2) {
    animation-delay: 0.15s;
  }
  .demo-typing span:nth-child(3) {
    animation-delay: 0.3s;
  }
  @keyframes demo-typing {
    0%,
    60%,
    100% {
      opacity: 0.4;
    }
    30% {
      opacity: 1;
    }
  }
}

/* How we work */
.steps {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 72px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 64px;
  right: -16px;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 26px;
  font-weight: 700;
}
.steps p {
  margin-top: 10px;
  color: var(--muted);
}

.expect {
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--brand-tint);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
}
.expect h3 {
  font-size: 24px;
  font-weight: 700;
}
.expect dl {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
}
.expect dt {
  font-weight: 700;
}
.expect dd {
  margin: 4px 0 0;
  color: #33373e;
}

/* Founder (layout and wording from the other agent) */
.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.experience-copy h2 {
  margin-top: 14px;
}
.experience-copy p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48ch;
}
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.experience-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.experience-item .tickbox {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
}
.experience-item .tickbox svg {
  width: 16px;
  height: 16px;
}
.experience-item strong {
  display: block;
  font-size: 17px;
  margin-top: 2px;
}
.experience-item span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Contact */
.contact {
  background: var(--brand);
  color: #ffffff;
}
.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px clamp(40px, 7vw, 96px);
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.contact .copy {
  flex: 1 1 440px;
}
.contact h2 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 700;
  max-width: 15ch;
  letter-spacing: -0.035em;
}
.contact .copy p {
  margin-top: 20px;
  font-size: 20px;
  max-width: 40ch;
}
.message {
  flex: 1 1 340px;
  max-width: 440px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
}
.message .label {
  font-size: 15px;
  color: var(--muted);
}
.message .bubble {
  margin-top: 12px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  padding: 14px 18px;
  font-size: 18px;
  line-height: 1.45;
}
.message .bubble-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.message .button {
  display: flex;
  margin-top: 18px;
  background: var(--ink);
  color: #ffffff;
}
.message .button:hover {
  background: var(--brand-deep);
  color: #ffffff;
}
.message .alt {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.contact :focus-visible {
  outline-color: #ffffff;
}
.message :focus-visible {
  outline-color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 15px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand a {
  display: inline-flex;
}
.footer-logo {
  width: 132px;
  height: auto;
  display: block;
}
.site-footer .tagline {
  color: var(--ink);
  font-weight: 500;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

@media (max-width: 880px) {
  .nav .text-link {
    display: none;
  }
  .hero .wrap,
  .section-head,
  .pillar,
  .experience {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    min-height: 380px;
  }
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps,
  .demo-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li::after {
    display: none;
  }
  .expect dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .pain-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    min-height: 340px;
  }
  .art-glow,
  .orbit {
    width: 300px;
    height: 300px;
  }
  .dashboard {
    width: calc(100% - 20px);
  }
  .dash-body {
    padding: 16px;
  }
  .float-note {
    left: -2px;
    bottom: 4px;
  }
  .float-tag {
    right: -2px;
    top: -22px;
  }
}
@media (max-width: 480px) {
  /* Logo, language switch and this button don't fit in one row on a phone.
     The hero's identical WhatsApp button is in the first screen, so drop this one. */
  .site-header .button {
    display: none;
  }
}
@media (max-width: 420px) {
  .logo span {
    font-size: 21px;
  }
}
