/* Root tokens & Color system */
:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --color-bg-deep: #060913;
  --color-bg-dark: #0b0f19;
  --color-bg-card: rgba(17, 25, 43, 0.55);
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --color-accent-blue: #3b82f6;
  --color-accent-cyan: #06b6d4;
  --color-accent-indigo: #6366f1;
  --color-accent-purple: #a855f7;
  
  --gradient-accent: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-blue));
  --gradient-secondary: linear-gradient(135deg, var(--color-accent-indigo), var(--color-accent-purple));
  --gradient-bg-glow: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.04) 50%, rgba(0,0,0,0) 100%);
  
  --border-glass: 1px solid rgba(255, 255, 255, 0.07);
  --border-glass-hover: 1px solid rgba(6, 182, 212, 0.3);
  --shadow-premium: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 5px 15px -5px rgba(0, 0, 0, 0.3);
  --shadow-accent: 0 0 25px -5px rgba(6, 182, 212, 0.4);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid var(--color-bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-cyan);
}

/* Typography & Layout Containers */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Glowing Decorative Backgrounds */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-bg-glow);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  top: -10%;
  right: -10%;
}
.glow-2 {
  top: 50%;
  left: -15%;
}

/* Header & Glassmorphism Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(180%);
  background-color: rgba(6, 9, 19, 0.75);
  border-bottom: var(--border-glass);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover {
  color: var(--color-accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #040814;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: var(--border-glass);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 10px;
}
.btn-nav {
  padding: 0.5rem 1.25rem;
}

/* Hero Section */
.hero-section {
  padding-top: 170px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-cyan);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  max-width: 850px;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}
.hero-cta-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Window/App Mockup Showcase */
.app-showcase-wrapper {
  width: 100%;
  max-width: 950px;
  background: #0f172a;
  border-radius: 12px;
  border: var(--border-glass);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  margin-top: 1rem;
  transition: transform 0.4s ease;
}
.app-showcase-wrapper:hover {
  transform: translateY(-5px);
}

.app-window-header {
  height: 40px;
  background: #0b0f19;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  border-bottom: var(--border-glass);
}
.window-buttons {
  display: flex;
  gap: 6px;
}
.win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.win-btn.close { background: #ef4444; }
.win-btn.minimize { background: #eab308; }
.win-btn.expand { background: #22c55e; }
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.app-showcase {
  display: flex;
  height: 480px;
  background: #070a13;
}

/* Showcase Sidebar */
.mock-sidebar {
  width: 180px;
  background: #0b101d;
  border-right: var(--border-glass);
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.mock-sidebar-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
}

/* Showcase Workspace */
.mock-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.mock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.mock-tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-btn {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.mock-badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.mock-lang-selector {
  font-size: 0.75rem;
  border: var(--border-glass);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mock-table {
  background: #0f1626;
  border: var(--border-glass);
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mock-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  text-align: left;
}
.mock-row.header-row {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  font-weight: 600;
}
.mock-row.row-active {
  background: rgba(6, 182, 212, 0.05);
  border-left: 3px solid var(--color-accent-cyan);
}
.col {
  padding: 0 0.5rem;
}
.col-stt { width: 40px; }
.col-time { width: 140px; color: var(--color-accent-cyan); font-family: monospace; }
.col-source { flex: 1; color: var(--color-text-secondary); }
.col-target { flex: 1; color: var(--color-text-primary); }

.mock-waveform-container {
  height: 80px;
  background: #0b101d;
  border: var(--border-glass);
  border-radius: 6px;
  margin-top: 1rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
}
.mock-waveform {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
}
.wave-bar {
  flex: 1;
  background: #1e293b;
  border-radius: 2px;
}
.mock-region {
  position: absolute;
  left: 20%;
  width: 50%;
  height: 100%;
  background: rgba(6, 182, 212, 0.15);
  border: 1.5px dashed var(--color-accent-cyan);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-region span {
  font-size: 0.65rem;
  color: var(--color-text-primary);
  font-family: monospace;
}
.region-handle {
  width: 5px;
  height: 60%;
  background: var(--color-accent-cyan);
  position: absolute;
  border-radius: 2px;
}
.region-handle.left { left: 2px; }
.region-handle.right { right: 2px; }

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: var(--color-bg-dark);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: var(--border-glass);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: var(--shadow-premium);
  background: rgba(17, 25, 43, 0.75);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.feature-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.feature-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Download Section & Table */
.download-section {
  padding: 100px 0;
  position: relative;
}

.download-table-wrapper {
  background: var(--color-bg-card);
  border: var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-premium);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.download-table th, .download-table td {
  padding: 1.25rem 2rem;
}
.download-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: var(--border-glass);
}
.download-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}
.download-table tr:last-child td {
  border-bottom: none;
}
.download-table code {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-accent-cyan);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}
.platform-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Release Notes Area */
.release-notes-box {
  background: rgba(17, 25, 43, 0.3);
  border: var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
}
.release-notes-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-cyan);
}
.release-notes-content {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.release-notes-content h1,
.release-notes-content h2,
.release-notes-content h3 {
  color: var(--color-accent-cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.release-notes-content h3 {
  font-size: 1.15rem;
}
.release-notes-content ul,
.release-notes-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.release-notes-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}
.release-notes-content strong {
  color: var(--color-text-primary);
}
.release-notes-content a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.4);
  transition: all 0.2s ease;
}
.release-notes-content a:hover {
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-text-primary);
}

/* Footer */
.footer {
  background-color: var(--color-bg-deep);
  border-top: var(--border-glass);
  padding: 3rem 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.25s ease;
}
.footer-links a:hover {
  color: var(--color-text-primary);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .app-showcase {
    flex-direction: column;
    height: auto;
  }
  .mock-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: var(--border-glass);
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
  }
  .mock-sidebar-item {
    white-space: nowrap;
  }
  .mock-workspace {
    padding: 0.75rem;
  }
  .download-table th, .download-table td {
    padding: 1rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Header actions & Language Selector */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  color: var(--color-text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  border: var(--border-glass);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 130px;
  box-shadow: var(--shadow-premium);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  padding: 0.5rem 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
}

.lang-option.active {
  color: var(--color-accent-cyan);
  font-weight: 600;
}

.logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
}
