/* comfyOS landing page — glassmorphism to match the app */
:root {
  --bg: #0b0f0c;
  --text: #eef4f0;
  --text-muted: rgba(238, 244, 240, 0.6);
  --accent: #6fe0a6;
  --accent-soft: rgba(111, 224, 166, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Background video + scrim */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
#scrim {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(11,15,12,0.35), rgba(11,15,12,0.82) 60%, rgba(11,15,12,0.96)),
    linear-gradient(180deg, rgba(11,15,12,0.2), rgba(11,15,12,0.6));
  backdrop-filter: blur(2px);
}

/* Glass primitive */
.glass, .card, .dl-card, .nav, .step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px; margin: 14px auto; max-width: 1120px;
  border-radius: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eafff3, var(--accent) 60%, rgba(111,224,166,0.2));
  box-shadow: 0 0 14px rgba(111, 224, 166, 0.7);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important; padding: 8px 16px; border-radius: 10px;
  background: var(--accent-soft); font-weight: 600;
}
.nav-cta:hover { background: var(--accent); }

/* Hero */
.hero {
  max-width: 820px; margin: 0 auto; padding: 80px 24px 60px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.orb-wrap { position: relative; width: 96px; height: 96px; margin-bottom: 26px; }
.orb-core {
  position: absolute; inset: 26px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #eafff3, var(--accent) 55%, rgba(111,224,166,0.25));
  box-shadow: 0 0 40px rgba(111, 224, 166, 0.6);
  animation: pulse 3.2s ease-in-out infinite;
}
.orb-ring {
  position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px solid rgba(111, 224, 166, 0.35);
  animation: ringPulse 3.2s ease-in-out infinite;
}
.orb-ring.ring2 { inset: -8px; border-color: rgba(111, 224, 166, 0.18); animation-delay: .4s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: .3; } }

.wordmark {
  font-size: clamp(56px, 11vw, 104px); font-weight: 300; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
  text-shadow: 0 2px 50px rgba(255, 255, 255, 0.22), 0 1px 4px rgba(0,0,0,0.4);
}
.tagline { margin-top: 18px; font-size: clamp(22px, 4vw, 34px); font-weight: 400; color: #fff; }
.tagline .accent { color: var(--accent); }
.sub { margin-top: 16px; max-width: 540px; font-size: 17px; color: var(--text-muted); }

.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.micro { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 13px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, background .2s ease, box-shadow .2s ease;
}
.btn .btn-ico { font-size: 16px; }
.btn.primary {
  background: var(--accent-soft); color: #06140d;
  box-shadow: 0 8px 30px rgba(111, 224, 166, 0.28);
}
.btn.primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 38px rgba(111,224,166,0.4); }
.btn.ghost { background: var(--glass-bg); border-color: var(--glass-border); color: var(--text); }
.btn.ghost:hover { background: var(--glass-bg-strong); transform: translateY(-2px); }
.btn.big { padding: 16px 32px; font-size: 16.5px; }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 70px 24px; }
.section-title {
  text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 44px; color: #fff;
}

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); transition: transform .18s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(111, 224, 166, 0.35); }
.card-ico { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); align-items: flex-start; }
.step-n {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: var(--accent-soft); color: #06140d;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* Download */
.download { display: flex; justify-content: center; }
.dl-card {
  max-width: 540px; width: 100%; text-align: center; padding: 44px 36px;
  border-radius: 24px;
}
.dl-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.dl-card h2 { font-size: 28px; margin-bottom: 6px; }
.dl-card .muted { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.dl-card .note { margin-top: 20px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.dl-card .note em { color: var(--text); font-style: normal; }

/* Footer */
.foot {
  max-width: 1120px; margin: 40px auto 30px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand.small .brand-name { font-size: 15px; }
.brand.small .brand-orb { width: 11px; height: 11px; }
.foot-copy { font-size: 13px; color: var(--text-muted); }

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 50px; }
}
