/*
Theme Name: Harlyn
Theme URI: https://www.harlyntechnologies.com
Author: Harlyn Technologies
Author URI: https://www.harlyntechnologies.com
Description: Dark, founder-led engineering studio theme. AI-augmented product engineering and private LLM deployment. Built from the Harlyn Claude Design project.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harlyn
*/

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0d0b;
  --surface: #141712;
  --surface-2: #111310;
  --accent: #8fd13c;
  --accent-hover: #a6e35c;
  --text: #f3f5ef;
  --text-2: #c3c8bd;
  --body: #a9afa2;
  --muted: #8a9083;
  --faint: #5b6156;
  --dot: #3d423a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

/* ---------- Base ---------- */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-sm {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--text);
  margin: 0;
}
.section-sub {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
}
.mono-link {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.mono-link:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px 27px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(11, 13, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-header .header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img, .brand svg, .brand .custom-logo { width: 26px; height: 26px; display: block; }
.brand-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name .muted { color: var(--muted); font-weight: 400; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--accent); background: rgba(143, 209, 60, 0.08); }
.nav-desktop li.current-menu-item > a,
.nav-desktop li.current_page_item > a,
.nav-desktop a.is-active { color: var(--accent); }

.header-cta {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  animation: navMenuIn 0.22s ease both;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px clamp(20px, 5vw, 48px) 24px;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a {
  display: block;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-mobile li.current-menu-item > a,
.nav-mobile li.current_page_item > a,
.nav-mobile a.is-active { color: var(--accent); }
.nav-mobile .mobile-cta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border-bottom: none;
}

@media (max-width: 899px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-mobile { display: flex; }
}

/* ---------- Cards & grids ---------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
a.card:hover { border-color: rgba(143, 209, 60, 0.5); transform: translateY(-4px); }
.card-title {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 12px;
}
.card-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 20px;
}
.card-more {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.panel {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
}
.panel-lg {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.tick {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.input {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}
.input:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { padding-top: 72px; padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand img, .footer-brand .brand svg, .footer-brand .brand .custom-logo { width: 24px; height: 24px; }
.footer-brand .brand-name { font-size: 15px; }
.footer-tagline {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 22px;
}
.footer-form { display: flex; gap: 8px; max-width: 320px; }
.footer-form .input { flex: 1; min-width: 0; }
.footer-form button {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
}
.footer-form button:hover { background: var(--accent-hover); }
.footer-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin: 10px 0 0;
}
.footer-heading {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: 88px 0 56px; overflow: hidden; }
.page-hero h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 20px 0 0;
}
.page-hero .lede {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.65;
  color: var(--body);
  max-width: 640px;
  margin: 20px 0 0;
}

/* ---------- Generic content (index.php / page.php fallback) ---------- */
.entry-content {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--body);
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.25;
}
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--text-2);
}
.entry-content code, .entry-content pre {
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.entry-content code { padding: 2px 6px; font-size: 14px; }
.entry-content pre { padding: 16px 20px; overflow-x: auto; }
.entry-content pre code { border: none; background: transparent; padding: 0; }
.entry-content img { border-radius: 12px; }
.entry-content a { color: var(--accent); }

/* Screen reader text (WP a11y convention) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
