:root {
  --bg: #f7f4ef;
  --card: rgba(255,255,255,0.74);
  --text: #161616;
  --muted: #62615d;
  --line: rgba(22,22,22,0.12);
  --accent: #111827;
  --accent-2: #d7c7aa;
  --shadow: 0 24px 80px rgba(24, 24, 24, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215,199,170,0.65), transparent 34rem),
    radial-gradient(circle at top right, rgba(180,190,210,0.32), transparent 30rem),
    var(--bg);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(247,244,239,0.78);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 750; }
.brand-mark, .app-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #151515;
  color: #fff;
  font-weight: 800;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.menu-button { display: none; }
.hero { padding: clamp(72px, 12vw, 150px) clamp(20px, 5vw, 72px) 72px; max-width: 1120px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--muted); font-weight: 800; }
h1 { max-width: 880px; margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.94; letter-spacing: -0.07em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.025em; }
.hero-copy { max-width: 650px; margin: 28px 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 750; border: 1px solid var(--line); }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.secondary { background: rgba(255,255,255,0.54); }
.section { padding: 72px clamp(20px, 5vw, 72px); max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.app-card { padding: 28px; border: 1px solid var(--line); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); min-height: 330px; display: flex; flex-direction: column; }
.app-card.featured { background: #151515; color: #fff; }
.app-card.featured p, .app-card.featured .tag { color: rgba(255,255,255,0.7); }
.app-card p { color: var(--muted); line-height: 1.55; }
.app-card a, .muted-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.app-icon { margin-bottom: 28px; background: var(--accent-2); color: var(--text); width: 54px; height: 54px; border-radius: 18px; }
.app-icon.dark { background: #fff; color: #151515; }
.tag { margin: 0 0 10px !important; font-size: 0.84rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; border-top: 1px solid var(--line); }
.principles { display: grid; gap: 18px; }
.principles > div { padding: 24px; border-radius: 24px; background: rgba(255,255,255,0.54); border: 1px solid var(--line); }
.principles p, .legacy p, .contact p { color: var(--muted); line-height: 1.6; }
.legacy { border-radius: 34px; background: rgba(255,255,255,0.48); border: 1px solid var(--line); }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 28px; border-top: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 32px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 820px) {
  .menu-button { display: inline-flex; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
  .nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.96); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .app-grid, .split { grid-template-columns: 1fr; }
  .section-head, .contact { display: block; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
}
