:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --surface-muted: rgba(245, 245, 247, 0.7);
  --line: #d2d2d7;
  --text: #1d1d1f;
  --muted: #86868b;
  --accent: #0066cc;
  --accent-hover: #0077ed;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-inner: 18px;
  --max-width: 980px;
  --nav-height: 52px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  /* Subtle Map Grid Pattern */
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 102, 204, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 102, 204, 0.05) 0px, transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.016em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.022em;
}

.brand:hover {
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

/* Shell & Cards */
.page-shell, .page {
  padding-top: 48px;
  padding-bottom: 80px;
}

.hero-card,
.content-card,
.section,
.doc-nav {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 32px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* Abstract road/path element in hero */
.hero-card::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(circle at center, rgba(0, 102, 204, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card h1, .hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--text) 0%, #434345 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead, .hero p {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 22px;
  max-width: 640px;
  line-height: 1.4;
  font-weight: 400;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-link:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.04);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.button-link:active {
  transform: scale(0.96);
}

/* Content Cards */
.content-card h2, .section h2, .doc-nav h2 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

.info-item, .entry-card, .faq-card {
  background: var(--surface-muted);
  border-radius: var(--radius-inner);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.entry-card:hover {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
  border-color: rgba(0, 102, 204, 0.1);
}

.entry-card h3, .info-item h3, .faq-card h3, .section h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.entry-card p, .info-item p, .faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* FAQ & Lists */
.faq-list {
  display: grid;
  gap: 20px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.text-link {
  font-weight: 500;
  font-size: 16px;
}

/* Documentation Styles */
.hero {
  text-align: left;
  padding-bottom: 32px;
}

.meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.doc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.doc-nav li a {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
}

.section {
  padding: 48px;
  line-height: 1.65;
  background: #ffffff; /* Sections usually better solid for long reading */
}

.section p {
  margin: 0 0 20px;
}

.section ul, .section ol {
  margin: 20px 0;
  padding-left: 24px;
}

.section li {
  margin-bottom: 12px;
  color: #424245;
}

.section strong {
  color: var(--text);
  font-weight: 600;
}

.back-top {
  display: inline-block;
  margin-top: 40px;
  font-weight: 500;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: var(--surface-solid);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .info-grid, .entry-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card h1, .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 734px) {
  .site-header {
    display: none;
  }

  .site-header-inner {
    padding: 0 20px;
  }
  
  .container {
    width: calc(100% - 32px);
  }

  .page-shell, .page {
    padding-top: 24px;
  }
  
  .hero-card {
    padding: 60px 24px;
  }
  
  .hero-card h1, .hero h1 {
    font-size: 36px;
  }
  
  .lead, .hero p {
    font-size: 18px;
  }
  
  .site-nav {
    display: none;
  }
  
  .section, .content-card, .doc-nav {
    padding: 32px 24px;
  }
}
