/* ============================================================
   Manabisa — landing
   Signature: the name comes from "mana bisa" (Indonesian for
   "no way, impossible"). The hero resolves that doubt into "bisa."
   Palette is deliberately cool + confident to sit apart from
   Pintar's warm cream/emerald product identity.
   ============================================================ */

:root {
  --night: #10131a;   /* deep indigo-black — dark band + strong text */
  --ink: #1a2030;     /* primary text on light */
  --mist: #e9ecf3;    /* cool pale background */
  --paper: #ffffff;   /* card surface */
  --surge: #ff4d2e;   /* the single bold accent — "bisa" */
  --surge-deep: #dd3c1d;
  --slate: #5b6373;   /* muted text */
  --slate-dim: #8a91a1;
  --line: #d6dae4;    /* hairlines on light */
  --line-dark: #2a2f3d;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1060px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

em {
  font-style: normal;
  color: var(--surge-deep);
  font-weight: 600;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--night);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 8px 0;
}
.skip:focus {
  left: 0;
}

/* ── Layout helpers ── */

.hero,
.product,
.studio,
.contact,
.site,
.site-foot {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Header ── */

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark .dot,
.foot-mark .dot {
  color: var(--surge);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--slate);
  transition: color 0.18s ease;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav .nav-cta {
  color: var(--ink);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.site-nav .nav-cta:hover {
  background: var(--ink);
  color: #fff;
}

/* ── Hero ── */

.hero {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
  margin-bottom: 1.4rem;
}

/* Two-line call-and-response. Both lines are meaningful without motion
   (crawlers, OG previews, no-JS all see the resolved "bisa."); the load
   animation only enhances — the struck question, then the answer settling. */
.flip {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--night);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.flip-doubt {
  color: var(--slate-dim);
  font-weight: 700;
  font-size: 0.52em;
  letter-spacing: -0.03em;
  margin-bottom: 0.1em;
}

.flip-strike {
  position: relative;
}
.flip-strike::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  top: 54%;
  height: 0.08em;
  background: var(--surge);
  transform: scaleX(1);
  transform-origin: left center;
  animation: strike 0.5s cubic-bezier(0.6, 0, 0.35, 1) 0.35s both;
}

.flip-answer {
  color: var(--night);
  position: relative;
  animation: answer-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both;
}
.flip-answer::after {
  content: "";
  position: absolute;
  left: 0.02em;
  bottom: 0.02em;
  width: calc(100% - 0.04em);
  height: 0.09em;
  background: var(--surge);
  transform: scaleX(1);
  transform-origin: left center;
  animation: underline 0.55s cubic-bezier(0.6, 0, 0.35, 1) 1.15s both;
}
.flip-period {
  color: var(--surge);
}

/* `both` fill means these hold the "from" state during the delay, so the
   line/underline draw in and the answer rises — but the declared resting
   values above (scaleX(1), translateY(0.12em)) are what shows without motion. */
@keyframes strike {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes answer-rise {
  from { transform: translateY(0.28em); opacity: 0.55; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--slate);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}
.btn .arw {
  transition: transform 0.2s ease;
}
.btn:hover .arw {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--surge);
  color: #fff;
}
.btn-primary:hover {
  background: var(--surge-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── Product ── */

.product {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.section-label {
  display: block;
  margin-bottom: 1.4rem;
}

.product-card {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(16, 19, 26, 0.04),
    0 18px 40px -28px rgba(16, 19, 26, 0.35);
}
.product-mark {
  flex-shrink: 0;
  line-height: 0;
}
.product-mark svg {
  border-radius: 16px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.product-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tag-live {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #047857;
  background: #e3f5ec;
  border: 1px solid #bfe6d4;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.tag-live::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #0a9c6f;
  margin-right: 0.4em;
  vertical-align: 0.05em;
}
.product-lede {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 1.2rem;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.facts li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--surge-deep);
}
.product-link .arw {
  transition: transform 0.2s ease;
}
.product-link:hover .arw {
  transform: translateX(3px);
}

.more-note {
  margin-top: 1.5rem;
  color: var(--slate-dim);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* ── Studio (dark band) ── */

.studio {
  max-width: none;
  padding-inline: 0;
  background: var(--night);
  color: #eef0f5;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.studio > * {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.studio .section-label {
  color: var(--slate-dim);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.principle {
  border-top: 2px solid var(--surge);
  padding-top: 1.1rem;
}
.principle h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  color: #fff;
}
.principle p {
  color: #aab2c2;
  font-size: 0.98rem;
}

/* ── Contact ── */

.contact {
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.contact h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--night);
  max-width: 18ch;
  margin: 0 auto 1.8rem;
}

/* ── Footer ── */

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.85rem;
}
.foot-mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.foot-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

::selection {
  background: var(--surge);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--surge);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive ── */

@media (max-width: 720px) {
  .product-card {
    flex-direction: column;
    gap: 1.25rem;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 520px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ── Reduced motion: skip the flip performance, show the resolved state ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flip-answer {
    opacity: 1;
    transform: none;
  }
  .flip-doubt,
  .flip-answer,
  .flip-answer::after,
  .flip-strike::after,
  .btn,
  .btn .arw {
    animation: none;
    transition: none;
  }
}
