/* Mile-Shift marketing site — brand-aligned per docs/BRAND.md */

:root {
  --ms-blue: #2277CC;
  --ms-green: #4CAF50;
  --ms-dark: #333333;
  --ms-orange: #F7931E;
  --ms-bg: #0F1F33;
  --ms-card: #1A2D45;
  --ms-text: #E8ECF1;
  --ms-muted: #8FA3B8;
  --ms-border: rgba(255, 255, 255, 0.08);
  --content-max: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--ms-text);
  background: var(--ms-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4CC5F5;
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 197, 245, 0.25);
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: #4CC5F5; }

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--ms-border); }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--ms-text); }

p { margin: 0.75rem 0; }
strong { color: #FFFFFF; font-weight: 700; }
em { color: var(--ms-muted); font-style: italic; }

ul, ol { margin: 0.75rem 0 0.75rem 1.5rem; }
li { margin: 0.25rem 0; }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: #B8D8F5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: var(--ms-card);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ms-border);
}
th {
  background: rgba(34, 119, 204, 0.18);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
tr:last-child td { border-bottom: none; }

/* Layout */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--ms-border);
  background: rgba(15, 31, 51, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  color: var(--ms-text);
}
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--ms-muted); border: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ms-text); }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.25rem 3rem;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  font-size: 1.25rem;
  color: var(--ms-muted);
  margin: 1rem auto 0;
  max-width: 600px;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.cta {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(34, 119, 204, 0.3); }
.cta-primary { background: var(--ms-blue); color: white; }
.cta-secondary { background: rgba(255, 255, 255, 0.08); color: var(--ms-text); border: 1px solid var(--ms-border); }

/* Features */
.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 2rem 0 4rem;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: var(--ms-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--ms-border);
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(34, 119, 204, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ms-muted); font-size: 0.95rem; }

/* Legal pages */
.legal-meta {
  color: var(--ms-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ms-border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ms-border);
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ms-muted);
  font-size: 0.9rem;
}
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ms-muted); border: none; }
.site-footer a:hover { color: var(--ms-text); }

/* TL;DR / Callout boxes */
.callout {
  background: rgba(34, 119, 204, 0.12);
  border-left: 3px solid var(--ms-blue);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1rem 0 1.5rem;
}
.callout strong { color: #FFFFFF; }
