:root{
  color-scheme: light;
  --bg:#f6f4ee;
  --surface:#ffffff;
  --surface-soft:#fbfaf6;
  --ink:#18201f;
  --muted:#65706d;
  --line:#dcd8ce;
  --line-strong:#c8c1b4;
  --accent:#0f766e;
  --accent-dark:#0b5d56;
  --accent-soft:#e1f3ef;
  --amber:#b7791f;
  --shadow:0 18px 45px rgba(31,37,35,0.10);
  --radius:18px;
  --max:1120px;
  --text-max:820px;
}

*{ box-sizing:border-box; }

html{
  min-height:100%;
  background:var(--bg);
}

body{
  min-height:100%;
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15,118,110,0.12), transparent 34rem),
    linear-gradient(180deg,#fffdf8 0%,var(--bg) 26rem);
  color:var(--ink);
  line-height:1.6;
}

img{ max-width:100%; }

a{
  color:var(--accent-dark);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.site-shell{
  width:min(var(--max), calc(100% - 36px));
  margin:0 auto;
  padding:22px 0 48px;
}

.site-header{
  margin-bottom:28px;
  border-bottom:1px solid var(--line);
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0 18px;
}

.site-banner{
  width:100%;
  aspect-ratio:4 / 1;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-soft);
  box-shadow:var(--shadow);
}

.site-banner img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:var(--ink);
  font-weight:760;
  letter-spacing:0;
}

.brand-link:hover{
  text-decoration:none;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(15,118,110,0.18);
}

.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-copy span:last-child{
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-weight:520;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.nav-link,.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:14px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
}

.nav-link{
  color:var(--muted);
}

.nav-link:hover{
  background:rgba(255,255,255,0.72);
  color:var(--ink);
  text-decoration:none;
}

.button{
  border-color:var(--line);
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 8px 18px rgba(31,37,35,0.06);
}

.button:hover{
  border-color:var(--line-strong);
  text-decoration:none;
  transform:translateY(-1px);
}

.button.primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

.button.primary:hover{
  background:var(--accent-dark);
}

.hero{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap:28px;
  align-items:center;
  padding:38px 0 34px;
}

.hero h1{
  max-width:720px;
  margin:0;
  font-size:clamp(42px, 8vw, 86px);
  line-height:0.96;
  letter-spacing:0;
}

.hero p{
  max-width:610px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.hero-media{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.hero-media img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.section{
  padding:0 0 24px;
}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.section h2,.section-heading h2,.content-card h1,.content-card h2{
  margin:0;
  color:var(--ink);
  font-size:22px;
  line-height:1.25;
  letter-spacing:0;
}

.content-card h1{
  font-size:clamp(28px, 5vw, 42px);
}

.section-heading p{
  max-width:560px;
  margin:0;
  color:var(--muted);
}

.app-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.app-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.78);
  box-shadow:0 12px 30px rgba(31,37,35,0.07);
  transition:border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.app-card:hover{
  border-color:rgba(15,118,110,0.28);
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(31,37,35,0.10);
}

.app-top{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.app-icon{
  flex:0 0 auto;
  width:64px;
  height:64px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-soft);
}

.app-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.app-name{
  margin:2px 0 0;
  font-size:18px;
  line-height:1.25;
}

.app-meta{
  margin:7px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.app-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:auto;
  padding-top:18px;
}

.page-hero{
  max-width:var(--text-max);
  padding:0 0 20px;
}

.eyebrow{
  margin:0 0 10px;
  color:var(--accent-dark);
  font-size:13px;
  font-weight:760;
  letter-spacing:0;
  text-transform:uppercase;
}

.page-hero h1{
  margin:0;
  font-size:clamp(34px, 6vw, 56px);
  line-height:1.05;
  letter-spacing:0;
}

.page-hero p{
  margin:14px 0 0;
  color:var(--muted);
  font-size:17px;
}

.content-card{
  max-width:var(--text-max);
  margin:0 0 32px;
  padding:30px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.86);
  box-shadow:var(--shadow);
}

.content-card h2{
  margin-top:30px;
}

.content-card h2:first-child{
  margin-top:0;
}

.content-card h3{
  margin:20px 0 8px;
  color:var(--ink);
  font-size:17px;
}

.content-card p{
  margin:12px 0 0;
}

.content-card ul{
  margin:12px 0 0;
  padding-left:22px;
}

.content-card li{
  margin:6px 0;
}

.meta-line{
  color:var(--muted);
  font-weight:620;
}

.back-link{
  display:inline-flex;
  margin-top:24px;
  color:var(--accent-dark);
  font-weight:700;
}

.site-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:22px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
}

.site-footer a{
  color:var(--muted);
  font-weight:620;
}

.not-found{
  display:grid;
  min-height:54vh;
  align-items:center;
}

@media (max-width:940px){
  .hero{
    grid-template-columns:1fr;
    padding-top:20px;
  }

  .hero-media img{
    aspect-ratio:16 / 7;
  }

  .app-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:720px){
  .site-shell{
    width:min(100% - 28px, var(--max));
    padding-top:14px;
  }

  .site-nav{
    align-items:flex-start;
    flex-direction:column;
    padding-bottom:18px;
  }

  .site-banner{
    aspect-ratio:3 / 1;
  }

  .nav-links{
    justify-content:flex-start;
  }

  .hero{
    gap:20px;
  }

  .hero p,.page-hero p{
    font-size:16px;
  }

  .section-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .app-grid{
    grid-template-columns:1fr;
  }

  .content-card{
    padding:22px;
  }
}
