/* ==========================================================================
   CHALNA (찰나) Official Landing Page Stylesheet
   Modern, Emotional, Responsive & Glassmorphism Design
   ========================================================================== */

/* --- CSS Variables & Design System --- */
:root {
  /* Color Palette - Default Dark & Deep Cosmic Violet */
  --bg-primary: #0a0c16;
  --bg-secondary: #121526;
  --bg-card: rgba(23, 27, 48, 0.75);
  --bg-card-hover: rgba(32, 38, 68, 0.85);
  --bg-glass: rgba(18, 21, 38, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(168, 85, 247, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c084fc;

  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: rgba(139, 92, 246, 0.15);
  --primary-glow: rgba(139, 92, 246, 0.35);

  --accent-cyan: #38bdf8;
  --accent-pink: #f472b6;
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;

  --gradient-brand: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #38bdf8 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(139, 92, 246, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(0, 0, 0, 0.07);
  --border-glass-active: rgba(139, 92, 246, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #7c3aed;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: rgba(124, 58, 237, 0.08);
  --primary-glow: rgba(124, 58, 237, 0.2);

  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #0284c7 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px -5px rgba(124, 58, 237, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Ambient Glow Backgrounds --- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  transition: transform 1s ease-out;
}

.circle-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.2) 70%, transparent 100%);
}

.circle-2 {
  width: 650px;
  height: 650px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(139, 92, 246, 0.15) 70%, transparent 100%);
}

.circle-3 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.3) 0%, rgba(124, 58, 237, 0.1) 70%, transparent 100%);
}

/* --- Container & Layout Helpers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid var(--border-glass-active);
  color: var(--text-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px -3px var(--primary-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Header & Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  height: 64px;
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-glass-active);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-logo .brand-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo .brand-sub {
  font-size: 0.75rem;
  color: var(--text-accent);
  padding: 0.15rem 0.45rem;
  background: var(--primary-light);
  border-radius: 4px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-active);
  transform: rotate(15deg);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-download-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  display: inline-block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Visual / Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  perspective: 1000px;
}

.phone-mockup {
  position: relative;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating feature badges around mockup */
.floating-badge {
  position: absolute;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.badge-1 {
  top: 15%;
  left: -40px;
  animation-delay: 0.5s;
}

.badge-2 {
  bottom: 20%;
  right: -35px;
  animation-delay: 1.2s;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  font-size: 1.2rem;
}

.badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* --- Key Highlights (4 Grid) --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.highlight-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.highlight-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-fast);
}

.highlight-card:hover .card-icon {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Interactive Feature Showcase Section --- */
.showcase-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.showcase-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--primary-light);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.showcase-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  animation: fadeIn 0.4s ease-out forwards;
}

.showcase-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-content h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.panel-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.feature-bullets li .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.panel-visual {
  display: flex;
  justify-content: center;
}

.screenshot-frame {
  max-width: 320px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-glass-active);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.25);
  background: #000;
  transition: transform var(--transition-normal);
  cursor: pointer;
}

.screenshot-frame:hover {
  transform: scale(1.02);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Screenshot Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-normal);
  group: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 18;
  background: #000;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 22, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0.95;
}

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gallery-zoom-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* --- Privacy & Trust Section --- */
.trust-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.trust-banner h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.trust-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trust-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.trust-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-point-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-point-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.trust-point-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-glass-active);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.75rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* --- Call To Action (Bottom) --- */
.cta-section {
  padding: 6rem 0;
  position: relative;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.35) 0%, rgba(18, 21, 38, 0.95) 75%);
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 850;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2.5rem 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.25s ease-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .floating-badge {
    display: none;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .feature-bullets li {
    text-align: left;
  }

  .trust-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }

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

@media (max-width: 768px) {
  .nav-links, .btn-download-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass-active);
    gap: 1.5rem;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Manual / Documentation Specific Styles
   ========================================================================== */
.manual-header {
  padding-top: 6rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
}

.manual-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding: 3rem 0 6rem 0;
  align-items: start;
  position: relative;
}

/* Sticky Sidebar / TOC */
.manual-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.manual-sidebar h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--text-primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  transform: translateX(3px);
}

.toc-link.active {
  color: var(--text-accent);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* Manual Content Styling */
.manual-content {
  min-width: 0;
}

.manual-section {
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-glass);
  scroll-margin-top: 90px;
}

.manual-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.manual-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.manual-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.manual-section p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.manual-section ul, .manual-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.manual-section li {
  margin-bottom: 0.5rem;
}

/* Callout Box / Alerts */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}

.callout-note {
  border-left-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

.callout-tip {
  border-left-color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.08);
}

.callout-important {
  border-left-color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.08);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.callout-note .callout-title { color: var(--text-accent); }
.callout-tip .callout-title { color: var(--accent-emerald); }
.callout-important .callout-title { color: var(--accent-amber); }

.callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

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

.manual-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.manual-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

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

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

/* Code Snippet Box */
.code-box {
  background: #0d1117;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.88rem;
  color: #e6edf3;
  line-height: 1.6;
}

/* Visual Feature Card inside Manual */
.manual-screenshot-card {
  margin: 1.75rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.manual-screenshot-card img {
  max-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass-active);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

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

.manual-screenshot-card .card-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.manual-screenshot-card .card-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Mobile Manual Adjustments */
@media (max-width: 900px) {
  .manual-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .manual-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 1.5rem;
  }

  .manual-screenshot-card {
    flex-direction: column;
    text-align: center;
  }

  .manual-screenshot-card img {
    max-width: 240px;
  }
}

