/* =========================================================
   HARRISON SAAS PUBLISHING LLC
   Stylesheet — single file, mobile-first
   Written to work entirely offline. No fonts, no images,
   no CDNs. Everything visual here is CSS or inline SVG.
   ========================================================= */

:root {
  /* Deep indigo reads as more "engineering" than navy blue —
     fits a software publisher better than a marketing site. */
  --color-deep-indigo: #1E1B4B;
  --color-electric-blue: #3B82F6;
  --color-soft-violet: #8B5CF6;
  --color-slate: #0F172A;
  --color-off-white: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-card-bg: #FFFFFF;
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, 'Noto Sans', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

  /* 7px, not 8. Slightly less "perfect grid" — reads warmer. */
  --radius-card: 7px;
  --radius-btn: 6px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04),
                 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06),
                 0 14px 32px rgba(30, 27, 75, 0.12);

  --max-width: 1120px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-dark);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* ---------- Reusable containers ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 4.4rem 0;
}

/* Slightly different rhythm per section so it doesn't feel
   like a spreadsheet of identical paddings. */
.section--tight { padding: 3.2rem 0; }
.section--roomy { padding: 5.25rem 0; }

.section--dark {
  background: var(--color-slate);
  color: var(--color-off-white);
}
.section--dark h2,
.section--dark h3 { color: var(--color-white); }
.section--dark p { color: #CBD5E1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-electric-blue);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: #93C5FD; }

.lede {
  font-size: 1.06rem;
  color: var(--color-text-muted);
  max-width: 62ch;
}
.section--dark .lede { color: #CBD5E1; }

/* ---------- Code-styled bits ---------- */

.code-sample {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-electric-blue);
  padding: 0.35em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72em 1.35em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition),
              transform var(--transition),
              border-color var(--transition),
              color var(--transition);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: scale(1.02); }
.btn:active { transform: scale(0.99); }

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

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(248, 250, 252, 0.35);
}
.btn-secondary:hover {
  background: rgba(248, 250, 252, 0.1);
  color: var(--color-white);
  border-color: rgba(248, 250, 252, 0.7);
}

/* Used on light backgrounds where a transparent button would vanish */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: rgba(59, 130, 246, 0.4);
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.btn-violet {
  background: var(--color-soft-violet);
  color: var(--color-white);
}
.btn-violet:hover { background: #7C3AED; color: var(--color-white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.link-arrow {
  font-weight: 600;
  color: #93C5FD;
}
.link-arrow:hover { color: var(--color-white); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
  color: var(--color-white);
}
.brand-name .brand-accent { color: var(--color-electric-blue); }

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #94A3B8;
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: var(--radius-btn);
  color: var(--color-white);
  font-size: 1.25rem;
  width: 42px;
  height: 38px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.nav-toggle:hover {
  border-color: rgba(248, 250, 252, 0.6);
  background: rgba(248, 250, 252, 0.06);
}

.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #131C33;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  padding: 0.5rem 20px 1rem;
}
.primary-nav.is-open { display: block; }

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

.nav-list a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
}
.nav-list a:hover {
  color: var(--color-white);
  background: rgba(248, 250, 252, 0.06);
  text-decoration: none;
}
.nav-list a.active {
  color: var(--color-white);
  box-shadow: inset 2px 0 0 var(--color-electric-blue);
}

.header-cta { display: none; }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    flex: 1;
    margin-left: 2rem;
  }
  .nav-list {
    flex-direction: row;
    gap: 1.5rem;
  }
  .nav-list a { padding: 0.35rem 0; }
  .nav-list a.active {
    box-shadow: inset 0 -2px 0 var(--color-electric-blue);
  }
  .header-cta { display: inline-block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1E1B4B 0%, #131C33 45%, #0B1020 100%);
  color: var(--color-off-white);
  padding: 4.5rem 0 4rem;
}

