/* =============================================================
   DSD Technologies — Enterprise Design System
   Monochrome-first. One accent. Intentional.
============================================================= */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --bg:         #0a0c0f;
  --surface:    #13161b;
  --surface2:   #1c2128;
  --border:     #2c3440;
  --text:       #f8fafc;
  --text-muted: #a3afbf;
  --accent:     #e5e7eb;
  --accent2:    #cbd5f5;
  --highlight:  #3b82f6;
  --radius:     12px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Subtle radial glow — hero area only, fades on scroll */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 100vh;
  background: radial-gradient(ellipse at 20% 40%, rgba(59,130,246,0.055) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ── Utility ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.hidden       { display: none !important; }
.accent       { color: var(--accent); }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}
.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

/* Primary — blue, key actions only */
.btn-primary {
  background: var(--highlight);
  color: #fff;
  border-color: var(--highlight);
}
.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}

/* Outline — neutral bordered */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.06);
}

/* Secondary — filled neutral */
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.06);
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,15,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo  { display: flex; align-items: center; }
.logo-img  { height: 32px; width: auto; object-fit: contain; }
.logo-img--footer { height: 26px; opacity: 0.55; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--text); }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.2rem;
  cursor: pointer; padding: 0.25rem;
}

/* ── Hero (homepage) ── */
.hero {
  min-height: 86vh;
  display: flex; align-items: center;
  padding: 5.75rem 2rem 5rem;
  max-width: 1100px; margin: 0 auto;
  gap: 4rem;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: clamp(2.375rem, 4.5vw, 3.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.375rem;
}
.hero-sub {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }

/* Hex graphic — structural, monochrome */
.hero-graphic { flex: 0 0 280px; display: flex; align-items: center; justify-content: center; }
.hex-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.hex {
  width: 64px; height: 74px;
  background: var(--surface2);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.accent-hex { background: var(--surface); opacity: 0.45; }

/* ── Insight strip ── */
.insight-strip {
  background:
    linear-gradient(110deg, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.05) 42%, rgba(19,22,27,0.96) 100%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  position: relative; z-index: 1;
}
.insight-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 35%, rgba(147,197,253,0.2) 0%, rgba(147,197,253,0) 52%);
  pointer-events: none;
}
.insight-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.insight-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.insight-label {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #dbeafe;
}
.insight-powered {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(148,163,184,0.45);
  border-radius: 999px;
  background: rgba(15,23,42,0.5);
  color: #bfdbfe;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.insight-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 0.875rem;
  color: #d1d5db;
}
.insight-body strong {
  color: #f8fafc;
  margin-right: 0.2rem;
}
.insight-source {
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.75rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.insight-source:hover {
  border-color: rgba(147,197,253,0.8);
}
#insight-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.9;
}

/* ── Services ── */
.services {
  background: var(--surface);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
/* Architectural panel grid — no floating cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--surface2);
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--surface); }
.service-icon { font-size: 1.375rem; margin-bottom: 1rem; opacity: 0.55; }
.service-card h3 {
  font-size: 0.9375rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }

/* ── Packages ── */
.packages {
  padding: 6rem 2rem;
  position: relative; z-index: 1;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.package-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  transition: background 0.2s;
}
.package-card:hover { background: var(--surface2); }
.package-header { display: flex; align-items: flex-start; gap: 1rem; }
.package-icon { font-size: 1.375rem; opacity: 0.5; margin-top: 0.125rem; flex-shrink: 0; }
.package-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.package-sub  { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.125rem; line-height: 1.4; }
.package-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }
.package-includes {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.375rem;
  flex: 1;
}
.package-includes li { font-size: 0.875rem; color: var(--text-muted); }
.package-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--highlight);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px; padding: 0.2rem 0.625rem;
  width: fit-content;
}
.packages-note {
  text-align: center; color: var(--text-muted);
  font-size: 0.8125rem; margin-top: 2.5rem;
}
.packages-note a { color: var(--highlight); }
.packages-note a:hover { text-decoration: underline; }

/* ── Products overview ── */
.products-overview {
  padding: 6rem 2rem;
  position: relative; z-index: 1;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}
.product-overview-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.product-overview-card:hover {
  border-color: rgba(248,250,252,0.2);
  box-shadow: 0 4px 28px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}
