@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #151515;
  --muted: #70706c;
  --line: #deded8;
  --accent: #151515;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  height: 76px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand, .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--text); color: var(--bg);
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
}
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, .footer-links a:hover { color: var(--text); }

.hero {
  min-height: 650px;
  max-width: 1240px;
  margin: auto;
  padding: 90px 28px 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--muted);
}
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 {
  font-size: clamp(56px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 0 0 28px;
}
h1 em { font-style: normal; color: #8a8a83; }
.hero-text {
  max-width: 530px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.button.primary { background: var(--text); color: white; }
.button.outline { border: 1px solid var(--line); background: var(--surface); }

.hero-orbit { height: 430px; position: relative; display: grid; place-items: center; }
.orbit {
  position: absolute; border: 1px solid #d8d8d1; border-radius: 50%;
}
.orbit-1 { width: 300px; height: 300px; transform: rotate(18deg); }
.orbit-2 { width: 420px; height: 220px; transform: rotate(-28deg); }
.orbit-3 { width: 390px; height: 390px; }
.orb {
  position: absolute; width: 82px; height: 82px; border-radius: 25px;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 18px 50px #0000000d;
  font-family: "Space Grotesk"; font-size: 13px; font-weight: 700;
}
.orb-a { top: 55px; left: 25%; }
.orb-b { right: 8%; top: 44%; }
.orb-c { bottom: 35px; left: 29%; }
.orb-d { left: 7%; top: 46%; }

.apps-section { max-width: 1240px; margin: auto; padding: 40px 28px 120px; }
.section-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 30px; margin-bottom: 42px;
}
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 9px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px;
}
.filter.active, .filter:hover { background: var(--text); color: white; border-color: var(--text); }

.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.app-card {
  min-height: 300px; padding: 25px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px #0000000a; }
.app-card.wide { grid-column: span 3; min-height: 240px; }
.app-card.hidden { display: none; }
.app-icon {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center;
  background: #f0f0eb; font-family: "Space Grotesk"; font-weight: 700; font-size: 13px;
  margin-bottom: auto;
}
.app-icon.tibet { font-size: 25px; }
.card-top { display: flex; justify-content: space-between; color: #96968f; font-size: 11px; margin-top: 25px; }
.app-card h3 { font-size: 25px; margin: 8px 0 8px; letter-spacing: -.03em; }
.app-card p { color: var(--muted); line-height: 1.55; margin: 0 0 22px; max-width: 420px; }
.app-link { font-size: 13px; font-weight: 600; margin-top: auto; display: flex; justify-content: space-between; }
.app-link span { font-size: 18px; }

.about {
  max-width: 1240px; margin: auto; padding: 110px 28px;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
}
.about-number { font: 700 120px/.8 "Space Grotesk"; color: #deded8; letter-spacing: -.08em; }
.about h2 { margin-bottom: 28px; }
.about p:not(.eyebrow) { max-width: 600px; color: var(--muted); line-height: 1.8; font-size: 16px; }

.contact {
  max-width: 1184px; margin: 0 auto 80px; padding: 80px 28px;
  background: #e9e9e3; border-radius: 32px; text-align: center;
}
.contact h2 { margin-bottom: 30px; }

footer {
  max-width: 1240px; margin: auto; padding: 30px 28px 45px;
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 35px;
  font-size: 12px; color: var(--muted);
}
.footer-links { display: flex; gap: 20px; }
.copyright { margin-left: auto; }

@media (max-width: 800px) {
  .site-header { height: 68px; }
  nav { display: none; }
  .hero { min-height: auto; padding: 70px 22px 60px; grid-template-columns: 1fr; }
  .hero-orbit { height: 300px; transform: scale(.75); margin-top: -20px; }
  .apps-section { padding: 40px 22px 80px; }
  .section-heading { align-items: start; flex-direction: column; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card.wide { grid-column: auto; }
  .about { padding: 80px 22px; grid-template-columns: 1fr; }
  .about-number { font-size: 80px; }
  .contact { margin: 0 16px 50px; padding: 65px 20px; }
  footer { padding: 25px 22px 35px; flex-wrap: wrap; }
  .copyright { margin-left: 0; width: 100%; }
}
