/* Mimikara site styles.
   Design tokens are inherited from the Torven Labs homepage so the subdomain
   reads as part of the same family. The one deliberate departure: the hero and
   the screenshot stage sit on true black (#000), matching the app itself, and
   fade into the site background. */

:root {
  /* Surfaces: site chrome (near-black, from torvenlabs.com) */
  --bg: #08080a;
  --bg2: #0b0b0e;
  --surface: #101015;
  --surface2: #15151b;

  /* The app's own true black, used for the hero and screenshot stage */
  --oled: #000000;

  --border: rgba(255, 255, 255, .09);
  --border2: rgba(255, 255, 255, .18);

  --text: #f3f3f5;
  --mute: #a4a4ad;
  --dim: #6b6b75;

  /* Torven Labs wordmark red. Used sparingly, for maker attribution only. */
  --torven: #e0392c;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --disp: 'Space Grotesk', system-ui, sans-serif;

  /* Japanese text falls back through the system's bundled JP faces. */
  --jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
        'Yu Gothic', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--disp);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: #fafafa; color: #000; }

img { max-width: 100%; }

/* ---------- shared primitives ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

/* The "// SECTION" eyebrow used throughout the Torven Labs site. */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--dim);
  margin-bottom: 28px;
}

.section {
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  border-bottom: 1px solid var(--border);
}

.section--alt { background: var(--bg2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 15px 24px;
  border-radius: 9px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn--primary {
  color: #0a0a0a;
  background: #fafafa;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 255, 255, .35);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border2);
}

.btn--ghost:hover {
  background: var(--surface2);
  border-color: #fff;
}

/* Status pill, e.g. "COMING SOON TO THE APP STORE". */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mute);
  border: 1px solid var(--border2);
  padding: 9px 15px;
  border-radius: 999px;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fafafa;
  animation: blink 1.6s step-end infinite;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(8, 8, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav__mark { height: 22px; width: auto; display: block; }

.nav__wordmark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .34em;
  font-weight: 500;
  padding-top: 2px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav__link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mute);
  transition: color .15s;
  white-space: nowrap;
}

.nav__link:hover { color: var(--text); }

/* The wordmark is the first thing to go on narrow screens. */
@media (max-width: 560px) {
  .nav__wordmark { display: none; }
  .nav__links { gap: 16px; }
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  transition: border-color .18s, transform .18s, background .18s;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  background: var(--surface2);
}

.card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  margin-bottom: 14px;
}

.card__title {
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mute);
  margin: 0;
}

/* ---------- long-form copy (support, privacy) ---------- */

.prose { max-width: 68ch; }

.prose h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -.02em;
  margin: 52px 0 14px;
}

.prose h3 {
  font-weight: 600;
  font-size: clamp(16px, 1.9vw, 18px);
  letter-spacing: -.01em;
  margin: 30px 0 8px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--mute);
  margin: 0 0 16px;
}

.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--text); font-weight: 500; }

.prose a {
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  transition: border-color .15s;
}

.prose a:hover { border-color: #fff; }

/* ---------- footer ---------- */

.footer {
  padding: clamp(64px, 9vw, 110px) var(--gutter) 48px;
  background: var(--bg);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark { height: 18px; width: auto; opacity: .85; }

.footer__wordmark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mute);
}

.footer__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--dim);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 40px;
}

.footer__link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mute);
  transition: color .15s;
}

.footer__link:hover { color: var(--text); }

/* The one place the Torven red appears. */
.footer__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--torven);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- motion ---------- */

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

/* Reveal is gated on the `js` class, which reveal.js sets on <html> before
   paint. Without JS the content is simply visible, never blank. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
              transform .7s cubic-bezier(.16, 1, .3, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill__dot { animation: none; }

  .btn:hover,
  .card:hover { transform: none; }
}
