/* HQFiles × Cloudflare design tokens */
:root {
  --primary: #ff4801;
  --accent: #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;
  --success: #00bd7d;
  --footer-bg: #171717;
  --on-primary: #ffffff;
  --on-dark: #fafafa;
  --code-green: #98c379;
  --code-cyan: #56b6c2;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --container: min(1200px, calc(100% - 48px));
  --section-pad: clamp(64px, 10vw, 112px);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*,
*::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;
  display: block;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-soft) 100%);
  display: grid;
  place-items: center;
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 700;
}

.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

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

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  padding: 12px 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.nav-mobile a:hover {
  background: var(--surface-alt);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  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 ease;
}

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

.btn-primary {
  background: var(--accent);
  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);
  color: var(--ink);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

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

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

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 120px) 0 clamp(64px, 10vw, 96px);
  background: var(--accent-wash);
  border-bottom: 1px solid var(--accent-muted);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(255, 72, 1, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 36em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--success);
}

/* Hero visual — network panel */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.visual-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.visual-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
}

.network-diagram {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.network-diagram svg {
  width: 100%;
  height: 100%;
}

.node-pulse {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.beam {
  stroke: var(--accent-soft);
  stroke-width: 1.5;
  opacity: 0.6;
  animation: beam 4s linear infinite;
}

@keyframes beam {
  0% {
    stroke-dashoffset: 120;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric {
  text-align: center;
  padding: 12px 8px;
  background: var(--accent-wash);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-muted);
}

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

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

.visual-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

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

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

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

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

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

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
}

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  border: 1px solid var(--accent-muted);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--primary);
}

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

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

/* Dark infra band */
.infra-band {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: var(--section-pad) 0;
}

.infra-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .infra-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
}

.infra-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.infra-copy p {
  margin: 0 0 24px;
  color: rgba(250, 250, 250, 0.75);
  font-size: 17px;
  line-height: 1.55;
}

.code-panel {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid #333;
  overflow-x: auto;
}

.code-panel .comment {
  color: #707070;
}

.code-panel .key {
  color: var(--code-cyan);
}

.code-panel .str {
  color: var(--code-green);
}

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

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--accent-muted);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Offer band */
.offer-band {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .offer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 56px 0;
  }
}

.offer-text h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.offer-text p {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
}

/* Trust */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  filter: grayscale(1);
  margin-top: 32px;
}

.trust-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-item button:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.faq-item.is-open .faq-panel {
  display: block;
}

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

.cta-finale h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.cta-finale p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(250, 250, 250, 0.65);
  padding: 56px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer .logo {
  color: var(--on-dark);
  margin-bottom: 12px;
}

.footer-blurb {
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-dark);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

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

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.disclaimer {
  font-size: 12px;
  color: rgba(250, 250, 250, 0.45);
  line-height: 1.5;
  margin-top: 16px;
}