:root {
  --bg: #f6faf6;
  --bg-alt: #eef4ef;
  --surface: #ffffff;
  --surface-2: #f4f7f4;
  --accent: #f26b2d;
  --accent-2: #2f8f5c;
  --text: #1b241f;
  --muted: #516057;
  --border: rgba(17, 24, 20, 0.12);
  --shadow: 0 14px 28px rgba(24, 32, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, #f6faf6 45%, #edf3ef 100%);
  color: var(--text);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 30, 25, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 30, 25, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.25;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 250, 246, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(120deg, var(--accent), #ff9b54);
  color: #1a1a1a;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero {
  padding: 70px 0 60px;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.hero-logo {
  width: min(520px, 92%);
  height: auto;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(22, 30, 25, 0.18));
}

.hero-brand h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: 16px 0;
}

.hero-brand p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.signal-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 143, 92, 0.12);
  color: #1e4c37;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: #101512;
  color: #eef3ef;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-card code {
  color: #f4f8f5;
}

.panel-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
}

.panel-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #96a39a;
  margin-bottom: 12px;
}

.panel-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-mini ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  margin-bottom: 24px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.principle-card h3 {
  font-family: "Sora", sans-serif;
  margin-top: 0;
}

.principle-card p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: "Sora", sans-serif;
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: start;
}

.panel {
  background: var(--surface-2);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel.overlay {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.bullets {
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.7;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 143, 92, 0.15);
  border: 1px solid rgba(47, 143, 92, 0.3);
  font-weight: 700;
  color: #1e4c37;
  font-size: 0.9rem;
}

.image-panel {
  position: relative;
  background: url('/assets/hotwings-light-grid.png') center/cover no-repeat;
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 250, 246, 0.78);
}

.image-panel .container {
  position: relative;
  z-index: 1;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.compat {
  margin-top: 24px;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.code-card {
  background: #101512;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  color: #d6e0d9;
  box-shadow: var(--shadow);
}

.code-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #eaf3ee;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .header-cta {
    display: none;
  }
}
