/* 
  MarkBy Web Design System - Premium Dark Theme
  Color Palette: Obsidian Black, Slate Grey, and Glow Amber/Orange
  Fonts: Outfit (Headings) & Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #080808;
  --bg-secondary: #121212;
  --bg-tertiary: #181818;
  --accent: #FF9F0A;
  --accent-rgb: 255, 159, 10;
  --accent-gradient: linear-gradient(135deg, #FF9F0A, #FF6A00);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #555555;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 159, 10, 0.25);
  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-sm: rgba(0, 0, 0, 0.2);
  --shadow-md: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1100px;
}

/* Base resets & global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

/* Global Selection */
::selection {
  background-color: rgba(var(--accent-rgb), 0.25);
  color: var(--text-primary);
}

/* Typography elements */
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

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

a:hover {
  opacity: 0.8;
}

/* Layout Wrappers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Glassmorphic Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-item {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--text-primary);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* Main content spaces */
main {
  padding-top: 100px;
  min-height: calc(100vh - 120px);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  padding: 24px 0 60px 0;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION 1: HOME (Landing Page) */
.hero {
  text-align: center;
  padding: 40px 0 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45);
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

/* Features Grid */
.features-title {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-card h3 {
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Offline commitment highlight card */
.offline-banner {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.offline-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #2ecc71;
}

.offline-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.offline-banner h3 {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.offline-banner p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SECTION 2: SUPPORT & FAQ */
.support-container {
  max-width: 800px;
  margin: 0 auto;
}

.support-hero {
  text-align: center;
  margin-bottom: 48px;
}

.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.support-card .icon {
  font-size: 2rem;
  color: var(--accent);
}

.support-card h3 {
  margin-bottom: 4px;
}

.support-card p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.support-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.support-card-btn:hover {
  background: var(--accent-gradient);
  color: #000000;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
  opacity: 1;
}

/* FAQ Accordion Styling */
.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 24px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-bottom: 20px;
}

/* FAQ Item Open State */
.faq-item.open {
  background: var(--bg-tertiary);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item.open .faq-body {
  padding-top: 4px;
}

/* SECTION 3: PRIVACY POLICY (BILINGUAL) */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.privacy-header .last-updated {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Side-by-side or stacked layout for bilingual */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.lang-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Dual Column Bilingual Layout */
.privacy-section-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section-bilingual:last-child {
  border-bottom: none;
}

.lang-column h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.lang-column p, .lang-column li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.lang-column ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 40px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-text {
  font-size: 1.15rem;
}

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

.footer-links {
  display: flex;
  gap: 16px;
}

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

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

/* Responsive adjustments */
@media (max-width: 868px) {
  .privacy-section-bilingual {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
  
  .privacy-section-bilingual > div:first-child {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }
  
  main {
    padding-top: 120px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .nav-item {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
