/* ==================================================================
   HOSTVEE — Design System
   ------------------------------------------------------------------
   Palette
     --ink        #21252B   body text
     --navy       #302C4D   brand dark / header / footer
     --navy-2     #423D68   navy hover / secondary surfaces
     --orange     #E8643A   primary accent / CTA
     --orange-2   #CF5530   accent hover / pressed
     --paper      #F7F5F3   page background (warm, not stark white)
     --line       #E7E4E9   hairline borders
     --green      #2DA45E   uptime / success signal
   Type: Inter (400/500/600/700/800)
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #21252B;
  --ink-soft: #5B5F6B;
  --navy: #302C4D;
  --navy-2: #423D68;
  --navy-deep: #221F38;
  --orange: #E8643A;
  --orange-2: #CF5530;
  --paper: #F7F5F3;
  --paper-2: #FFFFFF;
  --line: #E7E4E9;
  --green: #2DA45E;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -10px rgba(48, 44, 77, 0.18);
  --shadow-sm: 0 4px 14px -4px rgba(48, 44, 77, 0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(232,100,58,0.55);
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  position: relative;
  flex-shrink: 0;
}
.logo .mark::after {
  content: '';
  position: absolute;
  top: 7px; left: 7px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,0.9);
}
.logo span.dim { color: rgba(255,255,255,0.55); font-weight: 700; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-main a {
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-main a:hover, .nav-main a.active { color: #fff; }
.nav-main a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a.login-link {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  font-weight: 500;
}
.header-actions a.login-link:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-main { display: none; }
  .header-actions .login-link { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  display: none;
  background: var(--navy-deep);
  padding: 10px 28px 26px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.62);
  padding: 64px 0 28px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.94rem;
  margin-bottom: 11px;
}
.footer-grid a:hover { color: var(--orange); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); max-width: 280px; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---------- Section helpers ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-navy {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.65); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Pricing cards ---------- */
.pricing-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}
.pricing-card .badge {
  position: absolute;
  top: -13px; right: 28px;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-card .plan-name { font-size: 0.95rem; font-weight: 700; color: var(--orange-2); text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-card .plan-desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 4px;
}
.pricing-card .price .amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); }
.pricing-card .price .period { color: var(--ink-soft); font-size: 0.95rem; }
.pricing-card .was { text-decoration: line-through; color: #B7B3C4; font-size: 0.92rem; margin-bottom: 18px; }
.pricing-card ul { list-style: none; padding: 0; margin: 22px 0 28px; flex-grow: 1; }
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.pricing-card li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.billing-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 48px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.billing-toggle button.active {
  background: var(--navy);
  color: #fff;
}

/* ---------- Feature list rows ---------- */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-row .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #FFF1EC;
  color: var(--orange-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.feature-row h4 { margin-bottom: 4px; font-size: 1.02rem; color: var(--navy); }
.feature-row p { font-size: 0.92rem; margin: 0; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
}
.post-card .body { padding: 24px; }
.post-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-2);
}
.post-card h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.post-card p { font-size: 0.9rem; }
.post-card .meta { font-size: 0.8rem; color: #A6A2B3; margin-top: 14px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.82rem; }
.divider { height: 1px; background: var(--line); margin: 60px 0; }

.stat-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-strip .stat { text-align: center; flex: 1; min-width: 120px; }
.stat-strip .stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}
.stat-strip .stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Visible keyboard focus, everywhere */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
