/* 2CHART.COM Ultra-Premium Web3/FinTech Redesign */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Deep Dark Mode Base (Vercel/Linear aesthetic) */
  --bg-color: #000000;
  /* Pure black foundation */
  --bg-gradient: radial-gradient(circle at 50% 0%, #111111 0%, #000000 70%);
  /* Subtle top glow */

  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-subtle: #666666;

  /* Accents */
  --accent-primary: #ffffff;
  /* White buttons are very premium in dark mode */
  --accent-secondary: #aaaaaa;

  /* Glassmorphism settings - Ultra clean */
  --glass-bg: rgba(10, 10, 10, 0.4);
  /* Almost entirely transparent, dark base */
  --glass-border: rgba(255, 255, 255, 0.08);
  /* 8% white line for crisp edges */
  --card-glass: rgba(15, 15, 15, 0.3);
  /* Slightly brighter for cards */
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  /* Deep shadow */

  /* Layout */
  --header-height: 72px;
}

/* Light mode override - kept for functionality, but dark mode is the star */
body.light-theme {
  --bg-color: #fafafa;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #f0f0f0 70%);
  --text-main: #000000;
  --text-muted: #4b5563;
  --text-subtle: #9ca3af;
  --accent-primary: #000000;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-glass: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
  /* Prevent scrolling bounce on mac */
  overscroll-behavior-y: none;
  /* Disable text selection throughout the page for better app-like feel */
  user-select: none;
  -webkit-user-select: none;
}

