/* ===================================
   SnapSum - Main Stylesheet
   =================================== */

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-hover: #1a1a24;
  --border: #1e1e2e;
  --border-hover: #2a2a3a;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5a4bd4;
  --accent: #00cec9;
  --accent-secondary: #fd79a8;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --text-dim: #555566;
  --green: #00b894;
  --red: #ff7675;
  --yellow: #fdcb6e;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(108,92,231,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   NAVIGATION
   =================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Language Selector */
.lang-select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.lang-select:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.lang-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}

@media (max-width: 768px) {
  .lang-select {
    width: 100%;
    margin-top: 12px;
  }
}
  color: var(--text);
}

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-nav:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.nav-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,206,201,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,92,231,0.12);
  border: 1px solid rgba(108,92,231,0.25);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.hero-stats strong {
  color: var(--text);
  font-size: 1.1rem;
}

/* ===================================
   MARQUEE
   =================================== */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  opacity: 0.6;
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track span::before {
  content: '✦';
  color: var(--primary);
  margin-right: 8px;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.7;
}

/* ===================================
   STEPS GRID
   =================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(108,92,231,0.12);
  position: absolute;
  top: 8px;
  right: 20px;
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(108,92,231,0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===================================
   FEATURES GRID
   =================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===================================
   LANGUAGE TAGS
   =================================== */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.lang-tag {
  background: rgba(108,92,231,0.1);
  border: 1px solid rgba(108,92,231,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-tag:hover {
  background: rgba(108,92,231,0.2);
  color: var(--text);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.08));
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}

.cta-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ===================================
   PRICING
   =================================== */
.pricing-section {
  padding: 140px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(108,92,231,0.1) 0%, var(--surface) 100%);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.5;
}

/* FAQ */
.faq-section {
  margin-top: 80px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary-light);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ===================================
   DOWNLOAD PAGE
   =================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.platform-card:hover {
  border-color: var(--primary);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.platform-version {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Quick Start Steps */
.steps-vertical {
  max-width: 600px;
  margin: 40px auto 0;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-item .step-num {
  position: static;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* System Requirements */
.reqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.req-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.req-card ul {
  list-style: none;
}

.req-card li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================================
   LEGAL PAGES
   =================================== */
.legal-page {
  max-width: 800px;
  margin: 140px auto 80px;
  padding: 0 24px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page section {
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text);
}

.legal-page p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-page li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--primary-light);
}

.legal-page strong {
  color: var(--text);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links {
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 14px;
  transition: color 0.2s;
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-menu {
    display: block;
  }
  
  h1 {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .cta-section {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-page {
    margin-top: 120px;
  }
  
  .legal-page h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}
