/* Indaloop LLC — site styles (version G · Zen) */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --line: #f4f4f5;
  --border: #e4e4e7;
  --fg: #18181b;
  --fg-body: #3f3f46;
  --fg-2: #52525b;
  --fg-muted: #71717a;
  --fg-faint: #a1a1aa;
  --ok: #15803d;
  --led: #16a34a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); }
a:hover { color: var(--fg-2); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--fg-muted); }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--fg); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em;
}
.brand svg { width: 30px; height: 17px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 14px; }
.nav a { color: var(--fg-2); text-decoration: none; padding: 12px 4px; }
.nav a:hover { color: var(--fg); }
.nav .nav-cta { display: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  border: 1px solid var(--border); color: var(--fg); background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--fg-faint); color: var(--fg); }
.btn-dark { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn-dark:hover { background: #3f3f46; border-color: #3f3f46; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 88px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.hero-mark { width: 120px; height: 68px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.hero .lede { max-width: 640px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--fg-2); }
.hero .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section-tight-top { padding-top: clamp(24px, 4vw, 48px); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.section-head p { font-size: 15px; color: var(--fg-muted); }
.band { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.split > .main { flex: 2 1 480px; min-width: 0; }

/* ---------- Concept cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { border-color: var(--fg-faint); transform: translateY(-3px); }
.demo {
  height: 200px; background: var(--bg-subtle); border-bottom: 1px solid var(--line);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
}
.demo-center { align-items: center; }
.demo-row { flex-direction: row; align-items: center; gap: 18px; justify-content: flex-start; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.tag { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg-2); }
.card-desc { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.card-loop { font-size: 14px; line-height: 1.6; color: var(--fg-body); }
.status { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); display: inline-block; flex: none; }
.swipe-hint, .rail-dots { display: none; }

/* demo: Cicada */
.bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.bars span { width: 4px; height: 40px; border-radius: 2px; background: var(--fg); display: block; transform-origin: center; }
.subs { position: relative; height: 44px; font-size: 14px; line-height: 1.45; }
.subs > div { position: absolute; inset: 0; }
.subs small { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); display: block; }
.key { align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
/* demo: Shisei */
.figure { width: 90px; height: 110px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 11px; }
.chips span { padding: 3px 8px; border-radius: 999px; background: #f4f4f5; color: var(--fg-2); }
/* demo: TryBoard */
.board { width: 96px; height: 120px; flex: none; }
.log { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--fg-body); min-width: 0; }
.log .pass { color: var(--ok); }

/* ---------- Approach list ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); padding-top: 2px; }
.steps strong { font-weight: 600; }
.steps span.t { color: var(--fg-2); }

/* ---------- Company ---------- */
.email-big { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; text-underline-offset: 6px; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px 24px; font-size: 15px; line-height: 1.5; }
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  padding-top: 28px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 13px; line-height: 1.6; color: var(--fg-muted);
}
.footer-row a { color: var(--fg-2); }

/* ---------- Privacy page ---------- */
.legal-head { padding-top: clamp(40px, 7vw, 88px); display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.legal-head h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.045em; line-height: 1.05; font-weight: 600; }
.legal-head .dates { font-size: 15px; color: var(--fg-muted); }
.legal-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: clamp(56px, 8vw, 96px); margin-top: 40px; border-top: 1px solid var(--fg); }
.toc { flex: 1 1 220px; min-width: 0; font-size: 14px; position: sticky; top: 88px; }
.toc p { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 8px; }
.toc a { display: block; padding: 6px 0; color: var(--fg-2); text-decoration: none; }
.toc a:hover { color: var(--fg); }
.legal { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.legal section { scroll-margin-top: 88px; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--fg-body); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--fg-body); padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes swap1 { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swap2 { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes key { 0%, 100% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0); } 40%, 60% { box-shadow: 0 0 0 6px rgba(24, 24, 27, 0.08); } }
@keyframes chip { 0%, 18% { background: #18181b; color: #fff; } 20%, 100% { background: #f4f4f5; color: #52525b; } }
@keyframes turn {
  0%, 18% { transform: scaleX(1); } 20%, 38% { transform: scaleX(0.55); } 40%, 58% { transform: scaleX(0.2); }
  60%, 78% { transform: scaleX(1) translateY(-3px); } 80%, 100% { transform: scaleX(1) translateY(3px); }
}
@keyframes led { 0%, 49% { fill: #16a34a; } 50%, 100% { fill: #d4d4d8; } }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

.rise { animation: rise 0.9s var(--ease) both; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.38s; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s cubic-bezier(0.6, 0.1, 0.2, 1) 0.4s forwards; }
.bars span { animation: bar 1.1s ease-in-out infinite; }
.bars span:nth-child(2) { animation-delay: -0.2s; } .bars span:nth-child(3) { animation-delay: -0.5s; }
.bars span:nth-child(4) { animation-delay: -0.8s; } .bars span:nth-child(5) { animation-delay: -0.3s; }
.bars span:nth-child(6) { animation-delay: -0.65s; } .bars span:nth-child(7) { animation-delay: -0.1s; }
.bars span:nth-child(8) { animation-delay: -0.9s; } .bars span:nth-child(9) { animation-delay: -0.4s; }
.subs .s1 { animation: swap1 6s ease infinite; }
.subs .s2 { animation: swap2 6s ease infinite; }
.key { animation: key 3s ease-in-out infinite; }
.chips span { animation: chip 5s step-end infinite; }
.chips span:nth-child(2) { animation-delay: -4s; } .chips span:nth-child(3) { animation-delay: -3s; }
.chips span:nth-child(4) { animation-delay: -2s; } .chips span:nth-child(5) { animation-delay: -1s; }
.turn { transform-box: fill-box; transform-origin: center; animation: turn 5s step-end infinite; }
.led { animation: led 1s step-end infinite; }
.log div { animation: line-in 0.5s ease both; }
.log div:nth-child(1) { animation-delay: 0.4s; } .log div:nth-child(2) { animation-delay: 0.9s; }
.log div:nth-child(3) { animation-delay: 1.4s; } .log div:nth-child(4) { animation-delay: 1.9s; }
.dot { animation: pulse 2s ease-in-out infinite; }
.swipe-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }

/* Scroll reveal is movement only, never opacity: content stays visible to full-page screenshots and crawlers. */
@keyframes slide-in { from { transform: translateY(28px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
  .subs .s2 { opacity: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; font-size: 17px;
  }
  .nav.open { display: flex; animation: rise 0.25s ease both; }
  .nav a { color: var(--fg); font-weight: 500; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0; }
  .nav .nav-cta {
    display: flex; justify-content: center; margin-top: 16px; min-height: 48px;
    background: var(--fg); color: #fff; border-radius: 12px; border: 0; font-size: 16px;
  }

  .hero { align-items: flex-start; text-align: left; padding-top: 48px; gap: 18px; }
  .hero-mark { width: 84px; height: 48px; }
  .actions { flex-direction: column; align-self: stretch; }
  .actions .btn { width: 100%; min-height: 50px; font-size: 16px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .swipe-hint { display: block; font-size: 13px; color: var(--fg-muted); }
  .cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
  .card:hover { transform: none; }
  .demo { height: 170px; padding: 18px; }
  .card-body { padding: 18px; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dt { font-size: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .facts dd { padding-bottom: 4px; }

  .footer-row { flex-direction: column; }
  .toc { position: static; }
}

.side-note { font-size: 16px; line-height: 1.6; max-width: 420px; color: var(--fg-muted); }