/* Selection color */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.light-theme ::selection {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

.container {
  max-width: 1200px;
  /* Tighter layout */
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

/* Background Canvas - Bubble Engine */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
  /* Allow mouse interaction */
}



/* Typography Overhaul */
h1,
h2,
h3 {
  font-weight: 500;
  /* Modern linear style uses lighter weights for headings */
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Gradients text restricted to subtle highlights */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

body.light-theme .text-gradient {
  background: linear-gradient(135deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Unified Glassmorphism Utilities */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  /* Heavy blur */
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

/* Premium Card Design */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  /* Sharper corners */
  padding: 40px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Inner glow top border */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Interactive hover state */
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(25, 25, 25, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

body.light-theme .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Custom Colors from 2CHART.COM App */
:root {
  --crypto-positive: #10B981;
  /* Tailwind emerald-500 */
  --crypto-accent: #34D399;
  /* Tailwind emerald-400 */
}

/* Platform Informational Block - theme-aware */
.info-card {
  padding: 60px 50px;
  text-align: left;
  background: rgba(20, 20, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .info-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.info-card-accent {
  border-left: 4px solid var(--crypto-positive);
  padding-left: 24px;
  margin-bottom: 24px;
}

.info-card-title {
  font-size: 2rem;
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.info-card-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: justify;
  hyphens: auto;
  font-weight: 400;
}

/* The logo must look perfect */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-icon {
  color: var(--crypto-positive);
  width: 28px;
  height: 28px;
  transition: all 0.3s;
}

.logo-container:hover .logo-icon {
  color: #00D47E;
  transform: rotate(6deg);
}

body.light-theme .logo-icon {
  color: #059669;
}

body.light-theme .logo-container:hover .logo-icon {
  color: #047857;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  line-height: 1;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.logo-container:hover .logo-text {
  color: #00D47E;
}

body.light-theme .logo-container:hover .logo-text {
  color: #047857;
}

/* Minimalist Button System */
.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Lang Dropdown */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  opacity: 0.8;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: -10px;
  padding: 8px 0;
  border-radius: 8px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

body.light-theme .lang-dropdown {
  background: rgba(255, 255, 255, 0.95);
}

.lang-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-dropdown a {
  color: var(--text-main);
  opacity: 0.75;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.lang-dropdown a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .lang-dropdown a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Theme Toggle */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  opacity: 0.8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.icon-btn:hover {
  opacity: 1;
}

/* Primary Button (Linear Style - White in dark mode) */
.primary-btn {
  background: var(--accent-primary);
  color: var(--bg-color);
  /* Invert text */
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 6px;
  /* Squarish corners */
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

body.light-theme .primary-btn {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  animation: fadeIn 1.2s ease forwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 24px;
}

body.light-theme .badge {
  background: rgba(0, 0, 0, 0.03);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  /* Emerald */
  box-shadow: 0 0 8px #34d399;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-main);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
}

body.light-theme .hero-title {
  text-shadow: 0 4px 32px rgba(255, 255, 255, 0.9);
}

.hero-title .brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 0 4px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

body.light-theme .hero-subtitle {
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
}

.glow-btn {
  background: var(--text-main);
  color: var(--bg-color);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.glow-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Features Grid - Asymmetric or clean grids */
.features-section {
  padding: 40px 0 120px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

body.light-theme .feature-icon-wrapper {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Big Pitch Section */
.pitch-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 120px;
}

.pitch-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* SEO Content - Make it visually elegant but technically present */
.seo-content {
  padding: 40px;
  margin: 0 auto 80px;
  max-width: 900px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-subtle);
}

.seo-content h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.seo-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: justify;
}

/* Clean Minimal Footer */
.main-footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  position: relative;
  z-index: 2;
  background: var(--bg-color);
  /* Solid bg at bottom */
}

.footer-logo {
  justify-content: center;
  margin-bottom: 16px;
}

.copyright {
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  margin-top: 20px;
}

.social-link {
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .social-link {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

body.light-theme .social-link:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-controls .primary-btn {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 32px 24px;
  }

  .seo-content {
    padding: 40px 0;
  }
}

/* Bubble Hover Card */
.bubble-tooltip {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  background: rgba(22, 25, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-main);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity 0.2s, transform 0.2s;
  transform: translate(-50%, -10px);
  z-index: 50;
  width: 240px;
  /* Fixed width */
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

body.light-theme .bubble-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bubble-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 10px);
}

.bubble-tooltip-chart {
  display: block;
  width: 100%;
  height: 60px;
  background: transparent;
}

.bubble-tooltip-content {
  padding: 0;
  margin-top: 16px;
}

.bubble-tooltip-ticker {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #ffffff;
}

body.light-theme .bubble-tooltip-ticker {
  color: #000000;
}

.bubble-tooltip-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.bubble-tooltip-row:last-child {
  margin-bottom: 0;
}

.bubble-tooltip-row .label {
  color: #888888;
  width: 65px;
  font-weight: 400;
}

.bubble-tooltip-row .val {
  font-weight: 500;
  color: #eeeeee;
}

body.light-theme .bubble-tooltip-row .label {
  color: #666666;
}

body.light-theme .bubble-tooltip-row .val {
  color: #222222;
}

.bubble-tooltip-trend {
  /* Inherits raw color dynamically from JS */
  font-weight: 600;
}

/* Logo Animations */
@keyframes drawGraph {
  0% {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }

  100% {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
}

.logo-animated path:first-child {
  stroke-dasharray: 100;
  animation: drawGraph 1.5s ease-out forwards;
}

.logo-animated path:last-child {
  stroke-dasharray: 100;
  animation: drawGraph 1.5s ease-out forwards 0.3s;
}

/* Waitlist Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  padding: 40px;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--text-primary);
}

.modal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

body.light-theme .input-group input {
  background: rgba(0, 0, 0, 0.03);
}

.input-group input:focus {
  border-color: var(--crypto-accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 126, 0.1);
}

.full-width {
  width: 100%;
}

.form-status {
  margin-top: 15px;
  font-size: 0.9rem;
  min-height: 20px;
  color: var(--text-secondary);
}

.form-status.success {
  color: var(--crypto-positive);
}

.form-status.error {
  color: var(--crypto-negative);
}