* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

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

:root { --bg: #f7f7f9; --accent: #0b74de; --text:#222; }
.container { width: 100%; margin:0 auto; padding: 2rem; }
.site-header { background: white; border-bottom: 1px solid #e6e6e6; }
.site-header .container { display:flex; flex-direction:column; gap:0.25rem; padding:1.25rem 2rem; }
h1{ margin:0; font-size:1.5rem; color:var(--accent); }
nav { display:flex; flex-wrap:wrap; gap:0.75rem 1rem; }
nav a { font-weight:500; }
.tagline{ margin:0; color:#666; }
.hero{ padding:2rem; }
.site-footer{ text-align:center; padding:1rem 0; color:#666; font-size:0.9rem; margin-top:2rem; }
.home-hero { padding: 3rem 0 2rem; border-bottom: 1px solid #e6e6e6; }
.home-hero__grid { display: grid; gap: 2rem; align-items: center; }
.home-hero__content h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.2; color: #111; max-width: 20ch; }
.home-hero__subtext { margin-top: 1rem; margin-bottom: 0; max-width: 58ch; color: #444; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: 0.65rem 1rem; border-radius: 4px; text-decoration: none; border: 1px solid #111; font-weight: 600; }
.btn-primary { background: #111; color: #fff; }
.btn-secondary { background: #fff; color: #111; }
.home-hero__visual { width: 100%; }
.system-visual { display: grid; grid-template-columns: repeat(3, minmax(50px, 1fr)); gap: 0.75rem; width: 100%; max-width: 360px; margin: 0 auto; }
.system-visual span { display: block; width: 100%; aspect-ratio: 1 / 1; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; }
.home-capabilities { padding: 2rem 0 3rem; }
.capability-grid { display: grid; gap: 1rem; }
.capability-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 1rem; }
.capability-card h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.capability-card p { margin: 0; color: #444; }
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:1rem; margin-top:1rem; }
.project-card { background:#fff; border:1px solid #e6e6e6; border-radius:8px; padding:1rem; }
.project-card h3 { margin-top:0; margin-bottom:0.5rem; }
.project-card p { margin-top:0; }
.project-card a { color:var(--text); text-decoration:none; }
.tags { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.75rem; }
.tag { display:inline-block; padding:0.2rem 0.55rem; border:1px solid #d8d8d8; border-radius:999px; font-size:0.85rem; color:#444; background:#fafafa; }
figure { margin:1.25rem 0; }
.case-image { width:100%; max-width:1000px; height:auto; display:block; margin:16px auto; border:1px solid #e6e6e6; border-radius:8px; background:#fff; }
.case-image.runtime { max-width: 500px; }
figcaption { margin-top:0.5rem; color:#666; font-size:0.9rem; }
.pdf-link { display:inline-block; padding:10px 16px; background:#111; color:#fff; text-decoration:none; border-radius:4px; }
.pdf-link:hover { opacity:0.9; }

@media (max-width: 600px) {
  .container { padding: 1.25rem; }
  .site-header .container { padding: 1rem 1.25rem; }
}

@media (min-width: 768px) {
  .home-hero__grid { grid-template-columns: 1.2fr 1fr; }
  .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home {
  width: 100%;
  --home-content-max: 1280px;
  --home-gutter: clamp(1rem, 4vw, 4rem);
}

.hero {
  padding: 96px 0 40px 0;
}

.hero .container {
  width: min(1100px, 100% - 20%);
  margin: 0 auto;
  padding: 48px 40px;
  background: linear-gradient(
    180deg,
    rgba(0,120,255,0.12) 0%,
    rgba(0,120,255,0.03) 100%
  );
  border-radius: 12px;
  text-align: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 auto 18px;
  letter-spacing: -0.02em;
  max-width: 70ch;
  white-space: nowrap;
}

.hero p {
  max-width: 70ch;
  line-height: 1.6;
  margin: 0 auto;
}

.tile-grid {
  width: 100%;
  max-width: var(--home-content-max);
  margin: 0 auto;
  padding: 24px var(--home-gutter) 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.tile {
  grid-column: span 6;
  min-height: 240px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: #d6d6d6;
}

.tile h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.tile p {
  margin: 0;
  line-height: 1.5;
  max-width: 44ch;
  color: #333;
}

.tile-button {
  display: inline-block;
  border: 1.5px solid #111;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  width: fit-content;
}

.tile-disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 0 28px 0;
  }

  .hero h1 {
    font-size: 40px;
    white-space: normal;
  }

  .tile-grid {
    padding: 18px var(--home-gutter) 72px;
  }

  .tile {
    grid-column: span 12;
  }
}
