/* Assistant Emily Landing Site Stylesheet */
:root {
  --bg-dark: #0f111a;
  --bg-card: #181926;
  --bg-card-hover: #1e2030;
  --bg-code: #131420;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 92, 246, 0.4);
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --accent-secondary: #06b6d4;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --badge-bg: rgba(139, 92, 246, 0.15);
  --success: #10b981;
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #c4b5fd;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15, 17, 26, 0.85);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-max-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.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.4rem;
  display: inline-block;
  animation: pulse 2.5s infinite ease-in-out;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.badge-version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-version span.dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  word-break: keep-all;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Showcase / Mockup Card */
.mockup-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
}

.mockup-header {
  background: #12131e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #373a4d;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: monospace;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
  text-align: left;
}

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

.mockup-editor {
  padding: 1.8rem;
  background: var(--bg-code);
  border-right: 1px solid var(--border-color);
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}

.mockup-editor pre {
  white-space: pre-wrap;
  color: #cbd5e1;
}

.tag-highlight {
  color: var(--accent-light);
  font-weight: 600;
}

.wikilink-highlight {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.mockup-sidebar {
  padding: 1.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-card-preview {
  background: #1f2133;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.sidebar-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.sidebar-btn {
  background: #282a3f;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
}

.sidebar-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent);
  color: var(--accent-light);
  font-weight: 600;
}

/* Feature Grid */
.features-section {
  padding: 6rem 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--accent-light);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--accent-light);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: keep-all;
}

/* Comparison / Philosophy Section */
.comparison-section {
  padding: 5rem 1.5rem;
  background: rgba(24, 25, 38, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.comparison-container {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table th {
  background: #11121c;
  color: #fff;
  font-weight: 600;
}

.comparison-table td {
  background: var(--bg-card);
}

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

.badge-yes {
  color: var(--success);
  font-weight: 700;
}

.badge-no {
  color: #ef4444;
  font-weight: 700;
}

/* Installation Guide */
.install-section {
  padding: 6rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.install-tabs {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.install-tab-header {
  display: flex;
  flex-wrap: wrap;
  background: #11121c;
  border-bottom: 1px solid var(--border-color);
}

.install-tab-btn {
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.install-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.install-tab-content {
  padding: 2rem;
}

.code-box {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  color: #cbd5e1;
}

/* Privacy & Security */
.privacy-banner {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.privacy-banner-icon {
  font-size: 1.8rem;
  color: var(--success);
}

.privacy-banner-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.privacy-banner-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #0b0c13;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* Keyframes */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 3.5rem 1rem 2.5rem;
  }
}

/* ==========================================================================
   SEO & GEO Enhancements
   ========================================================================== */

/* Direct Obsidian Protocol Deep Link */
.btn-obsidian-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff !important;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-obsidian-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
  border-color: rgba(196, 181, 253, 0.6);
}

.btn-community-page {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #e0e7ff !important;
  border: 1px solid rgba(165, 180, 252, 0.4);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(49, 46, 129, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-community-page:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  border-color: rgba(199, 210, 254, 0.6);
}

@media (max-width: 640px) {
  .btn-community-page,
  .btn-obsidian-direct {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding: 0.8rem 1rem;
    text-align: center;
  }
}

/* Dedicated Obsidian Translation Showcase */
.trans-section {
  padding: 5rem 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

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

.trans-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 1.8rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.trans-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.trans-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-light);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.trans-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.trans-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* AI Summary / Fact Card (GEO Highlight) */
.ai-summary-card {
  max-width: 860px;
  margin: -1.5rem auto 3.5rem;
  padding: 1.5rem 1.8rem;
  background: rgba(18, 19, 31, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-summary-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 0.8rem;
}

.ai-summary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fact-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.fact-value {
  font-size: 0.88rem;
  color: #f1f5f9;
  font-weight: 500;
}

/* FAQ Section (SEO & GEO) */
.faq-section {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
  background: #141524;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-light);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.faq-answer strong {
  color: #e2e8f0;
}

/* Global / English Quick Reference (GEO) */
.en-overview-section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.en-card {
  background: linear-gradient(180deg, #131422 0%, #0d0e17 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 2.2rem;
  color: #cbd5e1;
}

.en-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.en-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.en-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.en-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.en-card li::before {
  content: "✨";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}
