/* hpimageassistant.net — clean enterprise-tech theme */
:root {
  --accent: #0096D6;          /* HP-inspired bright blue */
  --accent-hover: #007fb8;
  --accent-dark: #0a2540;     /* deep navy for text emphasis */
  --text: #1a2332;
  --text-muted: #5b6a7d;
  --bg: #ffffff;
  --bg-soft: #f5f9fc;
  --bg-alt: #eef5fa;
  --border: #dce7f1;
  --success: #16a34a;
  --warn: #d97706;
  --header-bg: #0a2540;
  --header-text: #ffffff;
  --container: 1100px;
  --nav-h: 64px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,0.06);
  --shadow-md: 0 4px 16px rgba(10,37,64,0.08);
  --shadow-lg: 0 12px 40px rgba(10,37,64,0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:target, section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace; font-size: .94em; background: #eef5fa; padding: 1px 6px; border-radius: 3px; color: #0a2540; }

h1, h2, h3, h4 { color: var(--accent-dark); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text); }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; color: var(--accent-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; }
.logo:hover { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .5rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600 !important; font-size: .9rem !important;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--accent-hover); }

.mobile-toggle { display: none; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,150,214,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,150,214,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(0,150,214,0.08); color: var(--accent); font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; letter-spacing: .01em; }
.hero-eyebrow::before { content: '●'; color: var(--success); font-size: .7em; }
.hero h1 { color: var(--accent-dark); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--accent); }
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  transition: all .15s ease; cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,150,214,0.28); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,150,214,0.36); }
.btn-secondary { background: #fff; color: var(--accent-dark); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--accent-dark); border-color: var(--accent); }

/* Hero download card */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-head {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-card-head svg { width: 44px; height: 44px; flex-shrink: 0; }
.hero-card-head h3 { color: #fff; margin: 0 0 .15rem; font-size: 1.05rem; }
.hero-card-head span { color: rgba(255,255,255,0.72); font-size: .85rem; }
.hero-card-body { padding: 1.5rem; }
.hero-card-body .row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.hero-card-body .row:last-of-type { border-bottom: 0; }
.hero-card-body .row span:first-child { color: var(--text-muted); }
.hero-card-body .row span:last-child { color: var(--accent-dark); font-weight: 600; }
.hero-card .btn-primary { width: 100%; margin-top: 1rem; }
.hero-card-note { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: .75rem; }
.hero-card-note .check { color: var(--success); }

/* ========== SECTIONS ========== */
section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* What it does — 2-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col-list ul { list-style: none; margin: 0; padding: 0; }
.two-col-list li { padding: .75rem 0 .75rem 2.25rem; position: relative; border-bottom: 1px solid var(--border); }
.two-col-list li:last-child { border-bottom: 0; }
.two-col-list li::before {
  content: ''; position: absolute; left: 0; top: 1.15rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: rgba(0,150,214,0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230096D6'><path d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 111.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z'/></svg>") center/60% no-repeat;
}
.two-col-list li strong { display: block; color: var(--accent-dark); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,150,214,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 600; color: var(--accent-dark); }
.feature-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Stats / trust bar */
.trust-bar {
  background: var(--accent-dark); color: #fff;
  padding: 2rem 0;
}
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.trust-bar .stat strong { display: block; font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.trust-bar .stat span { font-size: .85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: .04em; }

/* Supported devices callout */
.supported {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.supported h3 { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.supported .yes h3 { color: var(--success); }
.supported .no h3 { color: var(--warn); }
.supported ul { list-style: none; margin: 0; padding: 0; }
.supported li { padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .95rem; }
.supported .yes li::before { content: '✓'; color: var(--success); position: absolute; left: 0; font-weight: 700; }
.supported .no li::before { content: '✕'; color: var(--warn); position: absolute; left: 0; font-weight: 700; }

/* Install steps */
.steps { counter-reset: step; }
.step {
  position: relative; padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--accent-dark); }
.step p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; padding: 1rem 1.25rem; cursor: pointer;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600; color: var(--accent-dark); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; color: var(--accent); font-weight: 300;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > ul { margin-top: .75rem; color: var(--text); }
.faq details > ul { margin-left: 1.25rem; }

/* Tips grid */
.tips {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.tips ul { list-style: none; margin: 0; padding: 0; }
.tips li { padding: .6rem 0 .6rem 1.75rem; position: relative; font-size: .95rem; color: var(--text); }
.tips li::before {
  content: ''; position: absolute; left: 0; top: .95rem;
  width: 1rem; height: 1rem; border-radius: 3px;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'><path d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 111.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z'/></svg>") center/80% no-repeat;
}

/* Download page specifics */
.download-hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #133659 100%);
  color: #fff; padding: 4rem 0 5rem; position: relative; overflow: hidden;
}
.download-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.download-hero .container { position: relative; z-index: 1; }
.download-hero h1 { color: #fff; }
.download-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 640px; }

.download-rows { max-width: 720px; margin: 2rem auto 0; }
.download-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.download-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.download-row .badge {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(0,150,214,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.download-row .badge svg { width: 26px; height: 26px; }
.download-row .meta h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.download-row .meta p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.download-row .btn-primary { white-space: nowrap; }

.hash-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-top: 1.5rem; font-size: .85rem;
}
.hash-box dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.hash-box dt { color: var(--text-muted); font-weight: 600; }
.hash-box dd { margin: 0; color: var(--accent-dark); font-family: 'SF Mono', ui-monospace, monospace; word-break: break-all; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--accent-dark); color: rgba(255,255,255,0.75);
  padding: 3rem 0 0; margin-top: 4rem;
  font-size: .92rem;
}
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: .75rem; max-width: 380px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #fff; }
.footer-bar {
  background: #061a2e; border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0; color: rgba(255,255,255,0.55); font-size: .85rem;
}
.footer-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bar a { color: rgba(255,255,255,0.75); }

/* ========== UTILS ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.noindex-note { background: #fff6e5; border: 1px solid #f4d79a; color: #7a4e00; padding: 1rem; border-radius: var(--radius); font-size: .92rem; margin-bottom: 1.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 880px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .supported { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 1rem 1.5rem; gap: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: .9rem 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: .5rem; }
  .mobile-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .download-row { grid-template-columns: 1fr; text-align: center; }
  .download-row .badge { margin: 0 auto; }
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-bar .container { flex-direction: column; text-align: center; }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}
