/* ===== AppHouse Family — brand tokens ===== */
:root{
  --bg: #171b21;
  --bg-elevated: #1f252c;
  --bg-card: #20262e;
  --bg-card-hover: #262d36;
  --gold: #b68542;
  --gold-light: #d7a468;
  --gold-dim: rgba(182,133,66,0.16);
  --text: #f3efe7;
  --text-muted: #9aa1ab;
  --text-faint: #6b7280;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --radius: 14px;
  --maxw: 1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk','Inter',sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0;
  letter-spacing:-0.01em;
}
p{margin:0;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--gold-light);
}
.eyebrow::before{
  content:"";
  width:18px;
  height:1px;
  background:var(--gold);
}
section{padding:112px 0;}
@media (max-width:720px){
  section{padding:72px 0;}
}

/* ===== Nav ===== */
header.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(23,27,33,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  max-width:var(--maxw);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  font-size:17px;
  letter-spacing:-0.01em;
}
.brand img{
  width:36px;
  height:36px;
  border-radius:8px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
  font-size:14px;
  color:var(--text-muted);
}
.nav-links a{transition:color .2s ease;}
.nav-links a:hover{color:var(--text);}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 18px;
  border:1px solid var(--border-strong);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  transition:border-color .2s ease, background .2s ease;
}
.nav-cta:hover{border-color:var(--gold);background:var(--gold-dim);}
.nav-toggle{display:none;}

@media (max-width:820px){
  .nav-links{display:none;}
}

/* ===== Hero ===== */
.hero{
  position:relative;
  padding:140px 0 110px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  top:-260px;
  left:50%;
  transform:translateX(-50%);
  width:900px;
  height:560px;
  background:radial-gradient(circle, rgba(182,133,66,0.20) 0%, rgba(182,133,66,0) 68%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  max-width:760px;
}
.hero h1{
  font-size:56px;
  margin-top:22px;
}
@media (max-width:720px){
  .hero h1{font-size:36px;}
}
.hero p.lead{
  margin-top:24px;
  font-size:19px;
  color:var(--text-muted);
  max-width:600px;
}
.hero-actions{
  display:flex;
  gap:16px;
  margin-top:40px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 26px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{
  background:var(--gold);
  color:#171b21;
}
.btn-primary:hover{
  background:var(--gold-light);
  transform:translateY(-1px);
  box-shadow:0 10px 24px -8px rgba(182,133,66,0.55);
}
.btn-ghost{
  border:1px solid var(--border-strong);
  color:var(--text);
}
.btn-ghost:hover{border-color:var(--gold);background:var(--gold-dim);}

.hero-stats{
  display:flex;
  gap:48px;
  margin-top:76px;
  flex-wrap:wrap;
  padding-top:36px;
  border-top:1px solid var(--border);
}
.stat b{
  display:block;
  font-family:'Space Grotesk',sans-serif;
  font-size:26px;
  color:var(--text);
}
.stat span{
  font-size:13px;
  color:var(--text-faint);
}

/* ===== Mission ===== */
.mission{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.mission blockquote{
  font-family:'Space Grotesk',sans-serif;
  font-size:30px;
  font-weight:500;
  line-height:1.4;
  max-width:820px;
  color:var(--text);
}
@media (max-width:720px){
  .mission blockquote{font-size:22px;}
}
.mission blockquote .mark{color:var(--gold-light);}

/* ===== Section headings ===== */
.section-head{
  max-width:640px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:34px;
  margin-top:14px;
}
.section-head p{
  margin-top:16px;
  color:var(--text-muted);
  font-size:16px;
}

/* ===== Criteria grid ===== */
.criteria-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
@media (max-width:900px){
  .criteria-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .criteria-grid{grid-template-columns:1fr;}
}
.criteria-card{
  background:var(--bg-card);
  padding:32px 28px;
  transition:background .2s ease;
}
.criteria-card:hover{background:var(--bg-card-hover);}
.criteria-card .icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--gold-dim);
  color:var(--gold-light);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
}
.criteria-card h3{
  font-size:17px;
  margin-bottom:10px;
}
.criteria-card p{
  font-size:14.5px;
  color:var(--text-muted);
}

/* ===== About / focus ===== */
.about{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.about-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:64px;
  align-items:start;
}
@media (max-width:840px){
  .about-grid{grid-template-columns:1fr;gap:40px;}
}
.about-text p{
  color:var(--text-muted);
  font-size:16px;
  margin-bottom:18px;
}
.about-text p:last-child{margin-bottom:0;}
.focus-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.focus-tag{
  padding:9px 16px;
  border-radius:999px;
  border:1px solid var(--border-strong);
  font-size:13px;
  color:var(--text);
}
.locations{
  display:flex;
  gap:32px;
  margin-top:32px;
}
.location b{
  display:block;
  font-family:'Space Grotesk',sans-serif;
  font-size:20px;
}
.location span{
  font-size:13px;
  color:var(--text-faint);
}

/* ===== Portfolio ===== */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media (max-width:900px){
  .portfolio-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .portfolio-grid{grid-template-columns:1fr;}
}
.portfolio-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
}
.portfolio-card:hover{
  border-color:var(--border-strong);
  background:var(--bg-card-hover);
  transform:translateY(-3px);
}
.portfolio-logo{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg-card-hover);
  border:1px solid var(--border);
  border-radius:12px;
  margin-bottom:22px;
}
.portfolio-logo img{
  max-width:70%;
  max-height:70%;
  object-fit:contain;
}
.portfolio-logo.photo img{
  max-width:100%;
  max-height:100%;
  border-radius:11px;
  object-fit:cover;
}
.portfolio-card h3{
  font-size:18px;
  margin-bottom:10px;
}
.portfolio-card p{
  font-size:14.5px;
  color:var(--text-muted);
}
.portfolio-card.more{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--text-faint);
  font-size:14px;
  border-style:dashed;
}

/* ===== Founders ===== */
.founders-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media (max-width:820px){
  .founders-grid{grid-template-columns:1fr;}
}
.founder-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 28px;
  transition:border-color .2s ease, transform .2s ease;
}
.founder-card:hover{
  border-color:var(--border-strong);
  transform:translateY(-3px);
}
.founder-photo{
  width:72px;
  height:72px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:20px;
  border:2px solid var(--border-strong);
  filter:grayscale(1) contrast(1.05);
}
.founder-card h3{font-size:18px;}
.founder-card .role{
  font-size:13px;
  color:var(--gold-light);
  margin-top:4px;
  font-weight:600;
  letter-spacing:0.02em;
}
.founder-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:18px;
  font-size:13.5px;
  color:var(--text-muted);
  transition:color .2s ease;
}
.founder-link:hover{color:var(--gold-light);}

/* ===== CTA band ===== */
.cta-band{
  background:var(--bg-elevated);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  text-align:center;
}
.cta-band h2{
  font-size:32px;
  max-width:640px;
  margin:0 auto;
}
.cta-band p{
  color:var(--text-muted);
  margin-top:16px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}
.cta-band .hero-actions{justify-content:center;}

/* ===== Footer ===== */
footer{
  padding:56px 0 40px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text-faint);
  font-size:13px;
}
.footer-brand img{width:26px;height:26px;border-radius:6px;}
.footer-links{
  display:flex;
  gap:28px;
  font-size:13px;
  color:var(--text-faint);
}
.footer-links a:hover{color:var(--text-muted);}

.icon-sm{width:16px;height:16px;}
