/* ==========================================================================
   Newkirk Technologies — landing page styles
   Dark theme complementing Polyscope (near-black base, neon-green accent)
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-alt: #0e0e12;
  --surface: #121218;
  --surface-raised: #17171f;
  --border: #24242e;
  --text: #eceded;
  --text-muted: #9a9aa6;
  --accent: #2ee59d;
  --accent-dim: rgba(46, 229, 157, 0.12);
  --accent-border: rgba(46, 229, 157, 0.35);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* keep anchors clear of the sticky header */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1rem;
}

.brand-name {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent-border);
  padding: 7px 16px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

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

.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 0%, rgba(46, 229, 157, 0.08), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

.hero-sub {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #06130d;
}

.btn-primary:hover {
  background: #4bf0ae;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 34px;
}

.section-intro {
  max-width: 620px;
  color: var(--text-muted);
  margin: -18px 0 40px;
}

/* ---------- App cards ---------- */

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.app-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}

.app-logo-placeholder {
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px dashed var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
}

.app-card h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.app-tagline {
  color: var(--text-muted);
  margin-top: 4px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-live {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.badge-wip {
  background: rgba(255, 196, 66, 0.1);
  border: 1px solid rgba(255, 196, 66, 0.35);
  color: #ffc442;
}

.app-desc {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 28px;
  margin-bottom: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.app-pricing {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-card-wip .app-desc {
  font-size: 1.05rem;
  color: var(--text);
}

.app-card-wip .app-pricing {
  margin-bottom: 0;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-border);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 96px;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 640px;
}

.skills {
  margin-top: 30px;
}

.skills h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.skill-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chips li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

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

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-border);
  text-decoration: none;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

.contact-card:hover .contact-value {
  color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 0 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px;
  }

  .nav-cta {
    border: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .app-card {
    padding: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo-wrap {
    position: static;
    max-width: 320px;
  }
}
