/* ================================================
   SmartFile Translate – Landing Page Styles
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-reverse: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --text: #1a202c;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --shadow-xl: 0 25px 80px rgba(0,0,0,.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

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

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, .4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, .5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--primary); }

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-light);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--text);
}
.logo-icon { font-size: 28px; }
.logo-text { font-weight: 400; }
.logo-text strong { font-weight: 800; }

.nav { display: flex; gap: 8px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(102,126,234,.06); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.hero-blob--1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
}
.hero-blob--2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; left: -100px;
}
.hero-blob--3 {
  width: 300px; height: 300px;
  background: #f093fb;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-plus {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Card */
.hero-visual { perspective: 1000px; }
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform .6s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.hero-card:hover { transform: rotateY(0) rotateX(0); }
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.card-dot { width: 12px; height: 12px; border-radius: 50%; }
.card-dot--red { background: #ff5f57; }
.card-dot--yellow { background: #febc2e; }
.card-dot--green { background: #28c840; }
.card-title {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: 500;
}
.card-body { padding: 24px; }
.card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: .5px;
  min-width: 60px;
  padding-top: 4px;
}
.card-flag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.card-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-progress { margin: 20px 0 16px; }
.card-progress-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.card-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1.5s ease;
}
.card-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.card-steps { display: flex; flex-direction: column; gap: 8px; }
.card-step {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-light);
}
.card-step.done { background: #f0fdf4; color: #166534; }
.card-step.active {
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========== TRUSTED ========== */
.trusted {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trusted-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
}

/* ========== FEATURES ========== */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(102,126,234,.12);
  transform: translateY(-4px);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-alt);
}
.steps {
  max-width: 700px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(102,126,234,.3);
}
.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}
.step-connector {
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin-left: 27px;
  border-radius: 2px;
}

/* ========== PRICING ========== */
.pricing { padding: 100px 0; }
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 2px solid var(--primary);
}
.pricing-header {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 40px;
}
.pricing-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .9;
}
.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 12px 0;
}
.pricing-currency {
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px;
}
.pricing-value {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}
.pricing-desc {
  font-size: 16px;
  opacity: .9;
}
.pricing-features {
  list-style: none;
  padding: 32px 40px;
}
.pricing-features li {
  padding: 10px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn { margin: 0 40px 24px; width: calc(100% - 80px); }
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-lighter);
  padding-bottom: 32px;
}

/* ========== LANGUAGES ========== */
.languages {
  padding: 100px 0;
  background: var(--bg-alt);
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.lang-item {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.lang-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102,126,234,.12);
  transform: translateY(-2px);
}

/* ========== FAQ ========== */
.faq { padding: 100px 0; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(102,126,234,.1);
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: all var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  text-align: center;
  color: #fff;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 15px;
  padding: 6px 0;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeUp .8s ease-out; }
.hero-visual { animation: fadeUp .8s ease-out .2s both; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero { padding: 130px 0 80px; }

  .nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .mobile-toggle { display: flex; }

  /* Mobile menu */
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }

  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .pricing-card { margin: 0 16px; }
  .pricing-value { font-size: 56px; }

  .step { flex-direction: column; align-items: center; text-align: center; }
  .step-connector { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}
