/* ============================================================
   Adventures Showcase Landing Page Stylesheet (STANDALONE)
   Theme: Rugged Minimalist Explorer (No purple/violet, sharp corners)
   Contains all required global resets, design tokens, and components
   to make the showcase folder 100% portable.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #1b2626;
  --bg2: #2f4f4f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.15);
  --border-hover: #ff6b35;
  --accent: #ff6b35;
  --accent-light: #ff8557;
  --accent2: #004e98;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --text: #fdfbf7;
  --text-muted: #a5b2b2;
  --text-faint: #7a8c8c;
  --nav-height: 64px;
  --radius: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --radius-pill: 0px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  --transition: 0.18s ease-in-out;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --bg: #fdfbf7;
  --bg2: #f5f1e9;
  --surface: rgba(47, 79, 79, 0.06);
  --surface-hover: rgba(47, 79, 79, 0.1);
  --border: rgba(47, 79, 79, 0.18);
  --border-hover: #004e98;
  --accent: #004e98;
  --accent-light: #0062bd;
  --accent2: #ff6b35;
  --accent-glow: rgba(0, 78, 152, 0.18);
  --text: #1c2626;
  --text-muted: #5e6666;
  --text-faint: #8a9494;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent-light);
}

.text-muted {
  color: var(--text-muted);
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(27, 38, 38, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .nav {
  background: rgba(253, 251, 247, 0.78);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  user-select: none;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-text {
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}


/* ============================================================
   Showcase Specific Sections Styles
   ============================================================ */

.showcase-body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: clip;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 120px 0 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-tagline {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: 0px !important;
  transition: all var(--transition);
}

/* --- Screenshot Showcase --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}

.screenshot-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
}

.screenshot-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.screenshot-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  background: var(--bg);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-img {
  transform: scale(1.03);
}

.screenshot-caption {
  margin-top: 14px;
  padding: 0 4px 4px 4px;
}

.screenshot-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.zoom-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  transition: opacity var(--transition);
  opacity: 0;
}

.screenshot-card:hover .zoom-indicator {
  opacity: 1;
}

/* --- Features Section --- */
.section-header {
  text-align: center;
  padding: 80px 0 40px 0;
  max-width: 700px;
  margin: 0 auto;
}

.section-label {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.feature-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color var(--transition);
}

.feature-box:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--accent);
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Security & Privacy Focus --- */
.security-highlight {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 48px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.security-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-item {
  display: flex;
  gap: 12px;
}

.security-item-icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 3px;
}

.security-item-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.security-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.security-shield-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-shield {
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.85;
  filter: drop-shadow(0 0 20px var(--accent-glow));
  animation: float-shield 4s ease-in-out infinite;
}

@keyframes float-shield {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Fullscreen Lightbox / Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 38, 38, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 90vw;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  background: var(--bg);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
}

.lightbox-caption {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  color: var(--text);
  width: 0;
  min-width: 100%;
}

.lightbox-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.lightbox-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--text);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Desktop Nav Links styling --- */
.nav-links-desktop a {
  transition: color var(--transition);
}
.nav-links-desktop a:hover {
  color: var(--text) !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .security-highlight {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .security-shield-container {
    order: -1;
  }
  .nav-links-desktop {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 0 60px 0;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-large {
    width: 100%;
  }
  .security-highlight {
    padding: 24px;
  }
}
