/* ============================================================
   PowerlynQ LLC — One-page site
   Industrial B2B · Deep navy · Signal cyan · Clean typography
   ============================================================ */

:root {
  --navy-950: #050d18;
  --navy-900: #0a1628;
  --navy-800: #12233d;
  --navy-700: #1a3358;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-glow: rgba(6, 182, 212, 0.14);

  --bg: var(--slate-50);
  --bg-alt: var(--white);
  --text: #0f172a;
  --text-muted: var(--slate-600);
  --border: var(--slate-200);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 30px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 22, 40, 0.12);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-600); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--navy-800); }
ul { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  background: var(--cyan-500); color: var(--navy-950);
  padding: 0.7rem 1.1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--navy-900); font-weight: 700; letter-spacing: -0.02em;
  line-height: 0;
}
.logo:hover { color: var(--navy-900); }
.logo-lockup {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
}
.logo-footer .logo-lockup {
  height: 42px;
  max-width: 210px;
}
.logo-icon {
  display: block;
  height: 36px;
  width: 36px;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  position: relative; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
}
.logo-text { font-size: 1.15rem; }
.logo-llc { font-weight: 500; color: var(--slate-500); font-size: 0.85em; }

.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a { color: var(--slate-700); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--navy-900); }
.nav-cta {
  background: var(--navy-900) !important; color: var(--white) !important;
  padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--navy-800) !important; color: var(--white) !important; }

.nav-toggle {
  width: 42px; height: 42px; display: grid; place-content: center; gap: 5px;
  border-radius: 10px; border: 1px solid var(--border);
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--navy-900); border-radius: 2px;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  color: var(--slate-700); font-weight: 500; padding: 0.75rem 0.5rem;
  border-radius: 8px;
}
.mobile-nav a:hover { background: var(--slate-100); color: var(--navy-900); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(6, 182, 212, 0.12), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(26, 51, 88, 0.18), transparent 50%),
              linear-gradient(180deg, #eef4f8 0%, var(--slate-50) 100%);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.12; letter-spacing: -0.03em; color: var(--navy-900);
  margin-bottom: 1.15rem;
}
.lead, .section-lead {
  color: var(--text-muted); font-size: 1.1rem; max-width: 62ch;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy-900); color: var(--white);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}
.btn-primary:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--navy-900);
  border: 1px solid var(--slate-300);
}
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-900); background: var(--white); }
.btn-ghost-dark {
  background: transparent; color: var(--navy-900);
  border: 1px solid var(--slate-300);
}
.btn-ghost-dark:hover { background: var(--slate-100); color: var(--navy-900); }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0.55rem 0.65rem;
  padding-top: 0.5rem;
}
.trust-bar li {
  font-size: 0.82rem; font-weight: 600; color: var(--slate-700);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.75rem; border-radius: 999px;
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-dark {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(6, 182, 212, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--slate-100);
}
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2,
.split h2,
.cta-panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2; letter-spacing: -0.025em; color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.section-head.light h2 { color: var(--white); }
.section-head.light .section-lead { color: var(--slate-400); }
.section-head.light .eyebrow { color: var(--cyan-400); }

.card-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow); transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--cyan-glow); color: var(--cyan-600);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 0.45rem; color: var(--navy-900);
}
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* Markets */
.market-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .market-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .market-grid { grid-template-columns: repeat(4, 1fr); }
  .market-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.market {
  background: var(--slate-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  min-height: 100%;
}
.market-tag {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  color: var(--cyan-600); display: block; margin-bottom: 0.6rem;
}
.market h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--navy-900); }
.market p { color: var(--text-muted); font-size: 0.92rem; }

.origin-banner {
  display: grid; gap: 1.25rem;
  background: var(--navy-900); color: var(--slate-100);
  border-radius: var(--radius-lg); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) {
  .origin-banner { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.origin-banner h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.5rem; }
.origin-banner p { color: var(--slate-300); font-size: 0.98rem; }
.origin-banner ul { display: grid; gap: 0.55rem; }
.origin-banner li {
  position: relative; padding-left: 1.15rem; color: var(--slate-200); font-size: 0.95rem;
}
.origin-banner li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400);
}

/* Team contact strip */
.team-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}

.footer-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin: 0.5rem 0 0.35rem;
  justify-content: flex-start;
}
@media (min-width: 700px) {
  .footer-meta .footer-actions { justify-content: flex-end; }
}
.btn-footer {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  background: var(--cyan-500); color: var(--navy-950) !important;
  border: none; transition: background var(--ease), transform var(--ease);
}
.btn-footer:hover {
  background: var(--cyan-400); color: var(--navy-950) !important;
  transform: translateY(-1px);
}
.footer-phone {
  color: var(--slate-300) !important;
  font-weight: 600; font-size: 0.92rem;
}
.footer-phone:hover { color: var(--cyan-400) !important; }

