/* ncdistillery.com — Cloudflare-inspired design tokens */
:root {
  --primary: #ff4801;
  --accent-hover: #d63c01;
  --accent-soft: #ff7038;
  --accent-wash: #fffbf5;
  --accent-muted: #f0e3de;
  --ink: #1a1a1a;
  --body: #262626;
  --muted: #707070;
  --canvas: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --link: #ff4801;
  --on-primary: #ffffff;
  --on-dark: #fafafa;
  --footer-bg: #171717;
  --success: #00bd7d;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --container: min(1120px, calc(100% - 2rem));
  --font-display: "Barlow", system-ui, sans-serif;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, monospace;
  --nav-height: 64px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --hero-pad: clamp(5rem, 12vw, 7.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
  z-index: 10000;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-actions.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link,
  .btn-nav {
    text-align: center;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn-on-dark {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-on-dark:hover {
  background: var(--accent-soft);
  color: var(--on-primary);
}

/* Hero */
.hero {
  background: var(--accent-wash);
  padding: var(--hero-pad) 0 var(--section-pad);
  border-bottom: 1px solid var(--accent-muted);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  max-width: 520px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 72, 1, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 15px;
  color: var(--body);
}

.benefit-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  display: block;
}

.hero-visual figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section--canvas {
  background: var(--canvas);
}

.section--surface {
  background: var(--surface);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.section-header p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card h3 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  border: 1px solid var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Trust */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.trust-metric {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.trust-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.trust-metric span {
  font-size: 14px;
  color: var(--muted);
}

.trust-copy {
  flex: 2;
  min-width: 240px;
}

.trust-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

/* Dark panel */
.dark-panel {
  background: var(--footer-bg);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 2.5rem);
}

.dark-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.dark-panel p {
  color: rgba(250, 250, 250, 0.75);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.topic-tags span {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 250, 250, 0.9);
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.code-snippet .token-accent {
  color: var(--accent-soft);
}

.code-snippet .token-muted {
  color: #707070;
}

/* CTA band */
.cta-band {
  background: var(--accent-wash);
  border-top: 1px solid var(--accent-muted);
  border-bottom: 1px solid var(--accent-muted);
  text-align: center;
  padding: var(--section-pad) 1rem;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.cta-band p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 32rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 250, 250, 0.7);
  padding: 3rem 0 2rem;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand {
  color: var(--on-dark);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
  max-width: 28rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-legal a {
  color: rgba(250, 250, 250, 0.85);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent-soft);
}

.disclaimer {
  font-size: 12px;
  color: rgba(250, 250, 250, 0.5);
  max-width: 48rem;
}
