/* ExecutrixApps portfolio — design tokens
   Palette: base #FFFFFF (white), surface #F6F6F8, line #E4E5EA,
            ink #16181F, muted #6B7080, accent #E85D3F (coral, wallpaper/ringtone warmth),
            accent-2 #1E9E93 (teal, widget/tech contrast)
   Type: 'Sora' for display/headings, 'Inter' for body/UI
   Layout: hero built as a tilted home-screen app grid (real subject matter: app icons),
           left-aligned content column, grid cards for apps without generic rounded-card sameness
*/

:root{
  --base:#FFFFFF;
  --surface:#F6F6F8;
  --surface-2:#EDEEF2;
  --line:#E4E5EA;
  --ink:#16181F;
  --muted:#6B7080;
  --accent:#E85D3F;
  --accent-ink:#FFFFFF;
  --accent-2:#1E9E93;
  --radius-sm:6px;
  --radius-lg:14px;
  --maxw:1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--base);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand{
  font-family:'Sora',system-ui,sans-serif;
  font-weight:700;
  letter-spacing:-0.01em;
  margin:0 0 .4em;
}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px}

/* ---------- Header ---------- */
header.site{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
header.site .wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:64px;
}
.brand{font-size:1.05rem;text-decoration:none;display:flex;align-items:center;gap:10px}
.brand .mark{
  width:28px;height:28px;border-radius:8px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  flex:none;
}
nav.primary{display:flex;gap:28px}
nav.primary a{
  position:relative;display:inline-flex;align-items:center;
  text-decoration:none;color:var(--muted);font-size:.95rem;font-weight:500;
  padding:8px 0 6px;transition:color .15s ease;
  border-bottom:2px solid transparent;
}
nav.primary a:hover{color:var(--ink)}
nav.primary a.active{
  color:var(--ink);
  border-bottom-color:var(--accent);
}

/* ---------- Hero: tilted home-screen app grid ---------- */
.hero{
  padding:96px 0 80px;
  overflow:hidden;
  position:relative;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.2rem,4.6vw,3.4rem);
  line-height:1.08;
  max-width:12ch;
}
.hero .lede{
  color:var(--muted);
  font-size:1.08rem;
  max-width:46ch;
  margin:18px 0 30px;
}
.hero .stat-row{
  display:flex;gap:32px;margin-top:36px;padding-top:28px;
  border-top:1px solid var(--line);
}
.hero .stat b{
  display:block;font-family:'Sora',sans-serif;font-size:1.5rem;color:var(--ink);
}
.hero .stat span{color:var(--muted);font-size:.85rem}

.phone-grid{
  transform:rotate(-6deg);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  padding:22px;
  box-shadow:0 30px 60px -20px rgba(22,24,31,.18);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  max-width:320px;
  margin-left:auto;
}
.phone-grid .tile{
  aspect-ratio:1;
  border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:1.1rem;
  color:var(--accent-ink);
}
.phone-grid .tile:nth-child(6n+1){background:var(--accent)}
.phone-grid .tile:nth-child(6n+2){background:var(--accent-2)}
.phone-grid .tile:nth-child(6n+3){background:#6C7BFF;color:#0B0B14}
.phone-grid .tile:nth-child(6n+4){background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.phone-grid .tile:nth-child(6n+5){background:#FFC65C;color:#221602}
.phone-grid .tile:nth-child(6n+6){background:#2A2E3A;color:#F6F6F8}

/* ---------- Section shell ---------- */
section{padding:72px 0}
section.alt{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{max-width:56ch;margin-bottom:40px}
.section-head h2{font-size:clamp(1.6rem,2.6vw,2.1rem)}
.section-head p{color:var(--muted)}

/* ---------- App list (not identical rounded cards — a real list, numbered like a shelf) ---------- */
.app-shelf{border-top:1px solid var(--line)}
.app-row{
  display:grid;
  grid-template-columns:64px 1.4fr 1fr auto;
  align-items:center;
  gap:20px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.app-row .icon{
  width:56px;height:56px;border-radius:14px;
  background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
  font-family:'Sora',sans-serif;font-weight:700;color:var(--accent-2);
  border:1px solid var(--line);
}
.app-row h3{font-size:1.15rem;margin:0 0 4px}
.app-row .desc{color:var(--muted);font-size:.92rem;max-width:48ch}
.app-row .category{color:var(--muted);font-size:.85rem}
.app-row .links{display:flex;gap:10px;justify-self:end}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:999px;
  text-decoration:none;font-size:.88rem;font-weight:600;
  border:1px solid var(--line);
  white-space:nowrap;
}
.btn.solid{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.btn.solid:hover{background:#ff8a6d}
.btn.ghost{color:var(--ink)}
.btn.ghost:hover{border-color:var(--accent-2);color:var(--accent-2)}
.btn.small{padding:6px 12px;font-size:.8rem}

@media (max-width:820px){
  .app-row{grid-template-columns:48px 1fr;row-gap:8px}
  .app-row .category,.app-row .links{grid-column:2 / 3}
  .app-row .links{justify-self:start;margin-top:6px}
  .hero .wrap{grid-template-columns:1fr}
  .phone-grid{margin:0 auto;transform:rotate(-3deg)}
}

/* ---------- Contact / footer ---------- */
.footer-cta{
  text-align:left;
  border-top:1px solid var(--line);
}
.footer-cta h2{font-size:clamp(1.6rem,3vw,2.2rem);max-width:16ch}
footer.site{
  border-top:1px solid var(--line);
  padding:36px 0;
  color:var(--muted);
  font-size:.88rem;
}
footer.site .wrap{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
}
footer.site nav{display:flex;gap:20px}
footer.site a{text-decoration:none;color:var(--muted)}
footer.site a:hover{color:var(--ink)}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal{
  padding:64px 0 96px;
}
.legal .wrap{max-width:760px}
.legal h1{font-size:2rem;margin-bottom:6px}
.legal .updated{color:var(--muted);font-size:.9rem;margin-bottom:40px}
.legal h2{font-size:1.2rem;margin-top:36px}
.legal p, .legal li{color:#3A3E4A;font-size:.98rem}
.legal ul{padding-left:1.2em}
.legal a.back{
  display:inline-block;margin-bottom:28px;color:var(--accent-2);text-decoration:none;font-size:.9rem;font-weight:600;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