/* Secondary page hero */
.page-hero {
  background: radial-gradient(1000px 500px at 10% -10%, rgba(6, 182, 212, 0.1), transparent 55%),
              linear-gradient(180deg, #eef4f8 0%, var(--slate-50) 100%);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 720px; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.03em; color: var(--navy-900);
  margin-bottom: 1rem;
}
.page-hero .lead { margin-bottom: 0.5rem; }
.page-hero .lead strong { color: var(--navy-900); font-weight: 600; }

/* Consulting page */
.practice-list {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .practice-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .practice-list { grid-template-columns: 1fr 1fr 1fr; }
}
.practice {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.practice h3 { font-size: 1.02rem; color: var(--navy-900); margin-bottom: 0.4rem; }
.practice p { color: var(--text-muted); font-size: 0.92rem; }

.stack-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .stack-grid { grid-template-columns: 1fr 1fr; }
}
.stack-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius); padding: 1.35rem 1.3rem;
}
.stack-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.45rem; }
.stack-card p { color: var(--slate-400); font-size: 0.96rem; }

.consulting-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-500);
  padding: 0 1rem 2.5rem;
  max-width: var(--max);
}
.consulting-note a {
  color: var(--slate-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.consulting-note a:hover { color: var(--cyan-600); }
/* Advantage */
.advantage-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .advantage-grid { grid-template-columns: 1fr 1fr; }
}
.advantage {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius); padding: 1.35rem 1.3rem;
}
.advantage h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.45rem; }
.advantage p { color: var(--slate-400); font-size: 0.96rem; }
.ai-callout {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(6, 182, 212, 0.08);
  padding: 1.25rem 1.4rem;
}
.mono-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan-400); margin-bottom: 0.45rem;
}
.ai-callout p:last-child { color: var(--slate-300); font-size: 0.98rem; }
.ai-callout strong { color: var(--white); }

/* Value split */
.split {
  display: grid; gap: 2.5rem;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.check-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.check-list li {
  position: relative; padding-left: 1.7rem;
  color: var(--text-muted); font-size: 0.98rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: inset 0 0 0 1.5px var(--cyan-500);
}
.check-list li::after {
  content: ""; position: absolute; left: 0.28rem; top: 0.55em;
  width: 0.35rem; height: 0.55rem;
  border: solid var(--cyan-600); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* CTA */
.section-cta { padding-top: 0; }
.cta-panel {
  background: linear-gradient(135deg, #e8f7fb 0%, #f8fafc 45%, #eef2f7 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid; gap: 1.75rem;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .cta-panel { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.cta-panel p { color: var(--text-muted); }
.cta-actions { display: grid; gap: 0.7rem; }

/* Footer */
.site-footer {
  background: var(--navy-950); color: var(--slate-400);
  padding: 2.5rem 0 2rem; border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.footer-inner {
  display: grid; gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: end; justify-content: space-between;
  }
  .footer-meta { text-align: right; }
}
.logo-footer { color: var(--white); margin-bottom: 0.5rem; }
.logo-footer .logo-llc { color: var(--slate-400); }
.footer-tag { font-size: 0.92rem; }
.footer-meta a { color: var(--slate-300); }
.footer-meta a:hover { color: var(--cyan-400); }
.footer-meta p { font-size: 0.92rem; margin-bottom: 0.25rem; }
.fine { font-size: 0.82rem !important; color: var(--slate-500); margin-top: 0.5rem !important; }

/* Analyzer feature + SEO article */
.hero-wide { max-width: 920px; }
.hero-tool {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
}
.hero-tool .eyebrow { margin-bottom: 0.4rem; }
.hero-tool h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 0.45rem;
}
.hero-tool p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1rem; }
.hero-phone {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin: -0.5rem 0 0.5rem;
}
.hero-phone a { font-weight: 600; color: var(--navy-900); }
.hero-phone a:hover { color: var(--cyan-600); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  margin: 1.25rem 0 2rem;
}
.rank-table th, .rank-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rank-table th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rank-table tr:last-child td { border-bottom: 0; }
.rank-score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.25rem; }
.disclaimer-box {
  background: var(--slate-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.prose-seo { max-width: 72ch; }
.prose-seo p { color: var(--text-muted); margin-bottom: 1rem; }
.prose-seo h3 {
  color: var(--navy-900);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.prose-seo strong { color: var(--navy-900); font-weight: 600; }