/* Faint grid + bracket pattern. Kept subtle so the headline
   stays the loudest thing in the section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -160px;
  background: radial-gradient(circle,
              rgba(59, 130, 246, 0.28) 0%,
              rgba(139, 92, 246, 0.12) 40%,
              transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 { color: var(--color-white); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #CBD5E1;
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 1.4rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-card,
.solution-card,
.point-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover,
.solution-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.product-card h3 { margin-bottom: 0.35rem; }

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-soft-violet);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: block;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

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

/* ---------- Why-us points ---------- */

.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.point-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.point-mark {
  color: var(--color-success);
  font-size: 1.1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.point-list strong { display: block; margin-bottom: 0.15rem; }
.point-list span { color: var(--color-text-muted); font-size: 0.93rem; }

@media (min-width: 720px) {
  .point-list { grid-template-columns: repeat(2, 1fr); }
  .point-list li:last-child { grid-column: span 2; }
}

/* ---------- Trust bar ---------- */

.trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 1.6rem;
  background: linear-gradient(120deg, #1E1B4B, #2A2568);
  border-radius: var(--radius-card);
  color: var(--color-off-white);
}

.trust-item {
  font-size: 0.92rem;
  color: #CBD5E1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.trust-item .point-mark { color: #93C5FD; }

@media (min-width: 780px) {
  .trust-bar { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
}

/* ---------- About teaser ---------- */

.about-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 820px) {
  .about-teaser { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #1E1B4B 0%, #171A3C 60%, #0F172A 100%);
  color: var(--color-off-white);
  padding: 3.4rem 0 3rem;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--color-white); margin-bottom: 0.5rem; }

/* ---------- Product detail rows ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.product-detail:last-of-type { border-bottom: none; }

@media (min-width: 820px) {
  .product-detail {
    grid-template-columns: 84px 1fr;
    gap: 2rem;
    padding: 2.6rem 0;
  }
}

.product-detail .card-icon { margin-bottom: 0; }

.feature-list {
  list-style: none;
  margin: 0.75rem 0 1.1rem;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-electric-blue);
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ---------- Pricing philosophy block ---------- */

.pricing-note {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-soft-violet);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.pricing-note ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.pricing-note li { margin-bottom: 0.4rem; color: var(--color-text-muted); }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.3fr 0.9fr; gap: 3rem; }
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-field .req {
  color: var(--color-warning);
  font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.62em 0.7em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  color: var(--color-text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-field textarea { resize: vertical; min-height: 130px; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  font-size: 0.94rem;
  margin-bottom: 0;
  cursor: pointer;
}

.field-error {
  display: none;
  color: var(--color-warning);
  font-size: 0.83rem;
  margin-top: 0.35rem;
}
.form-field.has-error .field-error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-warning);
}

.form-success {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-left-width: 3px;
  border-radius: var(--radius-card);
  color: #065F46;
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}

.contact-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }

.contact-line {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-size: 0.94rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.contact-line .mark { color: var(--color-electric-blue); }
.contact-line a { color: var(--color-text-dark); font-weight: 600; }
.contact-line a:hover { color: var(--color-accent); }

.map-placeholder {
  position: relative;
  height: 180px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(59, 130, 246, 0.75)),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.06) 0 12px,
      transparent 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 1rem;
}

.social-row {
  display: flex;
  gap: 1rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
}
.social-row span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: default;
  transition: color var(--transition), border-color var(--transition);
}
.social-row span:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- SVG illustration blocks ---------- */

.illustration {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.blink {
  animation: cursorBlink 1.15s steps(2, start) infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.node-pulse {
  animation: nodePulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; r: 3; }
  50% { opacity: 1; r: 5; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blink, .node-pulse { animation: none; }
  .btn:hover { transform: none; }
  .product-card:hover, .solution-card:hover { transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-slate);
  color: #94A3B8;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

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

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

.footer-brand .brand-name { font-size: 1rem; margin-bottom: 0.5rem; display: block; }
.footer-brand p { color: #94A3B8; margin-bottom: 0.6rem; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #94A3B8; }
.footer-links a:hover { color: var(--color-white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.35em 0.8em;
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: var(--radius-pill);
  color: #C4B5FD;
}

.to-top {
  color: #94A3B8;
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.to-top:hover { color: var(--color-white); }

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }