/* PoseGuard AI — Modern Dark Technical Design System */
:root {
  --bg-dark: #070b14;
  --bg-card: #0d1527;
  --bg-card-hover: #121c33;
  --bg-code: #050810;
  --border: #1e293b;
  --border-focus: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --blue: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --container-width: 1200px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility & Focus States */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Header & Navigation */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.beta-badge {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
}

/* Main Container */
main {
  flex: 1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* Roadmap & Availability Banner */
.roadmap-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}

.roadmap-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Trust Badges Row */
.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0 auto 2.5rem;
  max-width: 860px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid var(--border);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.trust-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Hero Showcase (3D Studio Animated GIF) */
.hero-showcase {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.hero-showcase-header {
  background: #090e1a;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.hero-showcase-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hero-showcase-media {
  position: relative;
  width: 100%;
  background: #080c16;
  display: block;
}

.hero-showcase-media img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-showcase-caption {
  background: #090e1a;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mockup Box (Terminal) */
.terminal-window {
  max-width: 860px;
  margin: 0 auto 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.terminal-header {
  background: #090e1a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.6;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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

/* Product Tour Section */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.tour-card-img-wrap {
  background: #070a12;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tour-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.tour-card:hover .tour-card-img-wrap img {
  transform: scale(1.02);
}

.tour-card-body {
  padding: 1.5rem;
  flex: 1;
}

.tour-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tour-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.tour-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Built For & Social Proof Section */
.built-for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.built-for-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.built-for-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.built-for-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: rgba(13, 21, 39, 0.5);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  color: #cbd5e1;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
}

.testimonial-meta {
  font-size: 0.8rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--text-main);
}

.testimonial-meta span {
  color: var(--text-dim);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: #090e1a;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-card-hover);
}

/* Expandable "How We Test" & Collapsible FAQ */
details.how-we-test {
  background: rgba(13, 21, 39, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  cursor: pointer;
}

details.how-we-test summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
}

details.how-we-test summary::-webkit-details-marker {
  display: none;
}

details.how-we-test summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
  font-family: var(--font-mono);
}

details[open].how-we-test summary::after {
  transform: rotate(45deg);
}

details.how-we-test .test-content {
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  cursor: pointer;
}

details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
  font-family: var(--font-mono);
}

details[open].faq-item summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-content {
  padding-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Code Blocks */
pre.code-box {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: #050810;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Reduced Motion Query for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .tour-card:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  .tour-card:hover .tour-card-img-wrap img {
    transform: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1.1rem; }
  .footer-content { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .trust-badges-row { gap: 0.75rem; }
  .trust-badge-item { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .trust-badges-row { flex-direction: column; align-items: stretch; }
  .trust-badge-item { justify-content: center; }
}
