/* ═══════════════════════════════════════════════════
   NULI — Design System
   Minimal · Typographic · Apple-grade restraint
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fff;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  background: hsla(0, 0%, 100%, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.logo span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e73;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1d1d1f;
}

.nav-contact {
  color: #1d1d1f !important;
  font-weight: 500 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #1d1d1f;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: hsla(0, 0%, 100%, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 8px 24px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 15px;
  color: #6e6e73;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-nav a:last-child {
  border-bottom: none;
  color: #1d1d1f;
  font-weight: 500;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: #6e6e73;
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #1d1d1f;
  color: #fff;
  border-radius: 980px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #000;
  transform: scale(1.02);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: transparent;
  color: #0066cc;
  border-radius: 980px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(0, 102, 204, 0.04);
}

/* ── Pillars ──────────────────────────────────────── */
.pillars {
  padding: 80px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: #6e6e73;
}

/* ── Divider ──────────────────────────────────────── */
.divider hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/* ── Section headers ──────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e6e73;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: #6e6e73;
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 48px;
}

/* ── Capabilities ─────────────────────────────────── */
.capabilities {
  padding: 80px 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.cap-num {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.cap-item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.cap-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #6e6e73;
}

/* ── Documentation Links ──────────────────────────── */
.docs-section {
  padding: 80px 0 120px;
}

.docs-grid {
  display: flex;
  flex-direction: column;
}

.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding-left 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doc-link:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.doc-link:hover {
  padding-left: 8px;
}

.doc-link-text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.doc-link-text span {
  font-size: 14px;
  color: #6e6e73;
}

.doc-link svg {
  flex-shrink: 0;
  color: #c7c7cc;
  transition: color 0.2s, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doc-link:hover svg {
  color: #1d1d1f;
  transform: translateX(4px);
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-left .logo img {
  width: 20px;
  height: 20px;
}

.footer-left .logo span {
  font-size: 13px;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  text-decoration: none;
  font-size: 12px;
  color: #6e6e73;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: #1d1d1f;
}

.footer-bottom {
  font-size: 12px;
  color: #86868b;
}

/* ── Scroll Animations ────────────────────────────── */
.anim-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-in.visible {
  opacity: 1;
  transform: none;
}

.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }

/* ── Sub-Page Shared ──────────────────────────────── */
.subpage-body {
  background: #fff;
  padding-top: 52px;
}

.subpage-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.subpage-back:hover {
  color: #1d1d1f;
}

.subpage-meta {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 12px;
}

.subpage-content h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
  margin-bottom: 32px;
}

.subpage-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin: 40px 0 12px;
}

.subpage-content p,
.subpage-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #424245;
}

.subpage-content p {
  margin-bottom: 12px;
}

.subpage-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.subpage-content li {
  margin-bottom: 6px;
}

.subpage-content a {
  color: #0066cc;
  text-decoration: none;
}

.subpage-content a:hover {
  text-decoration: underline;
}

.subpage-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  color: #86868b;
}

.subpage-note a {
  color: #6e6e73;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .hero-sub { font-size: 17px; }

  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
  .cap-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-right { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
