/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --primary: #ff4757;
  --primary-dark: #e84341;
  --secondary: #2ed573;
  --accent: #ffa502;
  --purple: #5f27cd;
  --cyan: #00d2d3;
  --dark: #0a0a0a;
  --dark-light: #1a1a2e;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --bg: #0f0f0f;
  --bg-card: #161622;
  --bg-card-hover: #1e1e2e;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 71, 87, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--glow);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(95, 39, 205, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 71, 87, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0, 210, 211, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::before {
  width: 100%;
}

/* Language Button */
.lang-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--glow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff 0%, #e8e8e8 50%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 60px var(--glow);
}

.btn:hover::before {
  left: 100%;
}

/* Main Content */
main {
  padding: 100px 0;
}

section {
  margin-bottom: 120px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 48px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 71, 87, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 71, 87, 0.3);
  background: var(--bg-card-hover);
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* Feature Icons */
.feature-card:nth-child(1) h3::before { content: '⏱️ '; }
.feature-card:nth-child(2) h3::before { content: '☕ '; }
.feature-card:nth-child(3) h3::before { content: '🔄 '; }

/* Steps */
.steps {
  background: var(--bg-card);
  padding: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.steps::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(60px);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(12px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  border: 2px solid;
}

.step-item:nth-child(1) .step-number { background: rgba(255, 71, 87, 0.15); color: var(--primary); border-color: rgba(255, 71, 87, 0.3); }
.step-item:nth-child(2) .step-number { background: rgba(0, 210, 211, 0.15); color: var(--cyan); border-color: rgba(0, 210, 211, 0.3); }
.step-item:nth-child(3) .step-number { background: rgba(46, 213, 115, 0.15); color: var(--secondary); border-color: rgba(46, 213, 115, 0.3); }
.step-item:nth-child(4) .step-number { background: rgba(255, 165, 2, 0.15); color: var(--accent); border-color: rgba(255, 165, 2, 0.3); }

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-post {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-post::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.5), transparent 50%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.blog-post:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: transparent;
}

.blog-post:hover::before {
  opacity: 1;
}

.post-content {
  padding: 36px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.post-date {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.post-excerpt {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  flex-grow: 1;
  font-size: 1rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--accent);
}

.read-more:hover::after {
  transform: translateX(6px);
}

/* Footer */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
  margin-top: 60px;
}

.footer-links {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::before {
  width: 100%;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .features,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  nav {
    height: 70px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .features,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    padding: 40px 24px;
  }

  .step-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  main {
    padding: 60px 0;
  }

  section {
    margin-bottom: 80px;
  }

  h2 {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .logo {
    margin: 0 auto;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

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

/* Blog Detail Page */
.blog-post-full {
  background: var(--bg-card);
  padding: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.blog-post-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
}

.blog-post-full h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.post-meta {
  color: var(--primary);
  margin-bottom: 40px;
  display: block;
  font-size: 0.95rem;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.post-body p {
  margin-bottom: 24px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.post-body h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 56px;
  margin-bottom: 24px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  background: none;
  -webkit-text-fill-color: var(--text);
}

.post-body ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 28px;
  padding-left: 0;
}

.post-body li {
  margin-bottom: 18px;
  padding-left: 36px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.post-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}

.post-body strong {
  color: var(--text);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-weight: 600;
  padding: 16px 32px;
  border: 2px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.back-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateX(-8px);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
  .blog-post-full {
    padding: 40px 24px;
  }

  .post-body p {
    font-size: 1.05rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.blog-post,
.step-item {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1), .blog-post:nth-child(1), .step-item:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2), .blog-post:nth-child(2), .step-item:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3), .blog-post:nth-child(3), .step-item:nth-child(3) { animation-delay: 0.3s; }
.blog-post:nth-child(4), .step-item:nth-child(4) { animation-delay: 0.4s; }
.blog-post:nth-child(5) { animation-delay: 0.5s; }
.blog-post:nth-child(6) { animation-delay: 0.6s; }

/* Ad Container */
.ad-container {
  margin: 48px 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
  min-height: 100px;
}

.ad-container ins {
  display: block;
}

.post-body .adsbygoogle {
  margin: 32px 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}

/* Selection */
::selection {
  background: var(--primary);
  color: #fff;
}

/* App Promo Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.modal-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-text strong {
  color: var(--primary);
}

.modal-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.modal-features span {
  background: rgba(255, 71, 87, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  width: 100%;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  text-decoration: none;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--glow);
  color: #fff;
}

.modal-btn svg {
  flex-shrink: 0;
}

.modal-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  cursor: pointer;
  padding: 8px 16px;
  transition: var(--transition);
  font-family: inherit;
}

.modal-skip:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 40px 24px;
  }
  
  .modal-icon {
    font-size: 48px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-features {
    gap: 10px;
  }
  
  .modal-features span {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}
