:root {
  --bg-primary: #0c0a09;
  --bg-secondary: #1c1917;
  --bg-elevated: #292524;
  --border-subtle: #44403c;
  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent-orange: #f97316;
  --accent-amber: #fbbf24;
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(249,115,22,0.15) 0%, transparent 50%);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 60px rgba(249,115,22,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(12, 10, 9, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  width: 100%;
  height: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.logo-mark { animation: rotateFloat 6s ease-in-out infinite; }

@keyframes rotateFloat {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after { width: 100%; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: #16a34a;
  transform: scale(1.1);
}

.hero-section {
  flex: 1;
  position: relative;
  padding: 140px 48px 60px;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: rgba(249, 115, 22, 0.18);
  top: -200px;
  right: -100px;
  animation: shapeFloat 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(251, 191, 36, 0.12);
  bottom: -100px;
  left: -50px;
  animation: shapeFloat 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: rgba(249, 115, 22, 0.12);
  top: 40%;
  left: 35%;
  animation: shapeFloat 12s ease-in-out infinite;
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-notes {
  display: flex;
  gap: 20px;
  margin-top: 72px;
  justify-content: center;
  flex-wrap: wrap;
}

.note-card {
  flex: 1;
  min-width: 190px;
  max-width: 270px;
  position: relative;
  padding: 22px 24px 18px;
  text-align: left;
  --rot: 0deg;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18)) drop-shadow(0 6px 14px rgba(0,0,0,0.10));
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.note-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #fffcf0 0%, #fdf7e8 100%);
  clip-path: polygon(
    0.5% 2%, 12.5% 0.3%, 25% 1.8%, 37.5% 0.2%, 50% 2.5%, 62.5% 0.5%, 75% 1.2%, 87.5% 0%, 99.5% 1.5%,
    98% 12.5%, 99.7% 25%, 98.2% 37.5%, 99.5% 50%, 97.8% 62.5%, 99.3% 75%, 98.5% 87.5%, 99.8% 99.5%,
    87.5% 98%, 75% 99.7%, 62.5% 98.2%, 50% 99.5%, 37.5% 97.8%, 25% 99.3%, 12.5% 98.5%, 0.5% 99.8%,
    0.3% 87.5%, 1.8% 75%, 0.2% 62.5%, 2.5% 50%, 0.5% 37.5%, 1.2% 25%, 0% 12.5%, 1.5% 0.5%
  );
  z-index: -1;
}

.note-card:hover {
  transform: rotate(var(--rot)) translateY(-6px) scale(1.02);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.22)) drop-shadow(0 12px 24px rgba(0,0,0,0.14));
}

.note-card:nth-child(1) { --rot: -1.8deg; }
.note-card:nth-child(2) { --rot: 1.2deg; }
.note-card:nth-child(3) { --rot: -0.6deg; }
.note-card:nth-child(4) { --rot: 2deg; }

.note-num {
  display: block;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.note-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #44403c;
  margin: 6px 0 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-amber);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--gradient-warm);
  color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
}

.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateY(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 32px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-pill .meta-icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.meta-pill .meta-icon svg {
  display: block;
}


.changelog-page {
  padding: 140px 48px 80px;
  min-height: 100vh;
}

.changelog-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.changelog-page-header h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 16px;
  margin-bottom: 12px;
}

.changelog-page-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a.active::after {
  width: 100%;
}

.changelog-timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 28px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 14px;
  height: 14px;
  background: var(--accent-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: var(--border-subtle);
  margin-top: 10px;
}

.timeline-content {
  padding-bottom: 48px;
}

.timeline-version {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 14px;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-content li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-secondary);
}

.timeline-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.support-section { padding: 0 48px 100px; }

.support-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }

.support-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #22c55e;
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.site-footer {
  padding: 24px 48px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: var(--border-subtle);
  border-radius: 2px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.15) 42%,
    rgba(180,215,255,0.4)  46%,
    rgba(180,215,255,0.9)  48%,
    rgba(255,255,255,1)    50%,
    rgba(180,215,255,0.9)  52%,
    rgba(180,215,255,0.4)  54%,
    rgba(255,255,255,0.15) 58%,
    rgba(255,255,255,0.12) 70%,
    rgba(255,255,255,0.12) 100%
  );
  background-size: 500% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(160,210,255,0.05));
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 50% { background-position: 100% 50%; }
  58% { background-position: 75% 50%; }
  88% { background-position: 25% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0%, 50% { background-position: 100% 50%; }
  58% { background-position: 75% 50%; }
  88% { background-position: 25% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sqSpin {
  0%, 20% { opacity: 0.1; }
  25%, 45% { opacity: 0.8; }
  50%, 100% { opacity: 0.1; }
}

.update-toast {
  position: fixed;
  bottom: 32px;
  left: 32px;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: toastSlide 0.4s ease;
}

.update-toast.visible { display: flex; }

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-content { display: flex; align-items: center; gap: 12px; }
.toast-icon { font-size: 20px; }
.toast-text { display: flex; flex-direction: column; }
.toast-text b { font-size: 14px; font-weight: 600; }
.toast-text .ub-version { font-size: 13px; color: var(--accent-orange); }

.toast-action {
  padding: 10px 20px;
  background: var(--gradient-warm);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.toast-close {
  padding: 8px 12px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease;
}

.toast-close:hover { color: var(--text-primary); }

@media (max-width: 1024px) {
  .hero-notes { flex-wrap: wrap; }
  .note-card { flex: 1 1 180px; max-width: none; }
  .note-card:nth-child(1) { --rot: -1deg; }
  .note-card:nth-child(2) { --rot: 0.6deg; }
  .note-card:nth-child(3) { --rot: -0.3deg; }
  .note-card:nth-child(4) { --rot: 1deg; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 24px; }
  .main-nav { display: none; }
  .hero-section, .changelog-page { padding-left: 24px; padding-right: 24px; }
  
  .hero-section { padding-top: 110px; padding-bottom: 40px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-notes { flex-direction: column; align-items: center; }
  .note-card { max-width: 320px; width: 100%; --rot: 0deg !important; }
}
