/* SIMULARK — radically minimal
 * single typeface · neutral grid · no decoration
 */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-2: #2a2a2a;
  --fg-dim: #767676;
  --fg-faint: #c8c8c8;
  --line: #ececec;

  --max: 1280px;
  --gutter: 24px;
  --pad: 40px;

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
em, i { font-style: italic; font-weight: 400; color: var(--fg-dim); }
::selection { background: var(--fg); color: var(--bg); }

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

section {
  padding: 80px 0;
}
section + section { border-top: 1px solid var(--line); }

/* ─────────── Nav ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-dim);
  transition: color 180ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

/* ─────────── Page header ─────────── */
.page-head {
  padding: 200px 0 96px;
}
.page-head h1 {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 14ch;
}

/* ─────────── HERO (index) ─────────── */
.hero {
  padding: 200px 0 140px;
}
.hero h1 {
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 20ch;
}
.hero .lede {
  margin-top: 56px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg-2);
  max-width: 58ch;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* ─────────── Section heading ─────────── */
.section-head {
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}

/* ─────────── Index — feature rows (products) ─────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: background 200ms, padding-left 200ms, padding-right 200ms;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}
.feature-row:hover {
  background: #fafaf8;
}
.feature-row .name .plat,
.products-list .row .name .plat {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-left: 12px;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 3px 8px;
  background: #f3f3ef;
  border-radius: 999px;
  position: relative;
  top: -3px;
}
.feature-row .name .plat-soon,
.products-list .row .name .plat-soon {
  background: #fff3e2;
  color: #a8631a;
}
.detail .status-line {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row .name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.feature-row .desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}
.feature-row .arrow {
  font-size: 14px;
  color: var(--fg-dim);
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), color 200ms;
}
.feature-row:hover .arrow {
  transform: translateX(8px);
  color: var(--fg);
}

/* ─────────── Manifesto (long-form) ─────────── */
.prose {
  max-width: 64ch;
  margin: 0 auto;
}
.prose p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--fg);
  text-wrap: pretty;
}
.prose .pull {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 56px 0;
  text-wrap: balance;
}
.prose h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
}

/* ─────────── Products list ─────────── */
.products-list .row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 48px;
  padding: 24px 12px;
  border-top: 1px solid var(--line);
  align-items: baseline;
  margin: 0 -12px;
  transition: background 200ms;
}
.products-list .row:hover {
  background: #fafaf8;
}
.products-list .row:last-child { border-bottom: 1px solid var(--line); }
.products-list .row .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.products-list .row .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}
.products-list .row .arrow {
  font-size: 13px;
  color: var(--fg-dim);
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), color 200ms;
}
.products-list .row:hover .arrow { transform: translateX(8px); color: var(--fg); }

/* ─────────── Cases ─────────── */
.cases .row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.cases .row:last-child { border-bottom: 1px solid var(--line); }
.cases .row .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cases .row .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}
.cases .row .arrow {
  font-size: 13px;
  color: var(--fg-dim);
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), color 200ms;
}
.cases .row:hover .arrow { transform: translateX(8px); color: var(--fg); }

/* ─────────── Company ─────────── */
.company {
  max-width: 64ch;
}
.company p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--fg);
  text-wrap: pretty;
}
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.founder {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.founder .name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.founder .role {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* ─────────── Contact ─────────── */
.contact-big {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.contact-big a {
  border-bottom: 1px solid transparent;
  transition: border-color 180ms;
}
.contact-big a:hover { border-color: var(--fg); }
.contact-meta {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.55;
}
.contact-meta strong {
  display: block;
  color: var(--fg-dim);
  font-weight: 400;
  margin-bottom: 6px;
}

/* ─────────── Product detail ─────────── */
.detail {
  padding-top: 200px;
}
.detail h1 {
  font-size: clamp(72px, 10vw, 168px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.86;
}
.detail .detail-lede {
  margin-top: 48px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 60ch;
  color: var(--fg);
  text-wrap: pretty;
}
.detail .features {
  margin-top: 96px;
}
.detail .features .row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.detail .features .row:last-child { border-bottom: 1px solid var(--line); }
.detail .features .ttl {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.detail .features .body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.detail .cta-block {
  margin-top: 96px;
  padding: 32px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.detail .cta-label {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 4px;
}
.detail .cta-url {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.detail .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.detail .cta-link .arrow {
  transition: transform 240ms cubic-bezier(.2,.7,.3,1);
}
.detail .cta-link:hover .arrow { transform: translateX(8px); }

.detail .related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 96px;
}
.detail .related a {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 180ms;
}
.detail .related .label {
  font-size: 13px;
  color: var(--fg-dim);
}
.detail .related .nm {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 8px;
}
.detail .related .arrow {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 12px;
  transition: transform 240ms cubic-bezier(.2,.7,.3,1), color 200ms;
}
.detail .related a:hover .arrow { transform: translateX(8px); color: var(--fg); }

/* ─────────── Footer ─────────── */
footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
}
footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ─────────── Reveal ─────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(.2,.7,.3,1), transform 600ms cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 1024px) {
  :root { --pad: 24px; }
  .feature-row,
  .products-list .row,
  .cases .row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .feature-row .arrow,
  .products-list .row .arrow,
  .cases .row .arrow { display: none; }
  .founders { grid-template-columns: 1fr; gap: 16px; }
  .contact-meta { grid-template-columns: 1fr; }
  .detail .features .row { grid-template-columns: 1fr; gap: 8px; }
  .detail .related { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .nav-inner { flex-wrap: wrap; }
  section { padding: 56px 0; }
  .hero { padding: 160px 0 80px; }
  .page-head { padding: 140px 0 56px; }
  footer .wrap { flex-direction: column; gap: 8px; align-items: flex-start; }
}
