:root {
  --bg-dark: #0C1425;
  --bg-card: #131b2a;
  --accent: #1ABC9C;
  --accent-light: #3FF5ED;
  --text-primary: #FFFFFF;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass: rgba(19, 27, 42, 0.6);
  --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(26, 188, 156, 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Navigation ===== */

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  width: 90%;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  z-index: 100;
  position: sticky;
  top: 1.5rem;
}

.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s, border-color 0.2s;
  line-height: 0;
}

.menu-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-links svg {
  width: 20px;
  height: 20px;
}

/* ===== Hero ===== */

.hero {
  padding: 3rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 900px;
  letter-spacing: -0.02em;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 750px;
  line-height: 1.7;
}

.download-link {
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  stroke: var(--bg-dark);
  stroke-width: 2.5;
}

.sub-link {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  margin-top: 0.75rem;
}

.sub-link:hover {
  color: var(--text-primary);
}

/* ===== Mockup ===== */

.mockup-wrapper {
  margin: 3rem auto 6rem;
  max-width: 1000px;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-inner {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-inner img,
.feature-img img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mockup-inner img:hover,
.feature-img img:hover {
  transform: scale(1.02);
}

/* ===== Features ===== */

.features-container {
  padding: 4rem 0 8rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row:nth-child(even) .feature-text {
  order: 2;
}

.feature-text h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.feature-img {
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.feature-img img {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-img.swapper {
  position: relative;
  display: block;
}

.feature-img.swapper img.swap-over {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.feature-img.swapper.swapped img.swap-over {
  opacity: 1;
}

.flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: var(--accent);
  opacity: 0;
  border-radius: 12px;
  mix-blend-mode: overlay;
  z-index: 10;
}

.feature-img.swapper.highlight .flash-overlay {
  animation: flash 0.5s ease-out;
}

@keyframes flash {
  0% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(26, 188, 156, 0);
  }

  30% {
    opacity: 0.4;
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(26, 188, 156, 0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(26, 188, 156, 0);
  }
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-logo img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

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

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

.copyright {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== Animations ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* ===== Image Modal ===== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border-color);
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-nav:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.prev-modal { left: 20px; }
.next-modal { right: 20px; }

/* ===== Responsive: Tablet (≤768px) ===== */

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    order: 1;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 200;
  }

  .menu-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  nav {
    width: 94%;
    padding: 1rem 1.25rem;
    margin: 0.75rem auto;
    top: 0.75rem;
    border-radius: 12px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    line-height: 1.15;
  }

  .hero h1 br {
    display: none;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  .btn-primary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .mockup-wrapper {
    margin: 2rem auto 3rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-row:nth-child(even) .feature-text {
    order: -1;
  }

  .features-container {
    padding: 2rem 0 4rem;
    gap: 3.5rem;
  }

  .feature-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .feature-text p {
    font-size: 0.95rem;
  }

  footer {
    padding: 2.5rem 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .modal {
    padding-top: 20px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-modal { left: 8px; }
  .next-modal { right: 8px; }
}

/* ===== Responsive: Small phone (≤480px) ===== */

@media (max-width: 480px) {
  nav {
    width: 96%;
    padding: 0.85rem 1rem;
    margin: 0.5rem auto;
    top: 0.5rem;
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .logo img {
    width: 22px;
    height: 22px;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .download-link {
    width: 100%;
    padding: 0 1rem;
  }

  .features-container {
    gap: 2.5rem;
    padding: 1.5rem 0 3rem;
  }

  .feature-text h2 {
    font-size: 1.35rem;
  }

  .feature-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .glow {
    width: 90vw;
    height: 350px;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}