.poc-logo {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; font-weight: 800;
}
.poc-logo--image {
  background: var(--surface2);
  border: 1px solid var(--border);
}
.poc-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.griffn-oc-logo  { background: var(--text); color: var(--bg); }
.idlespy-oc-logo { background: var(--accent2); color: var(--bg); }
.poc-text h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.375rem; }
.poc-text p  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.75rem; }
.poc-link    { font-size: 0.8125rem; font-weight: 600; color: var(--highlight); }

/* ── Shared product badge ── */
.product-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.75rem 2.25rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.product-badge > span  { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.product-badge > small {
  color: var(--text-muted); font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.product-logo {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.875rem; font-weight: 800;
  margin-bottom: 0.625rem;
}
.product-logo--image {
  background: var(--surface);
  border: 1px solid var(--border);
}
.product-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.griffn-logo  { background: var(--highlight); color: #fff; }
.idlespy-logo { background: var(--accent2); color: var(--bg); }

/* ── Product page: hero ── */
.product-hero { padding: 5.5rem 2rem 4rem; position: relative; z-index: 1; }
.product-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.product-hero-text { flex: 1; min-width: 300px; }
.product-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 1.25rem;
}
.product-hero-badge { flex: 0 0 240px; display: flex; justify-content: center; }

/* ── Problem section ── */
.problem-section {
  background: var(--surface);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}
.problem-card { background: var(--bg); padding: 1.875rem; }
.problem-icon { font-size: 1.25rem; margin-bottom: 0.75rem; opacity: 0.5; }
.problem-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }
.problem-cta {
  text-align: center; font-size: 1.125rem;
  font-weight: 600; color: var(--text); letter-spacing: -0.01em;
}

/* ── Features ── */
.features-section { padding: 6rem 2rem; position: relative; z-index: 1; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon { font-size: 1.125rem; margin-bottom: 0.75rem; opacity: 0.5; }
.feature-card h3 {
  font-size: 0.9375rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 0.4rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.65; }

/* ── Pricing ── */
.pricing {
  background: var(--surface);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.pricing-tabs { display: flex; justify-content: center; margin-bottom: 3rem; }
.tab-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab-btn:first-child { border-radius: 6px 0 0 6px; }
.tab-btn:last-child  { border-radius: 0 6px 6px 0; border-left: none; }
.tab-btn.active { background: var(--surface2); color: var(--text); border-color: var(--text-muted); }
.tab-btn:hover:not(.active) { color: var(--text); background: var(--surface2); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; align-items: start;
}
.pricing-grid--2col { max-width: 680px; margin: 0 auto; }
.pricing-grid--1col { max-width: 360px; margin: 0 auto; }

.price-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  border-color: rgba(248,250,252,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
/* Featured — only place blue used structurally */
.price-card.featured {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.15), 0 8px 32px rgba(0,0,0,0.35);
}
.price-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--highlight);
  color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  padding: 0.2rem 0.875rem;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.price-label  { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.price-tier   { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.price-amount { font-size: 2.625rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.price-amount span { font-size: 0.9375rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.price-card > p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.price-features li { font-size: 0.875rem; color: var(--text-muted); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.8125rem; margin-top: 2.5rem; }
.pricing-note a { color: var(--highlight); }
.pricing-note a:hover { text-decoration: underline; }

/* ── CTA strip ── */
.cta-strip {
  padding: 4rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.cta-inner p  { color: var(--text-muted); font-size: 0.9375rem; }

/* ── Contact ── */
.contact { padding: 6rem 2rem; position: relative; z-index: 1; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.625rem 0.875rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.4; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-group select option { background: var(--surface2); color: var(--text); }
.form-feedback { font-size: 0.875rem; color: var(--highlight); min-height: 1.25em; }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; text-align: center;
}
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.8125rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.75rem; opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
    justify-content: flex-end;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero {
    flex-direction: column; text-align: center;
    padding-top: 4rem; min-height: auto; padding-bottom: 4rem; gap: 2.5rem;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-graphic { display: none; }

  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 0.875rem 2rem; }
  .nav-toggle { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }
  .packages-grid { grid-template-columns: 1fr; }

  .insight-inner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  #insight-meta { white-space: normal; }

  .product-hero-inner { flex-direction: column; text-align: center; }
  .product-hero-text .hero-actions { justify-content: center; }
  .product-hero-badge { width: 100%; }

  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
