/* HostMeNow — shared stylesheet
   Sleek, minimalist, white aesthetic */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #0a0a0a;
  --muted: #6b7280;
  --line: #ececec;
  --accent: #3b5bdb;
  --accent-dark: #2f49b0;
  --radius: 14px;
  --container: 1100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: #374151; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: #4b5563; max-width: 60ch; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
}
.brand .mark img { width: 34px; height: 34px; display: block; }
.brand .mark span { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(59, 91, 219, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 130px 0 110px;
  background:
    radial-gradient(60% 60% at 80% -10%, rgba(59, 91, 219, 0.06), transparent 70%),
    var(--bg);
}
.hero-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin-bottom: 22px;
  margin-left: -6px;
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.4rem; }
.hero .btn-group { margin-top: 2.4rem; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(10, 10, 10, 0.22);
  border-color: #dfe3ea;
}
.card .num {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.team-card { text-align: center; }
.team-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover .team-avatar {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(10, 10, 10, 0.3);
}
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.team-role {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Service pillars ---------- */
.pillar { padding: 84px 0; }
.pillar-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: baseline;
  margin-bottom: 40px;
}
.pillar-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #e3e7f0;
}
.pillar-intro h2 { margin: 0 0 8px; }
.pillar-intro .lead { margin: 0; }

.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 44px;
}
.sub-item {
  padding: 22px 2px;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.sub-item:hover { border-top-color: var(--accent); }
.sub-item h3 { font-size: 1.02rem; margin: 0 0 6px; transition: color 0.2s var(--ease); }
.sub-item:hover h3 { color: var(--accent); }
.sub-item p { font-size: 0.92rem; color: var(--muted); margin: 0; }

@media (max-width: 860px) { .sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .pillar { padding: 60px 0; }
  .pillar-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 28px; }
  .sub-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Split / feature row ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bg-alt { background: var(--bg-alt); }

/* values list */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.values li {
  padding-left: 30px; position: relative; color: #374151;
}
.values li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); opacity: 0.85;
}
.values strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 72px 32px;
  margin: 0 0 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.7); max-width: 50ch; margin-inline: auto; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: #fff; }

/* ---------- Contact ---------- */
.email-link {
  display: inline-block;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.email-link:hover { color: var(--accent); border-color: var(--accent); }

.info-block { margin-top: 40px; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.info-block strong { color: var(--ink); }

/* ---------- Prose (privacy/terms) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h2:first-of-type { margin-top: 1em; }
.prose p, .prose li { color: #374151; }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 28px; color: var(--muted); line-height: 1.8; }
.footer-legal strong { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 80px; }
}
