/* JitterTrap Website - Minimal Self-Contained CSS */

:root {
  --color-bg: #1a1a1a;
  --color-bg-light: #2a2a2a;
  --color-bg-lighter: #f6f6f6;
  --color-text: #e0e0e0;
  --color-text-muted: #888;
  --color-text-dark: #333;
  --color-accent: #82acc6;
  --color-accent-dark: #5a8aaa;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Navigation */
.nav {
  background: var(--color-bg-light);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  padding: 0.25rem 0;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-light);
  border: 1px solid #333;
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 101;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
}

.dropdown-content a:hover {
  background: var(--color-bg);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
}

.carousel-slides {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  aspect-ratio: 3 / 2;
  background: #fff;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot:hover {
  background: var(--color-accent);
}

.carousel-dot.active {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Problem Section */
.problem {
  padding: 3rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid #333;
}

.problem h2 {
  margin-bottom: 1.5rem;
}

.problem-content {
  max-width: 800px;
}

.problem-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.problem-content p:nth-child(2) {
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* Feature Grid */
.features {
  padding: 4rem 0;
  background: var(--color-bg-lighter);
  color: var(--color-text-dark);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.feature-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots {
  padding: 4rem 0;
}

.screenshots h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
  display: block;
}

.screenshot-card .caption {
  padding: 1rem;
}

.screenshot-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.screenshot-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Reveals Section */
.reveals {
  padding: 4rem 0;
  background: var(--color-bg);
}

.reveals h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.reveals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.reveal-item {
  padding: 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-light);
}

.reveal-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.reveal-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Use Cases */
.use-cases {
  padding: 4rem 0;
  background: var(--color-bg-lighter);
  color: var(--color-text-dark);
}

.use-cases h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.use-cases .section-intro {
  color: #666;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.use-case {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.use-case h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.use-case p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.use-case a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background: #fff;
  color: var(--color-accent);
}

.cta .btn-primary:hover {
  background: #e0e0e0;
}

.cta .btn-outline {
  border-color: #fff;
  color: #fff;
  margin-left: 1rem;
}

.cta .btn-outline:hover {
  background: #fff;
  color: var(--color-accent);
}

/* Footer */
.footer {
  background: var(--color-bg-light);
  padding: 3rem 0 2rem;
  border-top: 1px solid #333;
}

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

.footer h4 {
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: var(--color-text-muted);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Documentation pages */
.docs-content {
  padding: 3rem 0;
}

.docs-content h1 {
  margin-bottom: 2rem;
}

.docs-content h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.docs-content pre {
  background: var(--color-bg-light);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

.docs-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.docs-content th, .docs-content td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.docs-content th {
  background: var(--color-bg-light);
}

/* Section pages (features, docs) - light background */
.page-light {
  background: var(--color-bg-lighter);
  color: var(--color-text-dark);
}

.page-light a {
  color: var(--color-accent-dark);
}

.page-light .docs-content h2 {
  border-color: #ddd;
}

.page-light .docs-content pre {
  background: #fff;
  border: 1px solid #ddd;
}

.page-light .docs-content th {
  background: #fff;
}

.page-light .docs-content th,
.page-light .docs-content td {
  border-color: #ddd;
}

/* Feature Cards (Features overview page) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card-link {
  text-decoration: none;
  color: inherit;
}

.feature-card-link:hover {
  text-decoration: none;
}

.feature-card-large {
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.feature-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.feature-card-large img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.feature-card-body {
  padding: 1.25rem;
}

.feature-card-body h3 {
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

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