/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-glass: #1e293b;
  --border-glass: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent-purple: #7c3aed;
  --radius-lg: 12px;
  --radius-md: 10px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text);
  font-family: 'Outfit', 'Rubik', 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Glow */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.ball-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  left: -100px;
}

.ball-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: 400px;
  right: -100px;
}

.ball-3 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  bottom: -100px;
  left: 200px;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphic Card */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 13, 22, 0.7);
}

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

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

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

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

.main-nav .nav-secondary {
  opacity: 0.7;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* Extension Mockup */
.hero-mockup-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mockup-card {
  width: 360px;
  height: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 100px rgba(59, 130, 246, 0.1);
}

.mockup-header {
  padding: 12px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  position: relative;
}

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

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.mockup-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: var(--text-muted);
}

.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.mockup-sidebar {
  width: 50px;
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
  background: rgba(0,0,0,0.15);
}

.mockup-sidebar-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.mockup-sidebar-item.active {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mockup-feed {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mockup-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-ch-title {
  font-weight: 700;
  font-size: 15px;
}

.feed-ch-badge {
  font-size: 10px;
  color: var(--text-muted);
}

.mockup-tabs {
  display: flex;
  gap: 8px;
}

.mockup-tab {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

.mockup-tab.active {
  background: var(--accent);
  color: white;
}

.mockup-card-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.mockup-card-item p {
  font-size: 11px;
}

.card-item-media {
  background: rgba(0,0,0,0.2);
  padding: 8px;
  border-radius: 6px;
  font-size: 10px;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
}

.card-item-reactions {
  display: flex;
  gap: 8px;
  font-size: 10px;
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

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

.feature-card {
  padding: 32px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Channels Showcase */
.channels-section {
  padding: 80px 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

.channels-list-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 40px auto 0;
}

.channel-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}

.channel-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59,130,246,0.15);
}

/* Installation Guide */
.installation-section {
  padding: 100px 0;
}

.installation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  padding: 32px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.step-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.step-card code {
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #f43f5e;
}

/* Main Footer */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 20px;
  margin-top: 80px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-about {
  flex: 2;
  min-width: 280px;
}

.footer-about h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 400px;
}

.footer-links, .footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  padding-right: 4px;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.mail-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.mail-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
    gap: 32px;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-meta {
    justify-content: center;
  }
  
  .main-nav {
    display: none;
  }
}

/* ☀️ Light Mode Styles & Variables */
:root.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: #ffffff;
  --border-glass: rgba(0, 0, 0, 0.08);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-purple: #7c3aed;
}

:root.light-mode .glow-ball {
  opacity: 0.08 !important;
}

:root.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05) !important;
}

:root.light-mode .logo-text, 
:root.light-mode h1, 
:root.light-mode h2, 
:root.light-mode h3, 
:root.light-mode h4,
:root.light-mode .step-card h4 {
  color: #0f172a !important;
}

:root.light-mode .hero-subtitle,
:root.light-mode .step-card p,
:root.light-mode .feature-card p,
:root.light-mode .about-section p,
:root.light-mode .footer-about p {
  color: #334155 !important;
}

:root.light-mode .btn-secondary {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

:root.light-mode .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08) !important;
}

:root.light-mode .sidebar-logo h3 {
  color: #0f172a !important;
}

:root.light-mode .active-channel-meta h2 {
  color: #0f172a !important;
}

:root.light-mode .viewer-tab {
  color: #475569 !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

:root.light-mode .viewer-tab.active {
  color: #ffffff !important;
  background: var(--accent) !important;
}

:root.light-mode .msg-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  color: #1e293b !important;
}

:root.light-mode .msg-text {
  color: #1e293b !important;
}

:root.light-mode .msg-author {
  color: #475569 !important;
}

:root.light-mode .sidebar-item {
  color: #334155 !important;
}

:root.light-mode .sidebar-item:hover {
  background: rgba(15, 23, 42, 0.04) !important;
}

:root.light-mode .sidebar-item.active {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #2563eb !important;
}

:root.light-mode .ticker-track {
  background: rgba(15, 23, 42, 0.03) !important;
  color: #334155 !important;
}

:root.light-mode .viewer-pinned-bar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

:root.light-mode .pinned-label {
  color: var(--accent) !important;
}

:root.light-mode .theme-toggle-btn {
  color: #0f172a !important;
}
